88# Beta releases:
99# 1. tox
1010# 2. make repository-test-all # (To be deprecated)
11- # 2. For non-doc/formatting changes, update version in CHANGES.txt.
11+ # 2. For non-doc/formatting changes, update bX in version in CHANGES.txt.
1212# 3. run `make version-update` if version changed in CHANGES.txt.
1313# 4. Commit and push
1414#
15- # Making a local package:
16- # 1. Update CHANGES.txt to have a new version line
17- # 2. make package
18- # 3. make package-test-all
19- #
20- # Upload package to pypi.org
15+ # Tag the repo, create a GitHub release, and upload package to pypi.org
2116# 0. Remove the "b" in the version in CHANGES.txt
2217# 1. make release
23- # 2. Manually create a release at https://github.com/hapi-server/client-python/releases
24- # (could do this automatically using https://stackoverflow.com/questions/21214562/how-to-release-versions-on-github-through-the-command-line)
25- # To test and then add to make release target:
26- # gh release create v0.3.0 --target master --notes "Release 0.3.0" --title "Release 0.3.0"
27- # 3. Wait ~5 minutes and execute make release-test-all
18+ # 2. Wait ~5 minutes and execute make pypi-release-test-all
2819# (Will fail until new version is available at pypi.org for pip install.
2920# Sometimes takes ~5 minutes even though web page is immediately
3021# updated.)
31- # 4 . After package is finalized, create new version number in CHANGES.txt ending
32- # with "b0" in setup.py and then run
22+ # 3 . After package is finalized, create new version number in CHANGES.txt ending
23+ # with b0 and then:
3324# make version-update
3425# git commit -a -m "Update version for next release"
3526# This will update the version information in the repository to indicate it
3627# is now in a pre-release state.
37- # Notes:
38- # * make repository-test tests with Anaconda virtual environment
39- # make package-test and release-test tests with native Python virtual
40- # environment.
28+ #
29+ # Making and testing a local package:
30+ # 1. Update CHANGES.txt to have a new version line
31+ # 2. make package
32+ # 3. make package-test-all
4133
4234URL =https://upload.pypi.org/
4335REP =pypi
@@ -51,7 +43,7 @@ PYTHONVERS=python3.14 python3.13 python3.12 python3.11 python3.10 python3.9 pyth
5143
5244# VERSION is updated in "make version-update" step and derived
5345# from CHANGES.txt. Do not edit.
54- VERSION =0.3.0
46+ VERSION =0.3.1b0
5547SHELL: = /bin/bash
5648
5749LONG_TESTS =false
@@ -216,20 +208,24 @@ package-venv-test:
216208release :
217209 make package
218210 make version-tag
219- make release-upload
211+ make gh-release
212+ make pypi-release
213+
214+ gh-release :
215+ gh release create $(VERSION ) --target master --notes " Release $( VERSION) " --title " Release $( VERSION) "
220216
221- release-upload :
217+ pypi-release :
222218 pip install twine
223219 twine upload \
224220 -r $(REP ) dist/hapiclient-$(VERSION ) .tar.gz -u __token__ \
225221 && echo Uploaded to $(subst upload.,,$(URL ) ) /project/hapiclient/
226222
227- release-test-all :
223+ pypi- release-test-all :
228224 @ for version in $( PYTHONVERS) ; do \
229- make release-test PYTHON=$$ version ; \
225+ make pypi- release-test PYTHON=$$ version ; \
230226 done
231227
232- release-test :
228+ pypi- release-test :
233229 make env-$(PYTHON )
234230 make release-venv-test PYTHON=$(PYTHON )
235231
0 commit comments