Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable development & releasing tools from darkgray-dev-tools #23

Merged
merged 8 commits into from
Apr 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add bump version patterns
akaihola committed Apr 19, 2024
commit 83dbd1a01618202c1c54b2b508f2e1d46e828334
38 changes: 38 additions & 0 deletions release_tools/bump-version-patterns.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---

# Below are the regular expression patterns for finding and replacing version and
# milestone numbers in files. Keys are file paths relative to the repository root.
# Values are sets of regular expression pattern strings which contain a magic
# `{OLD->NEW}` expression. For matching text, that expression will be turned into a
# regular expression string which matches the expected version or milestone string in
# the current content of a file. For replacing those matches with updated information,
# `NEW` specifies which kind of a version or milestone number should be used as the
# replacement.
#
# For example, if the current version ("old_version") was `1.0.1` and bumping the minor
# version was requested, the entry
#
# "README.rst":
# - |-
# next version: {old_version->new_version}
#
# would use this regular expression:
#
# `r"next version: (1\.0\.1)"`
#
# in `README.rst` and replace the text matched by the capture group with "1.1".


"README.rst":
- |-
^ :target: https://github\.com/akaihola/pgtricks/milestone/{any_milestone->next_milestone}
- |-
^\.\. \|next-milestone\| image:: https://img\.shields\.io/github/milestones/progress/akaihola/pgtricks/{any_milestone->next_milestone}
- |-
label=release%20{any_version->next_version}
"pgtricks/version.py":
- |-
^__version__ *= *\"{old_version->new_version}\"