Skip to content

Commit

Permalink
Make 'python3 setup.py test' work
Browse files Browse the repository at this point in the history
Apply the steps for enabling testing using pytest provided at
https://docs.pytest.org/en/latest/goodpractices.html

This will make the check section in upstream packaging execute
the unit tests.
  • Loading branch information
rcritten committed Apr 25, 2019
1 parent 2120afd commit 587c423
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[aliases]
test=pytest
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@
'Programming Language :: Python :: 3.6',
],
python_requires='!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*',
setup_requires=['pytest-runner',],
tests_require=['pytest',],
)
Empty file.

0 comments on commit 587c423

Please sign in to comment.