-
Notifications
You must be signed in to change notification settings - Fork 4
/
build_dist.commands
36 lines (28 loc) · 956 Bytes
/
build_dist.commands
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
# git checkout main
# git merge develop
# Fix any conflicts, add, commit, push to origin
# Edit setup.py to change version number and maybe dependencies.
# MAYBE README and pypi_README, too, if dependencies changed.
# git add setup.py README etc
# git commit
# git push origin
# Clean up previous stuff:
rm -r __pycache__
rm -r musicdiff/__pycache__
rm -r tests/__pycache__
rm -r musicdiff.egg-info
rm -r dist build
# Build dist and wheel:
python3 -m build
# Check for malformed README URLs:
python3 -m twine check dist/*
# Test-publish to testpypi (__token__/password for pypi):
python3 -m twine upload --repository testpypi dist/*
# If all looks good, then publish on pypi proper (no password needed):
python3 -m twine upload dist/*
# Go to github and make a release there as well (tag=vN.n.n)
# Make develop "catch up with" main, so we can easily merge again later
# git checkout develop
# git merge --squash main
# git commit
# git push origin