.gitignore: setup.py: Integrate pytest to run tests.

This commit is contained in:
Brett Smith 2017-05-17 17:21:43 -04:00
parent a6e46b0cca
commit 348b82e087
4 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
*.egg
*.egg-info/
.cache/
__pycache__/

View file

@ -32,3 +32,8 @@ Here's an example of using the Python library, complete with caching results:
if loader.should_cache():
cache_writer.save_rate(hist_rate)
# Rates are available from the hist_rates.rates dict.
Running tests
-------------
Run `./setup.py test` from your checkout directory.

2
setup.cfg Normal file
View file

@ -0,0 +1,2 @@
[aliases]
test=pytest

View file

@ -9,6 +9,10 @@ setup(
author='Brett Smith',
author_email='brettcsmith@brettcsmith.org',
license='GNU AGPLv3+',
setup_requires=['pytest-runner'],
tests_require=['pytest'],
packages=['oxrlib'],
entry_points={
'console_scripts': ['oxrquery = oxrlib.__main__:main'],