www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - requests 2.0.0 release

reply ikod <igor.khasilev gmail.com> writes:
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
Oct 28
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
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
Oct 29
prev sibling next sibling parent Alireza SN <alireza6677 gmail.com> writes:
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.
Oct 29
prev sibling next sibling parent reply Anonymouse <zorael gmail.com> writes:
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.
Oct 29
parent ikod <igor.khasilev gmail.com> writes:
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
Oct 29
prev sibling parent reply Jacob Carlborg <doob me.com> writes:
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
Oct 30
parent reply Andre Pany <andre s-e-a-p.de> writes:
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
Oct 30
parent reply =?UTF-8?Q?S=c3=b6nke_Ludwig?= <sludwig outerproduct.org> writes:
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/ ostgres.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.
Nov 01
parent reply Jacob Carlborg <doob me.com> writes:
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
Nov 01
parent Andre Pany <andre s-e-a-p.de> writes:
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
Nov 02