Automatic installation of dependencies when publishing Python 3 project on pypi
<p>I want to publish a project using pypi. Ideally I would like the installation to be: </p>

<pre><code>sudo pip3 install ProjectName
</code></pre>

<p>The problem is, I get:</p>

<blockquote>
  <p>Could not find any downloads that satisfy the
  requirement itsdangerous 
  (from ProjectName)   Some insecure and unverifiable files were
  ignored (use --allow-unverified itsdangerous to allow).</p>
</blockquote>

<p>If I firstly install the external requirements (itsdangerous and wspy in this case), then the installation completes. </p>

<p>Here is my requirements.txt:</p>

<pre><code>requests&gt;=2.10.0
six&gt;=1.10.0
itsdangerous==0.24
ws4py==0.3.4
</code></pre>

<p>And here is the install_requires from setup.py:</p>

<pre><code>install_requires=[
    "requests",
    "six",
    "ws4py",
    "itsdangerous"
]
</code></pre>

<p>One thing I think may cause the issue is that the requirements.txt is not included in MANIFEST.in, but I am not sure how to include it.</p>

<p>I am using <a href="https://testpypi.python.org/pypi/" rel="nofollow">https://testpypi.python.org/pypi/</a>.</p>

<p>Basically, I have the same issue as described in this <a href="http://stackoverflow.com/questions/23014238/pip-any-workaround-to-avoid-allow-external/23072180">question</a>. I do not really understand the accepted answer.</p>

<h2>To install</h2>

<p>Update your <code>~/.config/pip/pip.conf</code> and/or <code>/etc/pip.conf</code>. </p>

<p>Append the test repository to the <code>--find-links</code> option:</p>

<pre><code>[install]
find-links =
    https://pypi.python.org/pypi
    https://testpypi.python.org/pypi
</code></pre>

<p>The order is importantâ¦</p>

<p>See the <a href="https://pip.pypa.io/en/stable/user_guide/#configuration" rel="nofollow">Cofiguration</a> topic in the documentation.</p>

<h2>To register and upload</h2>

<p>See the <a href="https://wiki.python.org/moin/TestPyPI" rel="nofollow">TestPypi</a> wiki page.</p>

python pip pypi