Browse Source

Post fixes.

dev
Franco Masotti 2 years ago
parent
commit
1c2b777a47
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 22
      _posts/2018-04-16-my-python-release-workflow.md

22
_posts/2018-04-16-my-python-release-workflow.md

@ -35,6 +35,7 @@ in case of a new version release with some of my Python repositories.
3. `asciinema rec --command=./${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}_demo.sh ${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}.json`
4. `asciinema play ${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}.json`
5. `asciinema upload ${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}.json`
6. edit the `./README.rst` file with the new asciinema link
3. OTHERWISE, if there have been no significant changes from the previous version
1. `ln -s ${project_name}_asciinema_${MAJOR}_${OLD_MINOR}_${OLD_PATCH}_demo.sh ${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}_demo.sh`
2. `ln -s ${project_name}_asciinema_${MAJOR}_${OLD_MINOR}_${OLD_PATCH}.json ${project_name}_asciinema_${MAJOR}_${MINOR}_${PATCH}.json`
@ -52,24 +53,23 @@ in case of a new version release with some of my Python repositories.
4. `make pep`
5. `make test`
6. `make install`
7. `cd ~ && python`
8. `import ${package_name}`
9. `cd ${OLDPWD}`
10. `make uninstall`
11. `make clean`
12. update copyright years, emails and contributors in:
7. `cd ~ && python -c 'import ${package_name}'`
8. `cd ${OLDPWD}`
9. `make uninstall`
10. `make clean`
11. update copyright years, emails and contributors in:
- `./README.rst`
- `./docs/conf.py`
- `./docs/copyright_license.rst`
- all Python source files
- all downstream distribution packages (see the `./packages` directory)
13. `git add -A`
14. `git commit -am "Preparing for new release."`
15. `git push`
12. `git add -A`
13. `git commit -am "Preparing for new release."`
14. `git push`
5. update the documentation
1. `make doc`
2. `cp -aR docs/_build/html ~`
2. `rm -rf ~/html && cp -aR docs/_build/html ~`
3. `git checkout gh-pages`
4. `rm -rf _sources _static`
5. `mv ~/html/{*,.nojekyll,.buildinfo} .`
@ -96,7 +96,7 @@ in case of a new version release with some of my Python repositories.
2. update the sha256 checksum
1. `checksum="$(wget -O - ${project_url_archive_file_last_version} | sha256sum)"`
2. update the `PKGBUILD` file with `${checksum}`
3. test the modifications
3. test the changes
1. `makepkg -rsi`
2. remove all the build files and the installed package
1. `rm -rf pkg src *.tar.*`

Loading…
Cancel
Save