Skip to content

Commit

Permalink
Merge b9e925b into 73da3e1
Browse files Browse the repository at this point in the history
  • Loading branch information
jakehadar committed Sep 15, 2019
2 parents 73da3e1 + b9e925b commit 51277a1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
@@ -0,0 +1,6 @@
[run]
omit =
.eggs/*
gbfs/examples/*
gbfs/static/*
source = gbfs
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -5,7 +5,11 @@ python:

install:
- pip install -r requirements-test.txt
- python setup.py install
- pip install coveralls

script:
- pytest
- coverage run setup.py test

after_success:
- coverage report -m
- coveralls
1 change: 1 addition & 0 deletions requirements-test.txt
@@ -1 +1,2 @@
pytest
coverage
2 changes: 2 additions & 0 deletions setup.cfg
@@ -0,0 +1,2 @@
[aliases]
test=pytest
3 changes: 3 additions & 0 deletions setup.py
Expand Up @@ -16,6 +16,7 @@ def read_requirements(extension=None):
description='Python client for discovering and capturing GBFS bikeshare feeds.',
long_description=io.open('README.md', encoding='utf-8').read(),
include_package_data=True,
package_data={'gbfs': ['gbfs/static/systems.csv']},
long_description_content_type='text/markdown',
url='https://github.com/jakehadar/gbfs-client',
keywords='gbfs bikeshare client',
Expand All @@ -27,6 +28,8 @@ def read_requirements(extension=None):
'Programming Language :: Python',
],
install_requires=read_requirements(),
setup_requires=['pytest-runner'],
tests_require=['pytest'],
extras_require={
'dev': read_requirements('dev'),
'test': read_requirements('test')
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Expand Up @@ -3,10 +3,12 @@ envlist = py27,py36
skipdist = True

[testenv]
whitelist_externals =
coverage
deps =
-rrequirements.txt
-rrequirements-test.txt
commands = pytest
commands = coverage run setup.py test

[testenv:dev]
basepython = python3.6
Expand Down

0 comments on commit 51277a1

Please sign in to comment.