Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21903 > unrolled thread
| Started by | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| First post | 2012-03-19 16:54 +0000 |
| Last post | 2012-03-21 13:03 +0000 |
| Articles | 5 — 3 participants |
Back to article view | Back to comp.lang.python
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
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-03-19 16:54 +0000 |
| Subject | pypi and dependencies |
| Message-ID | <mailman.814.1332176048.3037.python-list@python.org> |
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.. Any other possible solution?
[toc] | [next] | [standalone]
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2012-03-20 22:18 +1100 |
| Message-ID | <87bonrmsfk.fsf@benfinney.id.au> |
| In reply to | #21903 |
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. -- \ “Some people have a problem, and they think “I know, I'll use | `\ Perl!”. Now they have some number of problems but they're not | _o__) sure whether it's a string or an integer.” —Benno Rice, 2011 | Ben Finney
[toc] | [prev] | [next] | [standalone]
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-03-20 12:01 +0000 |
| Message-ID | <mailman.825.1332244912.3037.python-list@python.org> |
| In reply to | #21924 |
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?
[toc] | [prev] | [next] | [standalone]
| From | deets@web.de (Diez B. Roggisch) |
|---|---|
| Date | 2012-03-21 12:38 +0100 |
| Message-ID | <m2k42e89r8.fsf@web.de> |
| In reply to | #21903 |
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.. > Any other possible solution? I don't understand this - if you declare the dependencies of your published package in the requires-section of the setup()-call, easy_install (and I guess pip as well, no experience with it) will automatically fetch these. Is that what you wanted to know? Diez
[toc] | [prev] | [next] | [standalone]
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
|---|---|
| Date | 2012-03-21 13:03 +0000 |
| Message-ID | <mailman.858.1332335028.3037.python-list@python.org> |
| In reply to | #21979 |
On 03/21/2012 11:38 AM, Diez B. Roggisch 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.. >> Any other possible solution? > I don't understand this - if you declare the dependencies of your > published package in the requires-section of the setup()-call, > easy_install (and I guess pip as well, no experience with it) will > automatically fetch these. > > Is that what you wanted to know? > > Diez It would be nice to know the dependencies *before* you actually try to install it ;)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web