revert pushing of tags for bumpver in favor of release PR
Some checks failed
lint / pre-commit (push) Waiting to run
release / linux (map[runner:ubuntu-22.04 target:armv7]) (push) Failing after 3s
release / linux (map[runner:ubuntu-22.04 target:ppc64le]) (push) Failing after 3s
release / linux (map[runner:ubuntu-22.04 target:s390x]) (push) Failing after 3s
release / linux (map[runner:ubuntu-22.04 target:x86]) (push) Failing after 3s
release / linux (map[runner:ubuntu-22.04 target:x86_64]) (push) Failing after 3s
release / musllinux (map[runner:ubuntu-22.04 target:aarch64]) (push) Failing after 2s
release / musllinux (map[runner:ubuntu-22.04 target:armv7]) (push) Failing after 3s
release / musllinux (map[runner:ubuntu-22.04 target:x86]) (push) Failing after 3s
release / musllinux (map[runner:ubuntu-22.04 target:x86_64]) (push) Failing after 3s
release / linux (map[runner:ubuntu-22.04 target:aarch64]) (push) Failing after 5s
release / test (push) Has been skipped
release / windows (map[runner:windows-latest target:x64]) (push) Has been cancelled
release / windows (map[runner:windows-latest target:x86]) (push) Has been cancelled
release / macos (map[runner:macos-13 target:x86_64]) (push) Has been cancelled
release / macos (map[runner:macos-14 target:aarch64]) (push) Has been cancelled
release / sdist (push) Has been cancelled
release / release (push) Has been cancelled

This commit is contained in:
Josh Thomas 2025-04-21 20:11:16 -05:00
parent a391530e82
commit 3fb6fa995d
2 changed files with 16 additions and 13 deletions

View file

@ -260,6 +260,21 @@ def update_uvlock(session):
)
@nox.session(requires=["cog", "process_docs", "update_changelog", "update_uvlock"])
def release(session):
version = get_version(session)
session.run("git", "checkout", "-b", f"release/v{version}")
command = ["uv", "run", "bumpver", "update"]
if session.posargs:
args = []
for arg in session.posargs:
if arg:
args.extend(arg.split(" "))
command.extend(args)
session.run(*command)
session.run("gh", "pr", "create", "--fill", "--head")
def get_version(session):
command = ["uv", "run", "bumpver", "update", "--dry", "--no-fetch"]
if session.posargs:
@ -273,17 +288,5 @@ def get_version(session):
return to_pep440(match.group(1)) if match else None
@nox.session(requires=["cog", "process_docs", "update_changelog", "update_uvlock"])
def release(session):
command = ["uv", "run", "bumpver", "update"]
if session.posargs:
args = []
for arg in session.posargs:
if arg:
args.extend(arg.split(" "))
command.extend(args)
session.run(*command)
if __name__ == "__main__":
nox.main()

View file

@ -81,7 +81,7 @@ commit = true
commit_message = ":bookmark: bump version {old_version} -> {new_version}"
current_version = "5.2.0-alpha"
push = true
tag = true
tag = false
version_pattern = "MAJOR.MINOR.PATCH[-TAG[.NUM]]"
[tool.bumpver.file_patterns]