Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pypi and dependencies

Reply
Thread Tools

pypi and dependencies

 
 
Andrea Crotti
Guest
Posts: n/a
 
      03-19-2012
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?
 
Reply With Quote
 
 
 
 
Andrea Crotti
Guest
Posts: n/a
 
      03-20-2012
On 03/20/2012 11:18 AM, Ben Finney wrote:
> Andrea Crotti<> 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?
 
Reply With Quote
 
 
 
 
Diez B. Roggisch
Guest
Posts: n/a
 
      03-21-2012
Andrea Crotti <> 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
 
Reply With Quote
 
Andrea Crotti
Guest
Posts: n/a
 
      03-21-2012
On 03/21/2012 11:38 AM, Diez B. Roggisch wrote:
> Andrea Crotti<> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://pypi.python.org/pypi gert Python 3 05-01-2010 12:16 PM
PyPI source dependencies? Aahz Python 0 02-02-2010 09:29 PM
setup.py and PyPI Ethan Furman Python 0 12-14-2009 05:04 PM
Question about PyPI and 'easy_install' makoto kuwata Python 5 02-28-2008 09:29 AM
pypi and easy_install Giampaolo Rodola' Python 4 12-20-2007 01:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57