Add-on for zest.releaser for releasing qgis plugins
Project description
Add-on for zest.releaser for releasing QGIS plugins.
Zest.releaser can be extended, see its entrypoints documentation.
What we do:
We hook into the “release” step and create a zipfile with a version number and copy it to the current directory. You can scp it to a server afterwards.
In the “prerelease” and “postrelease” steps we change the version number in the (mandatory) QGIS metadata.txt file.
Note: a QGIS plugin doesn’t have a setup.py, so you’ll need to add a version.txt or version.rst or VERSION file so that zest.releaser recognizes the current directory as a releasable project and so that it can find the version number somewhere. Simply put the version number (“1.2”) by itself on the first line. A newline at the end is fine.
Installation
You’ll have to install it globally (or in a custom virtualenv) as qgis plugins normally don’t have a full python setup.
The plugin checks whether there’s a metadata.txt (lowercase) with a qgisMinimumVersion string inside it. If found, the plugin runs. Otherwise it stays out of the way. So it should be safe to install globally.
Development of the plugin
Use uv for installing the project in development. Some commands:
$ uv run pytest $ pre-commit run --all
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qgispluginreleaser-2.0.2.tar.gz.
File metadata
- Download URL: qgispluginreleaser-2.0.2.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f165b432751ff0ee866fff297c9b77b5214a2c86cb40f6041dec60fa2b36c12
|
|
| MD5 |
ee24dc8b4f14215b09d2115ab11b7679
|
|
| BLAKE2b-256 |
d89a62387cac0eecc5c8d8087a28299cc7e199f132250d5920a23165a31164a9
|
File details
Details for the file qgispluginreleaser-2.0.2-py3-none-any.whl.
File metadata
- Download URL: qgispluginreleaser-2.0.2-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9c3af13c6596fda7eaf5a661439c3670e7c1b487bc5b061148787252e3634fbc
|
|
| MD5 |
ad087692fa548c6ed9f23649cd2217f7
|
|
| BLAKE2b-256 |
195041f558a84af7d97a003af0f5ba47419cdac37a5441f71ca80a1b2fc68654
|