-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
33 lines (22 loc) · 758 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
SRC_DIR = pilgram
all: test clean build;
lint:
poetry run flake8 ${SRC_DIR}
format:
poetry run black ${SRC_DIR} && poetry run isort ${SRC_DIR}
format-check:
poetry run black --check ${SRC_DIR} && poetry run isort -c ${SRC_DIR}
test: lint format-check
poetry run pytest
test-benchmark:
poetry run pytest --benchmark-only --benchmark-max-time=5 --benchmark-columns="mean,stddev,min,max"
clean:
find . -type f -name "*.pyc" -delete
rm -rf dist build *.egg-info
build:
poetry run python setup.py sdist bdist_wheel
test-upload: clean build
poetry run twine upload -s -r test dist/*
upload: clean build
poetry run twine upload -s -r pypi dist/*
.PHONY: all lint format format-check test test-benchmark benchmark clean build test-upload upload