-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will help with the transition to bump-my-version and the new staging docs. [noissue]
- Loading branch information
Showing
19 changed files
with
129 additions
and
5 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
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
1 change: 1 addition & 0 deletions
1
... cookiecutter.__app_label_suffix }}/pulp_glue/{{ cookiecutter.main_package }}/__init__.py
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 @@ | ||
__version__ = "{{ cookiecutter.current_version }}" |
75 changes: 75 additions & 0 deletions
75
cookiecutter/ci/{{ cookiecutter.__project_slug }}/pyproject.toml.update
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,75 @@ | ||
{# | ||
This file is not templated for itself, but it is used to update sections in pyproject.toml. | ||
#} | ||
|
||
[tool.pulp_cli_template] | ||
# This section is co-managed by the cookiecutter templates. | ||
# Changes to existing keys should be preserved. | ||
app_label = {{ cookiecutter.app_label | to_toml_value }} | ||
glue = {{ cookiecutter.glue | to_toml_value }} | ||
docs = {{ cookiecutter.docs | to_toml_value }} | ||
translations = {{ cookiecutter.translations | to_toml_value }} | ||
main_package = {{ cookiecutter.main_package | to_toml_value }} | ||
|
||
[tool.bumpversion] | ||
# This section is managed by the cookiecutter templates. | ||
current_version = "{{ cookiecutter.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] | ||
optional_value = "prod" | ||
values = [ | ||
"dev", | ||
"prod", | ||
] | ||
{%- if cookiecutter.app_label == "" %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pulp_cli/__init__.py" | ||
search = "__version__ = \"{current_version}\"" | ||
replace = "__version__ = \"{new_version}\"" | ||
{%- endif %} | ||
{%- if cookiecutter.glue %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pulp-glue{{ cookiecutter.__app_label_suffix }}/pulp_glue/{{ cookiecutter.main_package }}/__init__.py" | ||
search = "__version__ = \"{current_version}\"" | ||
replace = "__version__ = \"{new_version}\"" | ||
{%- endif %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pulpcore/cli/{{ cookiecutter.main_package }}/__init__.py" | ||
search = "__version__ = \"{current_version}\"" | ||
replace = "__version__ = \"{new_version}\"" | ||
{%- if cookiecutter.glue %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pulp-glue{{ cookiecutter.__app_label_suffix }}/pyproject.toml" | ||
search = "version = \"{current_version}\"" | ||
replace = "version = \"{new_version}\"" | ||
{%- endif %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pyproject.toml" | ||
search = "version = \"{current_version}\"" | ||
replace = "version = \"{new_version}\"" | ||
{%- if cookiecutter.glue %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./pyproject.toml" | ||
search = "\"pulp-glue{{ cookiecutter.__app_label_suffix }}=={current_version}\"" | ||
replace = "\"pulp-glue{{ cookiecutter.__app_label_suffix }}=={new_version}\"" | ||
{%- endif %} | ||
{%- if cookiecutter.docs %} | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "./mkdocs.yml" | ||
search = "version: \"{current_version}\"" | ||
replace = "version: \"{new_version}\"" | ||
{%- endif %} |
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
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