Skip to content

Commit

Permalink
build: separate development dependencies (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed May 2, 2021
1 parent cf8a314 commit 39c9e71
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ services:
if: (type == push) OR (type == pull_request AND fork == true)

script:
# install dependencies; not using `install` directive as this
# would apply to the job matrix, too, which is not desired
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
# run tests
- flake8
- coverage run --source foca -m pytest
- coveralls
Expand Down Expand Up @@ -59,5 +64,4 @@ jobs:
after_success:
- git config --global user.name "semantic-release (via TravisCI)"
- git config --global user.email "semantic-release@travis"
- pip install python-semantic-release==7.15.0
- semantic-release publish -v DEBUG
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ Check the [API docs][badge-url-docs] for further details.
## Usage

(1) Install the [FOCA package][badge-url-pypi] with `pip`:
```bash
pip install foca
```

```bash
pip install foca
```

(2) Create a [configuration file](#configuration-file).

(3) Import the FOCA main function `foca()` and pass your config:
Expand Down Expand Up @@ -199,4 +199,4 @@ question etc.
[res-rabbitmq]: <https://www.rabbitmq.com/>
[res-semver]: <https://semver.org/>
[res-using-foca]: <https://github.com/elixir-cloud-aai/foca/network/dependents>
[res-yaml]: <https://yaml.org/>
[res-yaml]: <https://yaml.org/>
6 changes: 0 additions & 6 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
addict==2.2.1
celery==4.1.1
connexion==2.7.0
coverage==5.1
coveralls==2.0.0
flake8==3.7.9
Flask==1.1.2
Flask-Cors==3.0.8
Flask-PyMongo==2.3.0
mongomock==3.19.0
pydantic==1.5.1
PyJWT==1.7.1
pylint==2.5.3
pymongo==3.10.1
pytest==5.4.3
PyYAML==5.4
requests==2.23.0
swagger-ui-bundle==0.0.6
toml==0.10.0
twine==3.1.1
typing==3.7.4.1
Werkzeug==1.0.1
7 changes: 7 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
coverage==5.1
coveralls==2.0.0
flake8==3.7.9
mongomock==3.19.0
pylint==2.5.3
pytest==5.4.3
python-semantic-release==7.15.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
install_requires=install_requires,
include_package_data=True,
setup_requires=[
"setuptools_git == 1.2",
"setuptools_git==1.2",
"twine==3.1.1"
],
)

0 comments on commit 39c9e71

Please sign in to comment.