[tox]
envlist = py26,py27,py32,py33,py34,pypy,{py27,py34}-flake8,docstrings

[testenv]
pip_pre = False
deps =
    -rdev-requirements.txt
    pypy,py26,py27: unittest2
commands = py.test {posargs}

[testenv:py27-flake8]
basepython = python2.7
deps =
    flake8
commands = flake8 {posargs} github3/

[testenv:py34-flake8]
basepython = python3.4
deps =
    flake8
commands = flake8 {posargs} github3/

[testenv:docstrings]
deps =
    flake8
    flake8-docstrings
commands = flake8 {posargs} github3/ tests/unit/ tests/integration/

[testenv:release]
deps =
    twine
commands =
    python setup.py sdist
    pip wheel --wheel-dir dist/
    twine upload {posargs} dist/*

[pytest]
addopts = -q
norecursedirs = *.egg .git .* _*

[tox]
envlist = py26,py27,py32,py33,py34,pypy,{py27,py34}-flake8,docstrings

[testenv]
pip_pre = False
deps =
    -rdev-requirements.txt
    pypy,py26,py27: unittest2
commands = py.test {posargs}

[testenv:py27-flake8]
basepython = python2.7
deps =
    flake8
commands = flake8 {posargs} github3/

[testenv:py34-flake8]
basepython = python3.4
deps =
    flake8
commands = flake8 {posargs} github3/

[testenv:docstrings]
deps =
    flake8
    flake8-docstrings
commands = flake8 {posargs} github3/ tests/unit/ tests/integration/

[testenv:release]
deps =
    twine >= 1.4.0
commands =
    python setup.py sdist
    pip wheel --wheel-dir dist/
    twine upload {posargs} dist/*

[pytest]
addopts = -q
norecursedirs = *.egg .git .* _*

Add minimum version for twine
Add minimum version for twine

v1.4.0 should be released soon and should enable this workflow
