adding deps to tox

This commit is contained in:
yeger 2019-06-09 14:32:24 -04:00
parent 9b0b41b89e
commit 2fdc262498
4 changed files with 5 additions and 7 deletions

View File

@ -9,8 +9,8 @@ python:
# - "3.6-dev" # 3.6 development branch
# - "3.7-dev" # 3.7 development branch
# command to install dependencies
#install:
# - pip install -r requirements.txt
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
enum ; python_version < '3.4'

View File

@ -21,9 +21,6 @@ class PyTest(TestCommand):
sys.exit(errno)
install_requires=["enum34;python_version<'3.4'"]
tests_require=["pytest", "pytest_mock"] + install_requires
setup(
name="pylspclient",
version="0.0.2",
@ -34,7 +31,6 @@ setup(
long_description_content_type="text/markdown",
url="https://github.com/yeger00/pylspclient",
packages=find_packages(),
install_requires=install_requires,
tests_require=tests_require,
tests_require=["pytest", "pytest_mock"],
cmdclass={"test": PyTest},
)

View File

@ -2,5 +2,6 @@
envlist = py27,py36
[testenv]
deps=-r{toxinidir}/requirements.txt
commands =
python setup.py test