-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·39 lines (30 loc) · 881 Bytes
/
Makefile
File metadata and controls
executable file
·39 lines (30 loc) · 881 Bytes
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
all: build upload
build:
pip install build twine
python -m build
twine check dist/*
upload-prod: build
export TWINE_USERNAME=__token__
python -m twine upload dist/*
upload-test: build
export TWINE_USERNAME=__token__
python -m twine --repository testpypi upload dist/*
clean:
rm -rf build/ dist/ *.egg-info/ __pycache__/ .pytest_cache/ .mypy_cache/
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
test:
flake8 ioc/ tests/
python -m unittest discover -s tests -p "test_*.py"
sphinx-build -nW -b html -d docs/_build/doctrees docs docs/_build/html
test-strict:
flake8 ioc/ tests/
mypy ioc/
python -m unittest discover -s tests -p "test_*.py"
sphinx-build -nW -b html -d docs/_build/doctrees docs docs/_build/html
lint:
flake8 ioc/ tests/
typecheck:
mypy ioc/
unittest:
python -m unittest discover -s tests -p "test_*.py" -v