-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (32 loc) · 977 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (32 loc) · 977 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
40
.PHONY: build check bump-patch bump-minor bump-major bump-test-patch bump-test-minor bump-test-major
build:
python -m pip install -U build
python -m build
check:
python -m pip install -U twine
python -m twine check dist/*
bump-patch:
python -m pip install -U bump2version
bump2version patch
git push --follow-tags
bump-minor:
python -m pip install -U bump2version
bump2version minor
git push --follow-tags
bump-major:
python -m pip install -U bump2version
bump2version major
git push --follow-tags
# For TestPyPI: same version bump, but tag prefix is test-vX.Y.Z
bump-test-patch:
python -m pip install -U bump2version
bump2version --tag-name test-v{new_version} patch
git push --follow-tags
bump-test-minor:
python -m pip install -U bump2version
bump2version --tag-name test-v{new_version} minor
git push --follow-tags
bump-test-major:
python -m pip install -U bump2version
bump2version --tag-name test-v{new_version} major
git push --follow-tags