-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
49 lines (33 loc) · 1 KB
/
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
.PHONY: build upload test version
.DEFAULT_GOAL := build
clean: .clean-build .clean-pyc
build: clean ## builds source and wheel package
@python -m build
@twine check dist/*
upload: ## run tests quickly with the default Python
@twine upload -r stream --verbose dist/*
test:
@tox -p
version:
bump-my-version bump --allow-dirty --verbose minor --commit --tag
version-patch:
bump-my-version bump --allow-dirty --verbose patch --commit --tag
.clean-build: ## remove build artifacts
rm -rf build/
rm -rf dist/
rm -rf eggs/
rm -rf .tox/
rm -rf .pytest/
@echo Removing .egg
@find . -name '*.egg' -exec rm -f {} +
@echo Removing .egg-info
@find . -name '*.egg-info' -exec rm -fr {} +
.clean-pyc: ## remove Python file artifacts
@echo Removing .pyc file
@find . -name '*.pyc' -exec rm -f {} +
@echo Removing .pyo file
@find . -name '*.pyo' -exec rm -f {} +
@echo Removing \~ file
@find . -name '*~' -exec rm -f {} +
@echo Removing __pycache__ folder
@find . -name '__pycache__' -exec rm -fr {} +