Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

The goal of science is to build better mousetraps. The goal of nature is to build better mice.


devel / comp.lang.python / How to get the needed version of a dependency

SubjectAuthor
* How to get the needed version of a dependencyCecil Westerhof
`* Re: How to get the needed version of a dependencyDFS
 `- Re: How to get the needed version of a dependencyCecil Westerhof

1
How to get the needed version of a dependency

<875yee1i0p.fsf@munus.decebal.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25090&group=comp.lang.python#25090

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Cecil@decebal.nl (Cecil Westerhof)
Newsgroups: comp.lang.python
Subject: How to get the needed version of a dependency
Date: Wed, 14 Dec 2022 09:55:34 +0100
Organization: Decebal Computing
Lines: 14
Message-ID: <875yee1i0p.fsf@munus.decebal.nl>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="94b0066a0d3d7e09ea965b08e707b0e1";
logging-data="2914058"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gDENG1fkRC4S/pcXyquzv8rxFu3k7Oc4="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:tKv8vxFLbaVEOX5mHIV//z4lQW4=
sha1:IwoJ7JJmdHqDX/28GaBROSIEY0Q=
 by: Cecil Westerhof - Wed, 14 Dec 2022 08:55 UTC

If I want to know the dependencies for requests I use:
pip show requests

And one of the lines I get is:
Requires: certifi, charset-normalizer, idna, urllib3

But I want (in this case) to know with version of charset-normalizer
requests needs.
How do I get that?

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Re: How to get the needed version of a dependency

<NlkmL.39210$iU59.15110@fx14.iad>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25093&group=comp.lang.python#25093

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx14.iad.POSTED!not-for-mail
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101
Thunderbird/91.13.1
Subject: Re: How to get the needed version of a dependency
Content-Language: en-US
Newsgroups: comp.lang.python
References: <875yee1i0p.fsf@munus.decebal.nl>
From: nospam@dfs.com (DFS)
In-Reply-To: <875yee1i0p.fsf@munus.decebal.nl>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 23
Message-ID: <NlkmL.39210$iU59.15110@fx14.iad>
X-Complaints-To: abuse@blocknews.net
NNTP-Posting-Date: Wed, 14 Dec 2022 13:38:53 UTC
Organization: blocknews - www.blocknews.net
Date: Wed, 14 Dec 2022 08:38:54 -0500
X-Received-Bytes: 1488
 by: DFS - Wed, 14 Dec 2022 13:38 UTC

On 12/14/2022 3:55 AM, Cecil Westerhof wrote:
> If I want to know the dependencies for requests I use:
> pip show requests
>
> And one of the lines I get is:
> Requires: certifi, charset-normalizer, idna, urllib3
>
> But I want (in this case) to know with version of charset-normalizer
> requests needs.
> How do I get that?

Check the METADATA file in the *dist-info package files usually found in
Lib\site-packages.

ie \Python\3.11.0\Lib\site-packages\pandas-1.5.2.dist-info

Look for config lines beginning with 'Requires':

Requires-Python: >=3.8
Requires-Dist: python-dateutil (>=2.8.1)

$ pip list will show you which version of the package you have
installed, so you can search for the matching .dist-info file

Re: How to get the needed version of a dependency

<87tu1xzofd.fsf@munus.decebal.nl>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=25101&group=comp.lang.python#25101

  copy link   Newsgroups: comp.lang.python
Path: i2pn2.org!i2pn.org!eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From: Cecil@decebal.nl (Cecil Westerhof)
Newsgroups: comp.lang.python
Subject: Re: How to get the needed version of a dependency
Date: Wed, 14 Dec 2022 22:05:26 +0100
Organization: Decebal Computing
Lines: 36
Message-ID: <87tu1xzofd.fsf@munus.decebal.nl>
References: <875yee1i0p.fsf@munus.decebal.nl>
<NlkmL.39210$iU59.15110@fx14.iad>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: reader01.eternal-september.org; posting-host="94b0066a0d3d7e09ea965b08e707b0e1";
logging-data="3027022"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+fUojAY85aYV/R02ddr3w6HCFpM6dEy68="
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:xh7qOHLXv3Rj3zpDA18/lyicY1Y=
sha1:MRD+tQBy0J2n2sAgQdWOo3NAhzs=
 by: Cecil Westerhof - Wed, 14 Dec 2022 21:05 UTC

DFS <nospam@dfs.com> writes:

> On 12/14/2022 3:55 AM, Cecil Westerhof wrote:
>> If I want to know the dependencies for requests I use:
>> pip show requests
>> And one of the lines I get is:
>> Requires: certifi, charset-normalizer, idna, urllib3
>> But I want (in this case) to know with version of charset-normalizer
>> requests needs.
>> How do I get that?
>
> Check the METADATA file in the *dist-info package files usually found in
> Lib\site-packages.
>
> ie \Python\3.11.0\Lib\site-packages\pandas-1.5.2.dist-info
>
> Look for config lines beginning with 'Requires':
>
> Requires-Python: >=3.8
> Requires-Dist: python-dateutil (>=2.8.1)
>
> $ pip list will show you which version of the package you have
> installed, so you can search for the matching .dist-info file

Works. In
/usr/local/lib/python3.9/dist-packages/requests-2.28.1.dist-info/METADATA
I see:
Requires-Dist: charset-normalizer (<3,>=2)

That already keeps charset-normalizer two months from being updated.
Maybe I should contact Kenneth Reitz.

--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof


devel / comp.lang.python / How to get the needed version of a dependency

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor