fix & include testing of package distribution
This commit is contained in:
parent
ce47e90535
commit
7d4c798c6a
|
@ -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
|
2
setup.py
2
setup.py
|
@ -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…
Reference in New Issue