Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
error(f"{cmd} failed")


readme_re = re.compile(r"This is Python version [23]\.\d").match
readme_re = re.compile(r"This is Python version 3\.\d").match


def chdir_to_repo_root() -> str:
Expand Down Expand Up @@ -279,12 +279,8 @@
return False
return True

if not (
test_first_line("README", readme_re)
or test_first_line("README.rst", readme_re)
):
if not test_first_line("README.rst", readme_re):

Check warning on line 282 in release.py

View check run for this annotation

Codecov / codecov/patch

release.py#L282

Added line #L282 was not covered by tests
continue

if not test_first_line("LICENSE", "A. HISTORY OF THE SOFTWARE".__eq__):
continue
if not os.path.exists("Include/Python.h"):
Expand Down