Depend on git repository in setup.py : <p>I'm trying to make a project depend on a git dependency. However, I can't seem to get it to work. What I basically want to achieve is the following, but it doesn't work:</p>

<pre><code>#!/usr/bin/env python3
from setuptools import setup


setup(
    name='spam',
    version='0.0.0',
    install_requires=[
        'git+https://github.com/remcohaszing/pywakeonlan.git'
    ])
</code></pre>

<p>I tried several variations on the above, such as adding <code>@master</code> or <code>#egg=wakeonlan-0.2.2</code>, but this doesn't make a difference.</p>

<p>The following works, but only when using the deprecated <code>pip</code> flag, <code>--process-dependency-links</code>:</p>

<pre><code>#!/usr/bin/env python3
from setuptools import setup


setup(
    name='spam',
    version='0.0.0',
    install_requires=[
        'wakeonlan'
    ],
    dependency_links=[
        'git+https://github.com/remcohaszing/pywakeonlan.git#egg=wakeonlan-0.2.2'
    ])
</code></pre>

<p>This outputs:</p>

<pre><code>$ pip install --no-index -e . --process-dependency-links
Obtaining file:///home/remco/Downloads/spam
  DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
Collecting wakeonlan (from spam==0.0.0)
  Cloning https://github.com/remcohaszing/pywakeonlan.git to /tmp/pip-build-mkhpjcjf/wakeonlan
  DEPRECATION: Dependency Links processing has been deprecated and will be removed in a future release.
Installing collected packages: wakeonlan, spam
  Running setup.py install for wakeonlan ... done
  Running setup.py develop for spam
Successfully installed spam wakeonlan-0.2.2
</code></pre>

<p>The following does work:</p>

<pre><code>pip install 'git+https://github.com/remcohaszing/pywakeonlan.git'
</code></pre>

<p>Also adding the git url in a requirements file just works.</p>

<p>Is there any <strong>non deprecated</strong> way to depend on a git url using a <code>setup.py</code> file?</p>
