mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Add a requirements.txt.
Also use it within setup.py. It doesn't seem possible to define dependencies for tox with install_requires.
This commit is contained in:
@@ -7,6 +7,7 @@ include sith.py
|
|||||||
include conftest.py
|
include conftest.py
|
||||||
include pytest.ini
|
include pytest.ini
|
||||||
include tox.ini
|
include tox.ini
|
||||||
|
include requirements.txt
|
||||||
include jedi/evaluate/compiled/fake/*.pym
|
include jedi/evaluate/compiled/fake/*.pym
|
||||||
include jedi/parser/python/grammar*.txt
|
include jedi/parser/python/grammar*.txt
|
||||||
recursive-include test *
|
recursive-include test *
|
||||||
|
|||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
|||||||
|
parso==0.0.1
|
||||||
3
setup.py
3
setup.py
@@ -10,7 +10,8 @@ __AUTHOR_EMAIL__ = 'davidhalter88@gmail.com'
|
|||||||
|
|
||||||
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
|
readme = open('README.rst').read() + '\n\n' + open('CHANGELOG.rst').read()
|
||||||
packages = ['jedi', 'jedi.evaluate', 'jedi.evaluate.compiled', 'jedi.api']
|
packages = ['jedi', 'jedi.evaluate', 'jedi.evaluate.compiled', 'jedi.api']
|
||||||
install_requires = ['parso==0.0.1']
|
with open('requirements.txt') as f:
|
||||||
|
install_requires = f.read().splitlines()
|
||||||
|
|
||||||
setup(name='jedi',
|
setup(name='jedi',
|
||||||
version=jedi.__version__,
|
version=jedi.__version__,
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
from jedi._compatibility import u, is_py3
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
|
from jedi._compatibility import is_py3
|
||||||
from jedi import parser_utils
|
from jedi import parser_utils
|
||||||
from parso.python import parse
|
from parso.python import parse
|
||||||
from parso.python import tree
|
from parso.python import tree
|
||||||
@@ -67,7 +69,7 @@ def test_hex_values_in_docstring():
|
|||||||
if is_py3:
|
if is_py3:
|
||||||
assert doc == '\xff'
|
assert doc == '\xff'
|
||||||
else:
|
else:
|
||||||
assert doc == u('<EFBFBD>')
|
assert doc == u'<EFBFBD>'
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
1
tox.ini
1
tox.ini
@@ -8,6 +8,7 @@ deps =
|
|||||||
docopt
|
docopt
|
||||||
# coloroma for colored debug output
|
# coloroma for colored debug output
|
||||||
colorama
|
colorama
|
||||||
|
-rrequirements.txt
|
||||||
setenv =
|
setenv =
|
||||||
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
||||||
# tox corrupts __pycache__, solution from here:
|
# tox corrupts __pycache__, solution from here:
|
||||||
|
|||||||
Reference in New Issue
Block a user