-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 817 Bytes
/
Makefile
File metadata and controls
32 lines (25 loc) · 817 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
.PHONY: clean help sdist release release-test develop test
help:
@echo " clean remove unwanted files"
@echo " sdist build source distribution"
@echo " release build and upload to PyPI"
@echo " release-test build and upload to TestPyPI"
@echo " develop install package in editable mode"
@echo " test run tests with pytest"
clean:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '.DS_Store' -exec rm -f {} +
find . -name '__pycache__' -exec rm -rf {} +
find . -name '.coverage' -exec rm -rf {} +
sdist:
python -m build --sdist
release: sdist
twine upload dist/*
release-test: sdist
twine upload --repository testpypi dist/*
develop:
pip install -e .
test:
pytest