-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
50 lines (39 loc) · 969 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
help:
@echo " env install all dependencies"
@echo " dev install all development dependencies"
@echo " clean remove unwanted stuff"
@echo " lint lint with flake8"
@echo " test run tests"
@echo " coverage run codecov"
clean:
rm -rf build
rm -rf dist
rm -f violations.flake8.txt
pipenv clean
dev:
pipenv install --dev
env: clean
pipenv install
info: env
@pipenv run python --version
@pipenv check
@pipenv graph
lint: dev
pipenv run flake8 --tee --output-file=violations.flake8.txt
test: lint
pipenv install "-e ."
pipenv run pytest
coverage: clean
pipenv install "-e ."
pipenv run coverage run -m pytest
pipenv run coverage report
pipenv run coverage html
pipenv run codecov
check: env
pipenv run check-manifest -v
dist: check
pipenv run python -m build
upload: dist
pipenv run python -m twine upload --repository testpypi dist/*
upload-prod: dist
pipenv run python -m twine upload dist/*