Skip to main content

Add-on for zest.releaser for releasing qgis plugins

Project description

qgispluginreleaser

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.

Credits

  • Reinout van Rees started this library.

Changelog of qgispluginreleaser

1.1 (2020-05-25)

  • Allow the metadata.txt to also be one subdirectory deeper.

1.0 (2017-06-20)

  • Use the codecs package in conjunction with “utf8” to read and write files.

0.2 (2016-02-01)

  • Qgis expects zip filenames to use a dot as name/version separator instead of a dash. We now create the zipfile with a dot instead.

0.1 (2016-01-19)

  • Initial project structure created with nensskel.

  • Changing versions in metadata.txt in the prerelease/postrelease step.

  • Creating a zipfile (with version number in the filename) automatically in the release step. Note that you must answer “yes” to the “checkout a tag?” question.

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

qgispluginreleaser-1.1.tar.gz (19.3 kB view details)

Uploaded Source

File details

Details for the file qgispluginreleaser-1.1.tar.gz.

File metadata

  • Download URL: qgispluginreleaser-1.1.tar.gz
  • Upload date:
  • Size: 19.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for qgispluginreleaser-1.1.tar.gz
Algorithm Hash digest
SHA256 36bf9592634142aff54f1c803136034a34e73ba1d06fc8f4e9a83968fccaa024
MD5 5a3172254b21700c3d9fba3fcfa7c971
BLAKE2b-256 b5065d2628ddabc23a5a5cdb27de33217376fb150d7a3a185137c95020a2249d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page