Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-21 Thread Marius Gedminas
On Fri, Jul 21, 2017 at 11:39:01AM +0200, Krzysiek Płachno wrote: > Guys! Thanks a lot for all your responses and willingness to help! > > Yesterday I noticed this `requires_dist` in response for Requests package. But > actually it was the only one that had this field populated from many packages

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-21 Thread Nick Coghlan
On 21 July 2017 at 19:39, Krzysiek Płachno wrote: > Guys! Thanks a lot for all your responses and willingness to help! > > Yesterday I noticed this `requires_dist` in response for Requests package. > But actually it was the only one that had this field populated from

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-21 Thread Krzysiek Płachno
Guys! Thanks a lot for all your responses and willingness to help! Yesterday I noticed this `requires_dist` in response for Requests package. But actually it was the only one that had this field populated from many packages that I asked API for. So this cannot be reliable way of getting

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Jeremy Stanley
On 2017-07-20 21:09:28 -0400 (-0400), John Thorvald Wodder II wrote: > [Sending to the list this time] > > On 2017 Jul 20, at 12:41, Jeremy Stanley wrote: > > So while it might be possible to add some sort of feature > > to inspect wheels at upload and then store the specific

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread John Thorvald Wodder II
[Sending to the list this time] On 2017 Jul 20, at 12:41, Jeremy Stanley wrote: > So while it might be possible to add some sort of feature > to inspect wheels at upload and then store the specific dependencies > declared therein and report those back via an API method, I

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Jeremy Stanley
On 2017-07-20 11:11:38 -0300 (-0300), Leonardo Rochael Almeida wrote: [...] > A small clarification: Packages can define their own dependencies > dynamically only at *build* time, not at *installation* time. > > The difference is subtle (considering many packages (the ones with only > sdist on

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Jannis Gebauer
Unfortunately, yes there is no public API for a Python packages’ dependencies available. > On 20. Jul 2017, at 15:43, Krzysiek Płachno wrote: > > None of them sends back required dependencies for package. > Does it mean - this information is not obtainable via JSON

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Leonardo Rochael Almeida
Hi Jeremy, On 20 July 2017 at 10:22, Jeremy Stanley wrote: > On 2017-07-20 14:55:53 +0200 (+0200), Krzysiek Płachno wrote: > [...] > > > > Or is it possible to this data in any other way (apart from > > downloading package)? > > Unfortunately, no, not with the current state

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Nick Coghlan
On 20 July 2017 at 23:43, Krzysiek Płachno wrote: > None of them sends back required dependencies for package. > Does it mean - this information is not obtainable via JSON Api? Unfortunately not, as dependencies currently aren't generally available in a declarative

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Jannis Gebauer
Hi Krzysztof, Two options, e.g. for the “graphene” package: - https://pypi.python.org/pypi/graphene/json - https://pypi.org/pypi/graphene/json Best, Jannis > On 20. Jul 2017, at 14:55, Krzysiek Płachno

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Jeremy Stanley
On 2017-07-20 14:55:53 +0200 (+0200), Krzysiek Płachno wrote: [...] > To make downloaded package working it's needed to install also > dependencies. Is it possible to get dependencies information > directly from PyPiJSON API? (e.g. by adding some request parameter > or header in GET request) > >

Re: [Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Krzysiek Płachno
None of them sends back required dependencies for package. Does it mean - this information is not obtainable via JSON Api? Best, Krzysztof 2017-07-20 15:04 GMT+02:00 Jannis Gebauer : > Hi Krzysztof, > > Two options, e.g. for the “graphene” package: > > -

[Distutils] Getting dependecies of package from PyPiJSON

2017-07-20 Thread Krzysiek Płachno
Hi! I'm contributing to XWiki open source project http://www.xwiki.org/. XWiki platform is written in Java and apart from many wonderful features allows for scripting in python on its pages. My current task is to enable installing packages form PyPi repository so that they can be later used in