Python: add support for __about__.py
#2433
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
Is your feature request related to a problem? Please describe.
I cannot make release-please bump the version string inside any other Python file than
__init__.py
, as this is today hard-coded:release-please/src/strategies/python.ts
Lines 105 to 120 in 52594b1
Some Python projects doesn't use
__init__.py
to store the version string. Some projects like to place this in a__about__.py
file or__version__.py
file instead. In short, this separates concerns so that the version string can be watched outside of any other potential code changes. In my case, I wanted release-please to bump an__about__.py
file.Describe the solution you'd like
__init__.py
like it does today for backwards compatibility reasons.version-file
manifest configuration (but this is currently not taken into consideration for release-please's Python strategy).Describe alternatives you've considered
N/A
PR proposal
This enables the use of
version-file
: #2434The text was updated successfully, but these errors were encountered: