mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Add extras_require=testing
This commit is contained in:
committed by
Dave Halter
parent
56bd795100
commit
afb2755c27
10
setup.py
10
setup.py
@@ -31,7 +31,15 @@ setup(name='jedi',
|
||||
packages=find_packages(exclude=['test', 'test.*']),
|
||||
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*',
|
||||
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']},
|
||||
platforms=['any'],
|
||||
classifiers=[
|
||||
|
||||
21
tox.ini
21
tox.ini
@@ -1,16 +1,10 @@
|
||||
[tox]
|
||||
envlist = py27, py34, py35, py36
|
||||
[testenv]
|
||||
deps =
|
||||
pytest>=2.3.5
|
||||
pytest-cache
|
||||
# docopt for sith doctests
|
||||
docopt
|
||||
# coloroma for colored debug output
|
||||
colorama
|
||||
extras = testing
|
||||
# Overwrite the parso version (only used sometimes).
|
||||
# git+https://github.com/davidhalter/parso.git
|
||||
-rrequirements.txt
|
||||
# deps =
|
||||
# git+https://github.com/davidhalter/parso.git
|
||||
passenv = JEDI_TEST_ENVIRONMENT
|
||||
setenv =
|
||||
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
||||
@@ -24,34 +18,29 @@ setenv =
|
||||
env36: JEDI_TEST_ENVIRONMENT=36
|
||||
env37: JEDI_TEST_ENVIRONMENT=37
|
||||
commands =
|
||||
py.test {posargs:jedi test}
|
||||
pytest {posargs:jedi test}
|
||||
[testenv:py27]
|
||||
deps =
|
||||
# for testing the typing module
|
||||
typing
|
||||
# numpydoc for typing scipy stack
|
||||
numpydoc
|
||||
{[testenv]deps}
|
||||
[testenv:py34]
|
||||
deps =
|
||||
typing
|
||||
numpydoc
|
||||
{[testenv]deps}
|
||||
[testenv:py35]
|
||||
deps =
|
||||
numpydoc
|
||||
{[testenv]deps}
|
||||
[testenv:py36]
|
||||
deps =
|
||||
numpydoc
|
||||
{[testenv]deps}
|
||||
[testenv:cov]
|
||||
deps =
|
||||
coverage
|
||||
numpydoc
|
||||
{[testenv]deps}
|
||||
commands =
|
||||
coverage run --source jedi -m py.test
|
||||
coverage run --source jedi -m pytest
|
||||
coverage report
|
||||
[testenv:sith]
|
||||
commands =
|
||||
|
||||
Reference in New Issue
Block a user