Removed dep list from tox.ini
continuous-integration/drone the build failed Details

pull/15/head
Jef Roosens 2021-04-24 23:09:13 +02:00
parent 7fbec4992e
commit 2573e67272
Signed by: Jef Roosens
GPG Key ID: 955C0660072F691F
3 changed files with 10 additions and 7 deletions

View File

@ -7,7 +7,7 @@ PYTHON=python3.6
# =====RECIPES===== # =====RECIPES=====
.venv/bin/activate: setup.py .venv/bin/activate: setup.py
'$(PYTHON)' -m venv .venv '$(PYTHON)' -m venv .venv
.venv/bin/pip install -e .[dev] -e .[ci] .venv/bin/pip install -e .[ci] -e .[lint] -e .[dev]
venv: .venv/bin/activate venv: .venv/bin/activate
.PHONY: venv .PHONY: venv
@ -36,8 +36,10 @@ install: app
cp backup_tool /usr/local/bin cp backup_tool /usr/local/bin
.PHONY: install .PHONY: install
# We can't force the develop to have all the versions locally, so
# the local tests only include python3.6
test: venv tox.ini test: venv tox.ini
@ .venv/bin/tox @ .venv/bin/tox -e py36
.PHONY: test .PHONY: test
lint: venv lint: venv

View File

@ -8,14 +8,15 @@ setup(
# TODO add license # TODO add license
packages=["app", "tests"], packages=["app", "tests"],
extras_require={ extras_require={
# A developer needs both
"ci": [ "ci": [
"tox==3.21.1", "tox==3.21.1",
], ],
"dev": [ "lint": [
"jedi==0.18.0",
"black==20.8b1", "black==20.8b1",
"flake8==3.8.4", "flake8==3.8.4",
], ],
"dev": [
"jedi==0.18.0",
],
}, },
) )

View File

@ -8,7 +8,7 @@ commands =
[testenv:lint] [testenv:lint]
basepython = python3.6 basepython = python3.6
deps = black==20.8b1 deps = .[lint]
flake8==3.8.4
commands = black --check setup.py app commands = black --check setup.py app
flake8 setup.py app flake8 setup.py app