How can I install git dependencies even though a package installs an older version?

Issue #214 on hold
Adrian Mönnich created an issue

Right now I'm using this terrible tox.ini:

[tox]
envlist = {py27,py33,py34}-{release,devel}

[testenv]
deps =
    pytest
    pytest-cov
    release: flask
    release: jinja2
commands =
    devel: pip uninstall -y flask
    devel: pip install git+git://github.com/mitsuhiko/flask.git
    devel: pip uninstall -y jinja2
    devel: pip install git+git://github.com/mitsuhiko/jinja2.git
    py.test

However, I'd expect it to work with this config:

[tox]
envlist = {py27,py33,py34}-{release,devel}

[testenv]
deps =
    pytest
    pytest-cov
    release: jinja2
    release: flask
    devel: git+git://github.com/mitsuhiko/jinja2.git
    devel: git+git://github.com/mitsuhiko/flask.git
commands = py.test

My package's setup.py contains 'Flask>=0.7' in install_requires and Flask requires Jinja2>=2.4. However, with the second tox.ini I always end up with the latest released Jinja2 from PyPi instead of the dev version from git.

Comments (4)

  1. Adrian Mönnich reporter

    Nevermind. It's apparently because Flask/Jinja use dev versions not compatible with PEP440.

  2. Log in to comment