Add extras_require=testing

This commit is contained in:
Daniel Hahler
2018-09-16 05:36:29 +02:00
committed by Dave Halter
parent 56bd795100
commit afb2755c27
2 changed files with 14 additions and 17 deletions

View File

@@ -31,7 +31,15 @@ setup(name='jedi',
packages=find_packages(exclude=['test', 'test.*']), packages=find_packages(exclude=['test', 'test.*']),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
install_requires=install_requires, install_requires=install_requires,
extras_require={'dev': ['docopt']}, extras_require={
'testing': [
'pytest>=2.3.5',
# docopt for sith doctests
'docopt',
# coloroma for colored debug output
'colorama',
],
},
package_data={'jedi': ['evaluate/compiled/fake/*.pym']}, package_data={'jedi': ['evaluate/compiled/fake/*.pym']},
platforms=['any'], platforms=['any'],
classifiers=[ classifiers=[

21
tox.ini
View File

@@ -1,16 +1,10 @@
[tox] [tox]
envlist = py27, py34, py35, py36 envlist = py27, py34, py35, py36
[testenv] [testenv]
deps = extras = testing
pytest>=2.3.5
pytest-cache
# docopt for sith doctests
docopt
# coloroma for colored debug output
colorama
# Overwrite the parso version (only used sometimes). # Overwrite the parso version (only used sometimes).
# git+https://github.com/davidhalter/parso.git # deps =
-rrequirements.txt # git+https://github.com/davidhalter/parso.git
passenv = JEDI_TEST_ENVIRONMENT passenv = JEDI_TEST_ENVIRONMENT
setenv = setenv =
# https://github.com/tomchristie/django-rest-framework/issues/1957 # https://github.com/tomchristie/django-rest-framework/issues/1957
@@ -24,34 +18,29 @@ setenv =
env36: JEDI_TEST_ENVIRONMENT=36 env36: JEDI_TEST_ENVIRONMENT=36
env37: JEDI_TEST_ENVIRONMENT=37 env37: JEDI_TEST_ENVIRONMENT=37
commands = commands =
py.test {posargs:jedi test} pytest {posargs:jedi test}
[testenv:py27] [testenv:py27]
deps = deps =
# for testing the typing module # for testing the typing module
typing typing
# numpydoc for typing scipy stack # numpydoc for typing scipy stack
numpydoc numpydoc
{[testenv]deps}
[testenv:py34] [testenv:py34]
deps = deps =
typing typing
numpydoc numpydoc
{[testenv]deps}
[testenv:py35] [testenv:py35]
deps = deps =
numpydoc numpydoc
{[testenv]deps}
[testenv:py36] [testenv:py36]
deps = deps =
numpydoc numpydoc
{[testenv]deps}
[testenv:cov] [testenv:cov]
deps = deps =
coverage coverage
numpydoc numpydoc
{[testenv]deps}
commands = commands =
coverage run --source jedi -m py.test coverage run --source jedi -m pytest
coverage report coverage report
[testenv:sith] [testenv:sith]
commands = commands =