Thread overview | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
October 29, 2020 requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Hi, requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage. The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration. Important in case you use requests with vibe-d: starting from this release instead of using subConfiguration for requests in your dub.json you have to use package requests:vibed in dependencies. dlang-requests is http/ftp client library inspired by python requests https://github.com/ikod/dlang-requests best regards, Igor |
October 29, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to ikod | On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
> Hi,
>
> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
>
> The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration.
>
> Important in case you use requests with vibe-d: starting from this release instead of using subConfiguration for requests in your dub.json you have to use package requests:vibed in dependencies.
>
>
> dlang-requests is http/ftp client library inspired by python requests
> https://github.com/ikod/dlang-requests
>
> best regards,
> Igor
This is fantastic work, thanks a lot. It could also serve as template for other projects how to integrate with vibe-d without actually depending on it.
Kind regards
Andre
|
October 29, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to ikod | On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
> Hi,
>
> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
>
> ...
>
> best regards,
> Igor
This is great! Thank you.
|
October 29, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to ikod | On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
> Hi,
>
> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
Thanks for all your hard work! This was an annoying point and I'm happy to see a solution that works for everyone.
|
October 29, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anonymouse | On Thursday, 29 October 2020 at 16:22:50 UTC, Anonymouse wrote:
> On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
>> Hi,
>>
>> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
>
> Thanks for all your hard work! This was an annoying point and I'm happy to see a solution that works for everyone.
Thanks everybody for your motivating words! I hope that next update will include native Windows SSL, I made some progress in this direction.
Regards,
Igor
|
October 30, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to ikod | On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote: > Hi, > > requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage. > > The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration. Another approach is to check if vibe.d is available using version conditions [1]. This is how the DDB [2] package supports both vibe.d sockets and Phobos sockets. [1] https://github.com/pszturmaj/ddb/blob/97bc3652b05492e7917888c92e59f4576a69dfa8/source/ddb/postgres.d#L189-L216 [2] https://code.dlang.org/packages/ddb -- /Jacob Carlborg |
October 30, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 30 October 2020 at 13:34:24 UTC, Jacob Carlborg wrote:
> On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
>> Hi,
>>
>> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
>>
>> The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration.
>
> Another approach is to check if vibe.d is available using version conditions [1]. This is how the DDB [2] package supports both vibe.d sockets and Phobos sockets.
>
> [1] https://github.com/pszturmaj/ddb/blob/97bc3652b05492e7917888c92e59f4576a69dfa8/source/ddb/postgres.d#L189-L216
> [2] https://code.dlang.org/packages/ddb
>
> --
> /Jacob Carlborg
The important point here is, fetching and building "requests" does no longer trigger downloads of vibe.d packages.
This is the case for ddb(?). Therefore I see the pattern "requests" is using, is also highly interesting for ddb.
Kind regards
Andre
|
November 01, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | Am 30.10.2020 um 14:40 schrieb Andre Pany:
> On Friday, 30 October 2020 at 13:34:24 UTC, Jacob Carlborg wrote:
>> On Thursday, 29 October 2020 at 06:42:54 UTC, ikod wrote:
>>> Hi,
>>>
>>> requests 2.0.0 released with single change - support for vibe-d moved to separate subpackage.
>>>
>>> The goal of this update is to prevent dub from downloading vibe-d packages for optional subConfiguration.
>>
>> Another approach is to check if vibe.d is available using version conditions [1]. This is how the DDB [2] package supports both vibe.d sockets and Phobos sockets.
>>
>> [1] https://github.com/pszturmaj/ddb/blob/97bc3652b05492e7917888c92e59f4576a69dfa8/source/ddb/postgres.d#L189-L216
>>
>> [2] https://code.dlang.org/packages/ddb
>>
>> --
>> /Jacob Carlborg
>
> The important point here is, fetching and building "requests" does no longer trigger downloads of vibe.d packages.
> This is the case for ddb(?). Therefore I see the pattern "requests" is using, is also highly interesting for ddb.
>
> Kind regards
> Andre
ddb marks the vibe-d dependency as optional, so it *should* not trigger a download by itself.
|
November 01, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sönke Ludwig | On 2020-11-01 11:13, Sönke Ludwig wrote: > ddb marks the vibe-d dependency as optional, so it *should* not trigger a download by itself. It does not trigger a download. The downside is that user of the library needs to manually add vibe.d as a dependency. -- /Jacob Carlborg |
November 02, 2020 Re: requests 2.0.0 release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Sunday, 1 November 2020 at 14:00:34 UTC, Jacob Carlborg wrote:
> On 2020-11-01 11:13, Sönke Ludwig wrote:
>
>> ddb marks the vibe-d dependency as optional, so it *should* not trigger a download by itself.
>
> It does not trigger a download. The downside is that user of the library needs to manually add vibe.d as a dependency.
Thanks, learned something new.
Kind regards
Andre
|
Copyright © 1999-2021 by the D Language Foundation