Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moves version to PulpPluginAppConfig subclass
Starting with pulpcore==3.9, it's expected for the version of a plugin to be set as the `version` attribute on the `PulpPluginAppConfig` subclass which defines the plugin. This also updates the bumpversion config to set versions in the right places, and the release script to now parse those locations correctly. re #7943
- Loading branch information
Showing
6 changed files
with
30 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Moved the version definition to the ``version`` attribute of ``PulpPluginAppConfig``, and have | ||
``bump2version`` maintain it. Also update the ``docs/conf.py`` to be bump2version maintained. The | ||
release script now parses its versions from ``setup.py`` which is needed for the removal of | ||
``{plugin_name}.__init__.__version__``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
__version__ = "0.1.0a1.dev" | ||
|
||
default_app_config = "{{ plugin_snake }}.app.{{ plugin_camel }}PluginAppConfig" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters