Fixed post.

dev
Franco Masotti 3 years ago
parent b2f554029d
commit 8856b2f74a
Signed by: frnmst
GPG Key ID: 24116ED85666780A
  1. 21
      _posts/2018-04-16-my-python-release-workflow.md

@ -1,7 +1,7 @@
---
title: My Python release workflow
tags: [python, git, workflow]
updated: 2019-06-19 16:40
tags: [python, git, workflow, aur, arch]
updated: 2020-01-12 23:10
description: A personal reminder with the instructions for releasing new versions of Python packages
---
@ -12,7 +12,7 @@ in case of a new version release with some of my Python repositories.
## Rules
- Use [fpyutils](https://github.com/frnmst/fpyutils) or [md_toc](https://github.com/frnmst/md-toc), as example blueprints.
- Use [md_toc](https://github.com/frnmst/md-toc) as an example blueprint.
- Assume that the root of the repository is `./`.
- Variables are marked with braces and the dollar sign, e.g: `${variable}`.
- `${MAJOR}`, `${MINOR}` and `${PATCH}` refer to the varaibles reported on the [Semantic Versioning](https://semver.org/#summary) document.
@ -43,15 +43,15 @@ in case of a new version release with some of my Python repositories.
- `./setup.py`
- `./docs/conf.py`
- all downstream distribution packages (see the`./packages` directory)
2. update the `./requirements.txt` file with the appropriate packages
3. `sudo pip install -r requirements.txt`
2. update the `./Pipfile` with the appropriate packages
3. `pipenv install`
4. `make pep`
5. `make test`
6. `sudo make install`
6. `make install`
7. `cd ~ && python`
8. `import $package_name`
8. `import ${package_name}`
9. `cd ${OLDPWD}`
10. `sudo make uninstall`
10. `make uninstall`
11. `make clean`
12. update copyright years, emails and contributors in:
- `./README.rst`
@ -77,7 +77,7 @@ in case of a new version release with some of my Python repositories.
2. `git merge ${dev_branch}`
3. `git tag -a ${version_id} -m "New release."`
4. `git push`
5. `git push origin $version_id`
5. `git push origin ${version_id}`
7. upload the package to [PIP](https://pypi.org/)
1. `make dist`
@ -93,8 +93,9 @@ in case of a new version release with some of my Python repositories.
2. update the `PKGBUILD` file with `${checksum}`
3. test the modifications
1. `makepkg -rsi`
2. remove all the build files
2. remove all the build files and the installed package
1. `rm -rf pkg src *.tar.*`
2. `pacman -Rnus ${pacman_package_name}`
4. update and push
1. `makepkg --printsrcinfo > .SRCINFO`
2. `git add PKGBUILD .SRCINFO`

Loading…
Cancel
Save