MCPcopy Create free account
hub / github.com/pytest-dev/pytest / pre_release

Function pre_release

scripts/release.py:87–102  ·  view source on GitHub ↗

Generates new docs, release announcements and creates a local tag.

(version, template_name, doc_version, *, skip_check_links)

Source from the content-addressed store, hash-verified

85
86
87def pre_release(version, template_name, doc_version, *, skip_check_links):
88 """Generates new docs, release announcements and creates a local tag."""
89 announce(version, template_name, doc_version)
90 regen(version)
91 changelog(version, write_out=True)
92 fix_formatting()
93 if not skip_check_links:
94 check_links()
95
96 msg = f"Prepare release version {version}"
97 check_call(["git", "commit", "-a", "-m", msg])
98
99 print()
100 print(f"{Fore.CYAN}[generate.pre_release] {Fore.GREEN}All done!")
101 print()
102 print("Please push your branch and open a PR.")
103
104
105def changelog(version, write_out=False):

Callers 1

mainFunction · 0.85

Calls 6

announceFunction · 0.85
regenFunction · 0.85
changelogFunction · 0.85
fix_formattingFunction · 0.85
check_linksFunction · 0.85
check_callFunction · 0.85

Tested by

no test coverage detected