Re: requests 2.0.0 release

2020-11-02 Thread Andre Pany via Digitalmars-d-announce

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


Re: requests 2.0.0 release

2020-11-01 Thread Jacob Carlborg via Digitalmars-d-announce

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


Re: requests 2.0.0 release

2020-11-01 Thread Sönke Ludwig via Digitalmars-d-announce

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.


Re: requests 2.0.0 release

2020-10-30 Thread Andre Pany via Digitalmars-d-announce

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


Re: requests 2.0.0 release

2020-10-30 Thread Jacob Carlborg via Digitalmars-d-announce

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


Re: requests 2.0.0 release

2020-10-29 Thread ikod via Digitalmars-d-announce

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


Re: requests 2.0.0 release

2020-10-29 Thread Anonymouse via Digitalmars-d-announce

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.


Re: requests 2.0.0 release

2020-10-29 Thread Alireza SN via Digitalmars-d-announce

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.


Re: requests 2.0.0 release

2020-10-29 Thread Andre Pany via Digitalmars-d-announce

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