-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bumpversion cfg into github template
- Loading branch information
Showing
8 changed files
with
108 additions
and
37 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
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ jinja2 | |
pyyaml | ||
requests~=2.32.3 | ||
requests_cache | ||
tomlkit |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[bumpversion] | ||
current_version = {{ current_version }} | ||
commit = False | ||
tag = False | ||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))? | ||
serialize = | ||
{major}.{minor}.{patch}.{release} | ||
{major}.{minor}.{patch} | ||
|
||
[bumpversion:part:release] | ||
optional_value = prod | ||
first_value = dev | ||
values = | ||
dev | ||
prod | ||
{%- for plugin in plugins %} | ||
|
||
[bumpversion:file:./{{ plugin.name | snake }}/app/{% if plugin.name == "pulpcore" %}apps{% else %}__init__{% endif %}.py] | ||
{%- endfor %} | ||
{%- if setup_py %} | ||
|
||
[bumpversion:file:./setup.py] | ||
{%- else %} | ||
|
||
[bumpversion:file:./pyproject.toml] | ||
search = version = "{current_version}" | ||
replace = version = "{new_version}" | ||
{%- endif %} |
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,38 @@ | ||
{%- if not setup_py %} | ||
[tool.bumpversion] | ||
# This section is managed by the plugin template. Do not edit manually. | ||
|
||
current_version = "{{ current_version }}" | ||
commit = false | ||
tag = false | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(\\.(?P<release>[a-z]+))?" | ||
serialize = [ | ||
"{major}.{minor}.{patch}.{release}", | ||
"{major}.{minor}.{patch}", | ||
] | ||
|
||
[tool.bumpversion.parts.release] | ||
# This section is managed by the plugin template. Do not edit manually. | ||
|
||
optional_value = "prod" | ||
values = [ | ||
"dev", | ||
"prod", | ||
] | ||
{%- for plugin in plugins %} | ||
|
||
[[tool.bumpversion.files]] | ||
# This section is managed by the plugin template. Do not edit manually. | ||
|
||
filename = "./{{ plugin.name }}/app/__init__.py" | ||
search = "version = \"{current_version}\"" | ||
replace = "version = \"{new_version}\"" | ||
{%- endfor %} | ||
|
||
[[tool.bumpversion.files]] | ||
# This section is managed by the plugin template. Do not edit manually. | ||
|
||
filename = "./pyproject.toml" | ||
search = "version = \"{current_version}\"" | ||
replace = "version = \"{new_version}\"" | ||
{%- endif %} |
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