Merge pull request #5 from davesque/misc-fixes

Misc fixes
This commit is contained in:
Jason Carver 2018-06-04 16:45:32 -06:00 committed by GitHub
commit 28787fe9f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 11 deletions

View File

@ -29,7 +29,7 @@ lint-roll:
$(MAKE) lint
test:
py.test tests
pytest tests
test-all:
tox

View File

@ -4,4 +4,4 @@ python_paths= .
xfail_strict=true
[pytest-watch]
runner= py.test --failed-first --maxfail=1 --no-success-flaky-report
runner= pytest --failed-first --maxfail=1 --no-success-flaky-report

View File

@ -5,9 +5,10 @@ from setuptools import (
find_packages,
)
extras_require={
extras_require = {
'test': [
"pytest==3.3.2",
"pytest-xdist",
"tox>=2.9.1,<3",
],
'lint': [
@ -20,7 +21,6 @@ extras_require={
],
'dev': [
"bumpversion>=0.5.3,<1",
"pytest-xdist",
"pytest-watch>=4.1.0,<5",
"wheel",
"ipython",
@ -28,10 +28,10 @@ extras_require={
}
extras_require['dev'] = (
extras_require['dev']
+ extras_require['test']
+ extras_require['lint']
+ extras_require['doc']
extras_require['dev'] +
extras_require['test'] +
extras_require['lint'] +
extras_require['doc']
)
setup(

View File

@ -22,7 +22,7 @@ ignore=
[testenv]
usedevelop=True
commands=
core: py.test {posargs:tests/core}
core: pytest {posargs:tests/core}
doctest: make -C {toxinidir}/docs doctest
basepython =
doctest: python
@ -38,5 +38,5 @@ whitelist_externals=make
basepython=python
extras=lint
commands=
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests
flake8 {toxinidir}/<MODULE_NAME> {toxinidir}/tests
isort --recursive --check-only --diff {toxinidir}/<MODULE_NAME> {toxinidir}/tests