-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 801 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (25 loc) · 801 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 deploy install mount sdist test uninstall upload
# Remove unnecessary data
clean:
rm -rf build dist MetaSBT.egg-info
find metasbt -type f -iname "*.pyc" -delete
find metasbt -type d -iname "__pycache__" -delete
# Shortcut for building and uploading package
deploy: sdist upload clean
install: requirements.txt dist
pip install -r requirements.txt
find dist -type f -iname "MetaSBT-*.tar.gz" -exec pip install {} \;
# Shortcut for building and installing package
mount: sdist install clean
# Create the new distribution
sdist: pyproject.toml
python -m build --sdist
# Run all unit tests
test:
python metasbt/metasbt.py test all
# Uninstall package
uninstall:
pip uninstall metasbt
# Upload the new distribution to the Python Package Index
upload: sdist
twine upload dist/*