MCPcopy
hub / github.com/pytest-dev/pytest / main

Function main

scripts/generate-gh-release-notes.py:52–65  ·  view source on GitHub ↗
(argv: Sequence[str])

Source from the content-addressed store, hash-verified

50
51
52def main(argv: Sequence[str]) -> int:
53 if len(argv) != 3:
54 print("Usage: generate-gh-release-notes VERSION FILE")
55 return 2
56
57 version, filename = argv[1:3]
58 print(f"Generating GitHub release notes for version {version}")
59 rst_body = extract_changelog_entries_for(version)
60 md_body = convert_rst_to_md(rst_body)
61 Path(filename).write_text(md_body, encoding="UTF-8")
62 print()
63 print(f"Done: {filename}")
64 print()
65 return 0
66
67
68if __name__ == "__main__":

Callers 1

Calls 3

convert_rst_to_mdFunction · 0.85
write_textMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…