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

[7.0.x] releasing: Add template for major releases #9597

Merged
merged 1 commit into from Feb 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/prepare-release-pr.py
Expand Up @@ -88,7 +88,9 @@ def prepare_release_pr(

print(f"Branch {Fore.CYAN}{release_branch}{Fore.RESET} created.")

if prerelease:
if is_major:
template_name = "release.major.rst"
elif prerelease:
template_name = "release.pre.rst"
elif is_feature_release:
template_name = "release.minor.rst"
Expand Down
24 changes: 24 additions & 0 deletions scripts/release.major.rst
@@ -0,0 +1,24 @@
pytest-{version}
=======================================

The pytest team is proud to announce the {version} release!

This release contains new features, improvements, bug fixes, and breaking changes, so users
are encouraged to take a look at the CHANGELOG carefully:

https://docs.pytest.org/en/stable/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/stable/

As usual, you can upgrade from PyPI via:

pip install -U pytest

Thanks to all of the contributors to this release:

{contributors}

Happy testing,
The pytest Development Team
4 changes: 2 additions & 2 deletions scripts/release.minor.rst
Expand Up @@ -3,8 +3,8 @@ pytest-{version}

The pytest team is proud to announce the {version} release!

This release contains new features, improvements, bug fixes, and breaking changes, so users
are encouraged to take a look at the CHANGELOG carefully:
This release contains new features, improvements, and bug fixes,
the full list of changes is available in the changelog:

https://docs.pytest.org/en/stable/changelog.html

Expand Down