<p dir="ltr">Pypi only parses requirements from wheels for display but this doesn't affect installation.</p>
<div class="gmail_quote">On Aug 28, 2014 7:49 AM, "Brett Graham" <<a href="mailto:brettgraham@gmail.com">brettgraham@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>I feel like these are stupid questions but I cannot seem to find a straight answer.</div><div><br></div><div>In brief,</div><div><div><br></div><div>1) what is egg-info/requires.txt used for?</div>
<div>2) how do I properly define requirements for pypi?</div></div><div><br></div><div>The details are:</div><div><br></div><div>I'm updating some packages on pypi and am having difficulty defining requirements.</div>
<div><br></div><div>One of the packages in question is: <a href="http://pypi.python.org/pypi/jsui" target="_blank">pypi.python.org/pypi/jsui</a></div><div><br></div><div>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:</div>
<div><br></div><div>flask</div><div>wsrpc</div><div><br></div><div>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.</div>
<div> </div><div>Thanks for your help.</div><div><br></div><div>==== python setup.py sdist build partial output ====</div><div><br></div><div><div>running sdist</div><div>running egg_info</div><div>writing requirements to jsui.egg-info/requires.txt</div>
<div>writing jsui.egg-info/PKG-INFO</div><div>writing top-level names to jsui.egg-info/top_level.txt</div><div>writing dependency_links to jsui.egg-info/dependency_links.txt</div><div>reading manifest file 'jsui.egg-info/SOURCES.txt'</div>
<div>writing manifest file 'jsui.egg-info/SOURCES.txt'</div><div>running check</div><div>warning: check: missing required meta-data: url</div><div><br></div><div>creating jsui-0.0.1</div><div>creating jsui-0.0.1/jsui</div>
<div>creating jsui-0.0.1/jsui.egg-info</div><div>making hard links in jsui-0.0.1...</div><div>hard linking README -> jsui-0.0.1</div><div>hard linking setup.py -> jsui-0.0.1</div><div>hard linking jsui/__init__.py -> jsui-0.0.1/jsui</div>
<div>hard linking jsui/serve.py -> jsui-0.0.1/jsui</div><div>hard linking jsui.egg-info/PKG-INFO -> jsui-0.0.1/jsui.egg-info</div><div>hard linking jsui.egg-info/SOURCES.txt -> jsui-0.0.1/jsui.egg-info</div><div>
hard linking jsui.egg-info/dependency_links.txt -> jsui-0.0.1/jsui.egg-info</div><div>hard linking jsui.egg-info/requires.txt -> jsui-0.0.1/jsui.egg-info</div><div>hard linking jsui.egg-info/top_level.txt -> jsui-0.0.1/jsui.egg-info</div>
<div>Writing jsui-0.0.1/setup.cfg</div><div>Creating tar archive</div><div>removing 'jsui-0.0.1' (and everything under it)</div><div>running build</div><div>running build_py</div></div></div>
<br>_______________________________________________<br>
Distutils-SIG maillist - <a href="mailto:Distutils-SIG@python.org">Distutils-SIG@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/distutils-sig" target="_blank">https://mail.python.org/mailman/listinfo/distutils-sig</a><br>
<br></blockquote></div>