Last active
April 20, 2016 16:32
-
-
Save bloodearnest/628b7e89e9ca9dc4392cebf0da080359 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
tests_requires = [ | |
'flake8>=2.4.1', | |
'pytest>=2.9.1', | |
'freezegun>=0.3.6', | |
'coverage>=4.0', | |
] | |
devel_requires = test_requires + ['detox'] | |
docs_requires = [ | |
'Sphinx==1.4', | |
'sphinxcontrib-programoutput==0.8', | |
] | |
release_requires = docs_requires + [ | |
'wheel', | |
'twine', | |
'bumpversion', | |
] | |
setup( | |
... | |
extras_require={ | |
'tests': test_requires, | |
'devel': devel_requires, | |
'docs': docs_requires, | |
'release': release_requires, | |
}, | |
... | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Now you can do
pip install -e .[devel] for a dev env.
pip install -e .[tests] for your tox/travis envs,
pip install -e .[release] when you want to publish