This commit is contained in:
Michel Oosterhof 2019-05-12 21:38:49 +04:00 committed by GitHub
parent a1324ddac0
commit 3c99ed531b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 9 deletions

View File

@ -3,10 +3,8 @@
# Dummy target `all` # Dummy target `all`
all: all:
# Note --aplication-import-names only works on Python3 test:
tox
test: lint
PYTHONPATH=src trial cowrie
build: build:
python setup.py build sdist bdist python setup.py build sdist bdist
@ -15,7 +13,7 @@ docs:
make -C docs html make -C docs html
lint: lint:
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics --exclude=cowrie-env . tox -e lint
clean: clean:
rm -rf _trial_temp build dist rm -rf _trial_temp build dist

15
tox.ini
View File

@ -1,8 +1,17 @@
[tox] [tox]
skipsdist = True skipsdist = True
envlist = lint,py27,py37,docs envlist = lint,py27,py34,py35,py36,py37,py38,docs
deps = -r{toxinidir}/requirements.txt deps = -r{toxinidir}/requirements.txt
[travis]
python =
2.7: py27
3.4: py34
3.5: py35
3.6: py36
3.7: py37, lint, docs
3.8-dev: py38
[testenv] [testenv]
setenv = setenv =
PYTHONPATH = {toxinidir}/src PYTHONPATH = {toxinidir}/src
@ -12,13 +21,11 @@ commands =
trial cowrie trial cowrie
[testenv:lint] [testenv:lint]
setenv =
PYTHONPATH = {toxinidir}/src
deps = deps =
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
-r{toxinidir}/requirements-dev.txt -r{toxinidir}/requirements-dev.txt
commands = commands =
flake8 --count --application-import-names cowrie --max-line-length=120 --statistics . flake8 --count --application-import-names cowrie --max-line-length=120 --statistics {toxinidir}/src
[testenv:docs] [testenv:docs]
setenv = setenv =