| 1 |
github_url = "https://github.com/pylint-dev/astroid" |
| 2 |
|
| 3 |
[version] |
| 4 |
current = "4.3.1" |
| 5 |
regex = ''' |
| 6 |
^(?P<major>0|[1-9]\d*) |
| 7 |
\. |
| 8 |
(?P<minor>0|[1-9]\d*) |
| 9 |
\. |
| 10 |
(?P<patch>0|[1-9]\d*) |
| 11 |
(?:-?(?P<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?P<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ |
| 12 |
''' |
| 13 |
|
| 14 |
[git] |
| 15 |
message_template = "Bump astroid to {new_version}, update changelog" |
| 16 |
tag_template = "v{new_version}" |
| 17 |
|
| 18 |
# For each file to patch, add a [[file]] config |
| 19 |
# section containing the path of the file, relative to the |
| 20 |
# tbump.toml location. |
| 21 |
[[file]] |
| 22 |
src = "astroid/__pkginfo__.py" |
| 23 |
|
| 24 |
# You can specify a list of commands to |
| 25 |
# run after the files have been patched |
| 26 |
# and before the git commit is made |
| 27 |
[[before_commit]] |
| 28 |
name = "Upgrade changelog changelog" |
| 29 |
cmd = "python3 script/bump_changelog.py {new_version}" |
| 30 |
|
| 31 |
[[before_commit]] |
| 32 |
name = "Normalize the contributors-txt configuration" |
| 33 |
cmd = "contributors-txt-normalize-configuration -a script/.contributors_aliases.json -o script/.contributors_aliases.json" |
| 34 |
|
| 35 |
[[before_commit]] |
| 36 |
name = "Upgrade the contributors list" |
| 37 |
cmd = "python3 script/create_contributor_list.py" |
| 38 |
|
| 39 |
[[before_commit]] |
| 40 |
name = "Apply pre-commit" |
| 41 |
cmd = "pre-commit run --all-files||echo 'Hack so this command does not fail'" |
| 42 |
|
| 43 |
[[before_commit]] |
| 44 |
name = "Confirm changes" |
| 45 |
cmd = "read -p 'Continue (y)? ' -n 1 -r; echo; [[ ! $REPLY =~ ^[Yy]$ ]] && exit 1 || exit 0" |
| 46 |
|
| 47 |
# Or run some commands after the git tag and the branch |
| 48 |
# have been pushed: |
| 49 |
# [[after_push]] |
| 50 |
# name = "publish" |
| 51 |
# cmd = "./publish.sh" |