Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

Commit

Permalink
[IS-1096] compatible dependency version
Browse files Browse the repository at this point in the history
 - additional, move test dependency to `extras_require`
 - update travis to install tests libs
  • Loading branch information
yakkle committed May 29, 2020
1 parent 3534829 commit ba958d8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Expand Up @@ -7,16 +7,15 @@ branches:
- master
- develop
- /^release[/-].*$/
- /^feature\/.*$/
- travis-test

install:
- virtualenv venv
- source venv/bin/activate
- pip install -r requirements.txt
- pip install -e .[tests]

script:
- python -m pytest -rsxX
- python -m pytest -ra

deploy:
provider: pypi
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Expand Up @@ -4,9 +4,9 @@ help:
@awk '/^##/{c=substr($$0,3);next}c&&/^[[:alpha:]][-_[:alnum:]]+:/{print substr($$1,1,index($$1,":")),c}1{c=0}'\
$(MAKEFILE_LIST) | column -s: -t

## Run unittest
## Run pytest
test:
@python3 -m unittest discover -v tests/ || exit -1
@python3 -m pytest -ra tests/ || exit -1

## Clean all - clean-build
clean: clean-build
Expand Down
19 changes: 8 additions & 11 deletions requirements.txt
@@ -1,11 +1,8 @@
jsonschema==3.2.0
jsonrpcserver==4.1.2
jsonrpcclient[aiohttp]==3.3.5
sanic==19.12.2
gunicorn>=20.0,<=20.0.4
sanic-cors==0.10.0
earlgrey>=0.0.4
iconcommons>=1.0.5
pytest
pytest-asyncio
mock>=4.0.1
jsonschema~=3.2.0
jsonrpcserver~=4.1.2
jsonrpcclient[aiohttp]~=3.3.5
sanic~=19.12.2
gunicorn~=20.0.0
sanic-cors~=0.10.0
earlgrey~=0.0.4
iconcommons~=1.1.3
4 changes: 4 additions & 0 deletions setup.py
Expand Up @@ -16,6 +16,9 @@
req = line.strip()
install_requires.append(req)

extras_requires = {
'tests': ['pytest~=5.4.2', 'pytest-asyncio~=0.12.0', 'mock~=4.0.1']
}

setup_options = {
'name': 'iconrpcserver',
Expand All @@ -32,6 +35,7 @@
'py_modules': ['iconrpcserver', ''],
'license': "Apache License 2.0",
'install_requires': install_requires,
'extras_require': extras_requires,
'test_suite': 'tests',
'entry_points': {
'console_scripts': [
Expand Down

0 comments on commit ba958d8

Please sign in to comment.