This commit is contained in:
parent
3e7a2edf13
commit
7fbec4992e
3 changed files with 7 additions and 6 deletions
|
|
@ -35,5 +35,6 @@ pipeline:
|
|||
lint:
|
||||
image: python:3.6-alpine
|
||||
commands:
|
||||
- apk update && apk add --no-cache build-base
|
||||
- pip install -e .[ci]
|
||||
- tox -e lint
|
||||
|
|
|
|||
4
Makefile
4
Makefile
|
|
@ -1,13 +1,13 @@
|
|||
# =====CONFIG=====
|
||||
# Devop environment runs in 3.8
|
||||
# TODO switch this to python3.6
|
||||
PYTHON=python3.9
|
||||
PYTHON=python3.6
|
||||
|
||||
|
||||
# =====RECIPES=====
|
||||
.venv/bin/activate: setup.py
|
||||
'$(PYTHON)' -m venv .venv
|
||||
.venv/bin/pip install -e .[dev]
|
||||
.venv/bin/pip install -e .[dev] -e .[ci]
|
||||
|
||||
venv: .venv/bin/activate
|
||||
.PHONY: venv
|
||||
|
|
|
|||
8
setup.py
8
setup.py
|
|
@ -8,14 +8,14 @@ setup(
|
|||
# TODO add license
|
||||
packages=["app", "tests"],
|
||||
extras_require={
|
||||
# A developer needs both
|
||||
"ci": [
|
||||
"tox==3.21.1",
|
||||
],
|
||||
"dev": [
|
||||
"jedi==0.18.0",
|
||||
"black==20.8b1",
|
||||
"flake8==3.8.4",
|
||||
"tox==3.21.1",
|
||||
],
|
||||
"ci": [
|
||||
"tox==3.21.1",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
|
|
|||
Reference in a new issue