fix & include testing of package distribution

This commit is contained in:
Maciej Urbanski 2018-06-29 20:38:40 +02:00
parent ce47e90535
commit 7d4c798c6a
No known key found for this signature in database
GPG Key ID: 9A1A800C0AD21A36
4 changed files with 7 additions and 3 deletions

2
.gitignore vendored
View File

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

View File

@ -10,9 +10,10 @@ matrix:
cache: pip
before_install:
- pip install -r test_requirements.txt
- rm -rf dist && python setup.py sdist # prep package distribution
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:
- pytest
after_success:

1
MANIFEST.in Normal file
View File

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

View File

@ -32,7 +32,7 @@ setup(
url = 'https://github.com/emesik/monero-python/',
long_description = open('README.rst', 'rb').read().decode('utf-8'),
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=[
'pytest-runner',
],