Skip to content

Commit

Permalink
Use setup.py for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed May 10, 2019
1 parent c4acfe5 commit 2869b48
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ python:
- 3.7
install:
- python setup.py develop
- pip install pytest pytest-cov flake8
script:
- python -m pytest -v tests squabble --doctest-modules --disable-warnings --cov=squabble
- python setup.py test
- python -m flake8 squabble
6 changes: 6 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
max-line-length = 80
doctests = True
exclude = .git, __pycache__, ve/

[aliases]
test=pytest

[tool:pytest]
addopts = --verbose --doctest-modules --disable-warnings -cov=squabble tests/ squabble/
9 changes: 9 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,20 @@
},
python_requires='>=3.5',
license='GPLv3+',
setup_requires=[
'pytest-runner',
],
install_requires=[
'pglast==1.1',
'docopt==0.6.2',
'colorama==0.4.1'
],
tests_require=[
'pytest',
'pytest-runner',
'pytest-cov',
'flake8',
],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 3 :: Only',
Expand Down

0 comments on commit 2869b48

Please sign in to comment.