Switched to setup.cfg for deps

pull/15/head
Jef Roosens 2021-04-25 09:48:35 +02:00
parent 8381756693
commit 16c3edfb17
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 21 additions and 17 deletions

View File

@ -7,7 +7,7 @@ PYTHON=python3.6
# =====RECIPES=====
.venv/bin/activate: setup.py
'$(PYTHON)' -m venv .venv
.venv/bin/pip install -e .[ci] -e .[lint] -e .[dev]
.venv/bin/pip install -e .[develop]
venv: .venv/bin/activate
.PHONY: venv

20
setup.cfg 100644
View File

@ -0,0 +1,20 @@
[options.extras_require]
# Used to run the tests inside the CICD pipeline
ci =
tox==3.21.1
# Used inside Tox for running tests
test =
pytest==6.2.3
pytest-cov==2.11.1
# Used inside tox for linting
lint =
black==20.8b1
flake8==3.8.4
# Required for the developer
develop =
%(ci)s
%(lint)s
jedi==0.18.0

View File

@ -7,20 +7,4 @@ setup(
description="A utility to simply backing up services.",
# TODO add license
packages=["app", "tests"],
extras_require={
"ci": [
"tox==3.21.1",
],
"test": {
"pytest==6.2.3",
"pytest-cov==2.11.1",
},
"lint": [
"black==20.8b1",
"flake8==3.8.4",
],
"dev": [
"jedi==0.18.0",
],
},
)