-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (34 loc) · 953 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
.PHONY: clean readme-toc tag
SHELL = bash
JOBS ?= 1
help:
@echo " clean"
@echo " Remove Python/build artifacts."
@echo " readme-toc"
@echo " Generate a Table Of Content for the README.md"
@echo " tag"
@echo " Create tag based on the current version and push to remote."
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -r {} +
find . -name 'README.md.*' -exec rm -f {} +
rm -rf build/
rm -rf .pytype/
rm -rf dist/
rm -rf docs/_build
# rm -rf *egg-info
# rm -rf pip-wheel-metadata
.ONESHELL:
run:
source .venv/bin/activate
python -m src.run -m medium -v INFO
readme-toc:
# https://github.com/ekalinin/github-markdown-toc
gh-md-toc --insert README.md
.ONESHELL:
tag:
source .venv/bin/activate
git tag $$( python -c "from src.version import __version__; print(__version__)" )
git push --tags