Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21928
| Date | 2012-03-20 12:01 +0000 |
|---|---|
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| Subject | Re: pypi and dependencies |
| References | <mailman.814.1332176048.3037.python-list@python.org> <87bonrmsfk.fsf@benfinney.id.au> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.825.1332244912.3037.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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