-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (28 loc) · 675 Bytes
/
Makefile
File metadata and controls
39 lines (28 loc) · 675 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
ifndef version
version = patch
endif
.PHONY: default format white black lint test check clean pypireg pypi release
default: check
format: white
ruff check --select I --fix bin/pydaikin pydaikin/*.py
white: black
black:
ruff format
lint: requirements.txt setup.py
ruff check
check: format lint
clean:
rm -f *.pyc
rm -rf .tox
rm -rf *.egg-info
rm -rf __pycache__
rm -f pip-selfcheck.json
rm -rf pytype_output
pypireg:
python setup.py register -r pypi
pypi:
rm -f dist/*.tar.gz
python3 setup.py sdist
twine upload dist/*.tar.gz
release:
git diff-index --quiet HEAD -- && make check && bumpversion $(version) && git push --tags && git push && make pypi