[Distutils] defining requirements on pypi
Brett Graham
brettgraham at gmail.com
Thu Aug 28 22:09:43 CEST 2014
Thanks for testing it and extra info!
It sounds like I 'fixed' the problem in the not-recommended way of
including requirements.txt in the MANIFEST.in.
I've been using a pretty hefty setup.py:
https://github.com/braingram/simple_setup that attempts to auto-parse and
detect 'everything' (finding packages, data, scripts, author info, version,
requirements) with the hope of dropping it in a directory with a python
module and magically having it pypi compatible. It sounds like it may be a
pipe dream :)
On Thu, Aug 28, 2014 at 2:41 PM, Marcus Smith <qwcode at gmail.com> wrote:
>
>
>
> On Wed, Aug 27, 2014 at 2:51 PM, Brett Graham <brettgraham at gmail.com>
> wrote:
>
>> Hi,
>>
>> I feel like these are stupid questions but I cannot seem to find a
>> straight answer.
>>
>> In brief,
>>
>> 1) what is egg-info/requires.txt used for?
>> 2) how do I properly define requirements for pypi?
>>
>> The details are:
>>
>> I'm updating some packages on pypi and am having difficulty defining
>> requirements.
>>
>> One of the packages in question is: pypi.python.org/pypi/jsui
>>
>> I'm initially defining the requirements in a requirements.txt that then
>> gets parsed in setup.py and install_requires gets set to the contents of
>> requirements.txt. Some of the output from python setup.py sdist build is
>> below. The resulting requires.txt in jsui.egg-info is:
>>
>> flask
>> wsrpc
>>
>> However, when I upload this to pypi with "python setup.py sdist upload"
>> I'm not seeing these requirements listed nor does pip installing the
>> package install the requirements
>>
>
> when I install jsui from pypi, it finds and installs flask and wsrpc.
> what you've done is working.
>
> in general though, I wouldn't parse "install_requires" from a requirements
> file.
> It's mixing use cases.
>
> see the "install_requires vs requirements files" section in the Python
> Packaging User Guide
>
> https://packaging.python.org/en/latest/technical.html#install-requires-vs-requirements-files
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20140828/e7239c57/attachment.html>
More information about the Distutils-SIG
mailing list