Changeset - 348b82e08759
[Not reviewed]
0 3 1
Brett Smith - 7 years ago 2017-05-17 21:22:39
brettcsmith@brettcsmith.org
.gitignore: setup.py: Integrate pytest to run tests.
4 files changed with 13 insertions and 0 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
 
*.egg
 
*.egg-info/
 
.cache/
 
__pycache__/
README.rst
Show inline comments
...
 
@@ -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.
setup.cfg
Show inline comments
 
new file 100644
 
[aliases]
 
test=pytest
setup.py
Show inline comments
...
 
@@ -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'],
0 comments (0 inline, 0 general)