two different release packages:
- QGIS NDOP Downloader - OpenGeoLabs QGIS plugins repo
- ndop
__init__.py
,bin/ndop
- PyPi
Release process without bugfix backporting? (till some stable version)
-
bugfix (x.x.+1)
- only QGIS bug - release only QGIS NDOP Downloader
- only ndop bug - release only ndop
- if ndop bug affects QGIS - release both
-
new functions (x.+1.x)
- QGIS implementation of ndop function - release only QGIS NDOP Downloader
- ndop new function - release only ndop
- release if releasing bugfixes but also new functionality commited before
-
main release (+1.x.x)
- release both (same number)
- 0 - beta; 1< - stable
- 1 - database in current state; 2 - refactoring when AOPK change database dramatically (migrate, API, etc.)
- fix
metadata.txt
- new version, changelog etc. - make zip
pb_tool zip
-
update git (
git push
) -
create tag on git add zip from
pb_tool
-
update repo
.xml
- new version etc. (port frommetadata.txt
) -
upload
.zip
to ogl repo
Visit https://packaging.python.org/tutorials/packaging-projects/ for further details
pip install
- setuptools
- wheel
- twine
- Fix
requirements.txt
file - Update
README.rst
file (changelog) - Check, if something is needed to be adjusted in
MANIFEST.in
- Check
setup.py
, fix the version and possibly packages
Create the package
python3 setup.py sdist bdist_wheel
Make sure, everything is in place
ls dist
Do not forget to have account ready for the PyPi.org site
python3 -m twine upload dist/*
Check https://pypi.org/project/ndop-downloader make sure, available version corresponds with your last change.
Try pip install
the package and make sure, correct version is being installed