-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (28 loc) · 863 Bytes
/
Makefile
File metadata and controls
35 lines (28 loc) · 863 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
.PHONY: clean build publish publish-staging
clean:
rm -rf dist
rm -rf build
rm -rf traa.egg-info
build: clean
sh build_all.sh
# Prepare .pypirc for release
prepare-release:
cp ~/.pypirc.release ~/.pypirc
@echo "Using ~/.pypirc.release for release"
# Prepare .pypirc for staging
prepare-staging:
cp ~/.pypirc.test ~/.pypirc
@echo "Using ~/.pypirc.test for staging"
# Publish to main PyPI
publish: build prepare-release
twine upload dist/*
# Publish to TestPyPI
publish-staging: build prepare-staging
twine upload --repository testpypi dist/*
help:
@echo "Available targets:"
@echo " clean - Remove all build artifacts"
@echo " build - Clean and build the package"
@echo " publish - Build and publish to PyPI"
@echo " publish-staging - Build and publish to TestPyPI"
@echo " help - Show this help message"