Commitizen version provider for Lua Lightroom plug-ins.
Project description
Commitizen Lightroom Plug-in Version Provider
A commitizen version provider for Lua Lightroom plug-ins, which store the version in a Lua table, stating major, minor, and revision explicitly.
Requirements
Your Lightroom plug-in contains a file Info.lua
in the format:
return {
VERSION = { major = 1, minor = 1, revision = 0, },
LrSdkVersion = 9.0,
...
}
Installation
pip install commitizen-lrplugin
Usage
Configuration
There are several ways to configure commitizen.
This example setup uses a local installation of commitizen via python and works with yaml
configuration files, but any other format as stated in the commitizen documentation works as well.
In your Lightroom plug-in source folder, create a .cz.yaml
:
---
commitizen:
name: cz_conventional_commits
tag_format: $version
update_changelog_on_bump: true
version_provider: "commitizen-lrplugin"
version_scheme: semver
Note: it's not necessary to include a version
key inside the config file. Best practice is to keep the version in a single source of truth, which is the Info.lua
.
Bumping versions
Now
cz bump
will read the current version from Info.lua
, increase it accordingly and write it back to the same file.
Contribution
Contributions, issues and feature requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
- Fork the project
- Clone the fork
- Add your changes and update tests as appropriate.
- Create a pull request
License
This project is MIT licensed.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file commitizen_lrplugin-0.1.1.tar.gz
.
File metadata
- Download URL: commitizen_lrplugin-0.1.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b441e0d38e9a9edaf006b0c2cc4096954ea18f4dd599a6dd750f90b2eacfb3e3 |
|
MD5 | 6ec48f76016e1dd58b788d428bad5d20 |
|
BLAKE2b-256 | e00056ff2bb07cdb9ba9373ec5bd0c5372f1042a2aec218ce17dfa1c9b9cdbd0 |
File details
Details for the file commitizen_lrplugin-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: commitizen_lrplugin-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.3 Darwin/23.4.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7e3ee8be2c5d2f2094a7569c20b5de70c8c1a1a6d4745def1f14a41ed24eea |
|
MD5 | 315f68769e1b4ad015e6b67b9ffc0934 |
|
BLAKE2b-256 | 5db9b254be1a9afc79aca3ebad82c9835177563b82c0724e650b2b49bf712551 |