Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21928

Re: pypi and dependencies

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <andrea.crotti.0@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'bug': 0.02; 'pypi': 0.04; 'python': 0.08; "(i'd": 0.09; 'fetch': 0.09; 'it;': 0.09; 'setup.py': 0.09; 'subject:dependencies': 0.09; 'am,': 0.12; 'adjustment': 0.16; 'finney': 0.16; 'metadata.': 0.16; 'solution?': 0.16; 'subject:pypi': 0.16; 'unpack': 0.16; 'cc:addr :python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.21; 'file,': 0.21; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; 'extract': 0.24; 'writes:': 0.25; 'cc:2**0': 0.26; 'all,': 0.27; "i'm": 0.28; 'cc:addr:python.org': 0.29; 'skip:p 30': 0.29; 'least': 0.30; 'pretty': 0.31; 'message-id:@gmail.com': 0.31; 'actually': 0.31; "i've": 0.32; 'does': 0.32; 'that,': 0.32; 'actual': 0.32; 'list': 0.32; 'there': 0.33; 'header:User- Agent:1': 0.33; 'file': 0.34; 'certain': 0.34; 'parse': 0.34; 'something': 0.35; 'project': 0.35; 'received:209.85.214': 0.36; 'received:10.0.0': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'should': 0.38; 'clearly': 0.39; 'received:209': 0.39; 'might': 0.40; 'full': 0.62; 'projects': 0.63; 'love': 0.63; 'believe': 0.65; '11:18': 0.84; 'andrea': 0.84; 'most,': 0.84; 'nice,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=Q7cyVswHFokVCUroEXiC0Bp4lL47KcbDDqiSFz8siEs=; b=BBweHtENsb34zNKr7pjyFxKw9wb5JSlmVvzyt1858sfMTPYszs7z9+TtF6jNMSFCwv jEH+HZNmGfH6vdZccMT9tMIZCYqkAjqKwIM9l0/93pocXlvxNBe5SxHEbE58G9cXhu4x OvfhUEuJ5PNkMyo8PjA9QLl8C2XIUMu5CkPy/Rrh/26ns3D+vDILdGRfY3B0P7yDbT0n Csk5pwR8IU0fmZ8AgtkYkCvkesi7vD5a75P3s3s9EcNp1iVdcNJ/5rpqZ+y+TQIQ4rLD RlD+Xudl4FnguVUWS5OjI07NijzovREt8vHjBEQErvlulzGMQ1huBgJ4f6TleoqtX57A eYPg==
Date Tue, 20 Mar 2012 12:01:47 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:10.0.2) Gecko/20120217 Thunderbird/10.0.2
MIME-Version 1.0
To Ben Finney <ben+python@benfinney.id.au>
Subject Re: pypi and dependencies
References <mailman.814.1332176048.3037.python-list@python.org> <87bonrmsfk.fsf@benfinney.id.au>
In-Reply-To <87bonrmsfk.fsf@benfinney.id.au>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.825.1332244912.3037.python-list@python.org> (permalink)
Lines 34
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1332244912 news.xs4all.nl 6875 [2001:888:2000:d::a6]:57705
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21928

Show key headers only | View raw


On 03/20/2012 11:18 AM, Ben Finney wrote:
> Andrea Crotti<andrea.crotti.0@gmail.com>  writes:
>
>> When I publish something on Pypi, is there a way to make it fetch the list
>> of dependencies needed by my project automatically?
>>
>> It would be nice to have it in the Pypi page, without having to look at the
>> actual code..
> Sadly, no. The metadata available for packages on PyPI does not include
> information about the dependencies.
>
> (I'd love to be wrong about that, but I'm pretty certain that for most,
> if not all, packages that's the case.)
>
>> Any other possible solution?
> All the solutions I've seen involve fetching the full package in order
> to unpack it and *then* parse it for dependencies.
>
> This is very sub-optimal, and I believe people are working on it; but
> fixing it will at least require adjustment to all existing packages that
> don't have dependencies in their metadata.
>

Yes that's not so nice, many projects write clearly the dependencies in 
the README file,
but that's annoying because it might get outdated.

And it's also sad that it's not automatically fetched from setuptools, 
because it's just

python setup.py egg-info && cat package.egg-info/requirements.txt

to actually extract them.
Should I file a bug maybe or is completely not feasible?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-19 16:54 +0000
  Re: pypi and dependencies Ben Finney <ben+python@benfinney.id.au> - 2012-03-20 22:18 +1100
    Re: pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-20 12:01 +0000
  Re: pypi and dependencies deets@web.de (Diez B. Roggisch) - 2012-03-21 12:38 +0100
    Re: pypi and dependencies Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-03-21 13:03 +0000

csiph-web