Skip to content

Commit

Permalink
README is renamed README.rst since Python 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Nov 25, 2024
1 parent 24c1a0d commit 83194d9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions release.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def run_cmd(
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 @@ def test_first_line(
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):
continue

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

0 comments on commit 83194d9

Please sign in to comment.