Project

Profile

Help

Task #7943

closed

Update plugin_template to move `{plugin_name}.__init__.__version__ to PulpPluginAppConfig subclass

Added by bmbouter over 3 years ago. Updated about 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Plugin Template
Sprint:
Quarter:

Description

The changes from https://pulp.plan.io/issues/6671 need to be generalized and rolled out to all plugins. The following changes need to be made in the plugin template:

  • move the {plugin_name}.__init__.__version__ to be on subclass of PulpPluginAppConfig object that lives in {plugin_name}/app/__init__
  • update the docs/conf.py accordingly
  • update bumpversion to maintain these versions
  • update the release script to read it's version from setup.py which will reliably be there

Added by bmbouter over 3 years ago

Revision 67c18e3b | View on GitHub

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

Actions #1

Updated by bmbouter over 3 years ago

  • Status changed from ASSIGNED to MODIFIED
Actions #2

Updated by ttereshc about 3 years ago

  • Tags Plugin Template added
Actions #3

Updated by ttereshc about 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF