fix & include testing of package distribution

pull/28/head
Maciej Urbanski 6 years ago
parent ce47e90535
commit 7d4c798c6a
No known key found for this signature in database
GPG Key ID: 9A1A800C0AD21A36

2
.gitignore vendored

@ -1,5 +1,7 @@
.* .*
!.editorconfig
!.gitignore !.gitignore
!.travis.yml
*.py[co] *.py[co]
*~ *~
*.bak *.bak

@ -10,9 +10,10 @@ matrix:
cache: pip cache: pip
before_install: before_install:
- pip install -r test_requirements.txt - rm -rf dist && python setup.py sdist # prep package distribution
install: install:
- pip install -e . # install dependencies as specified in setup.py - pip install dist/*.tar.gz # install dependencies as specified in setup.py
- pip install -r test_requirements.txt
script: script:
- pytest - pytest
after_success: after_success:

@ -0,0 +1 @@
include *requirements.txt

@ -32,7 +32,7 @@ setup(
url = 'https://github.com/emesik/monero-python/', url = 'https://github.com/emesik/monero-python/',
long_description = open('README.rst', 'rb').read().decode('utf-8'), long_description = open('README.rst', 'rb').read().decode('utf-8'),
install_requires = open('requirements.txt', 'r').read().splitlines(), install_requires = open('requirements.txt', 'r').read().splitlines(),
tests_requires=open('test_requirements.txt', 'r').read().splitlines(), tests_require=open('test_requirements.txt', 'r').read().splitlines(),
setup_requires=[ setup_requires=[
'pytest-runner', 'pytest-runner',
], ],

Loading…
Cancel
Save