Skip to content

Commit 88ef3a5

Browse files
authored
Remove redundant check_pyspecific task (#407)
1 parent 2a6a033 commit 88ef3a5

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

run_release.py

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -538,25 +538,6 @@ def run_autoconf(db: ReleaseShelf) -> None:
538538
)
539539

540540

541-
def check_pyspecific(db: ReleaseShelf) -> None:
542-
with open(
543-
db["git_repo"] / "Doc" / "tools" / "extensions" / "pyspecific.py"
544-
) as pyspecific:
545-
for line in pyspecific:
546-
if "SOURCE_URI =" in line:
547-
break
548-
expected_branch = db["release"].branch
549-
expected = (
550-
f"SOURCE_URI = 'https://github.com/python/cpython/tree/{expected_branch}/%s'"
551-
)
552-
if expected != line.strip():
553-
raise ReleaseException(
554-
f"SOURCE_URI is incorrect (it needs changing before beta 1):\n"
555-
f"expected: {expected}\n"
556-
f"got : {line.strip()}"
557-
)
558-
559-
560541
def bump_version(db: ReleaseShelf) -> None:
561542
with cd(db["git_repo"]):
562543
release_mod.bump(db["release"])
@@ -1456,8 +1437,6 @@ def _api_key(api_key: str) -> str:
14561437
Task(check_cpython_repo_is_clean, "Checking CPython repository is clean"),
14571438
Task(run_autoconf, "Running autoconf"),
14581439
Task(check_cpython_repo_is_clean, "Checking CPython repository is clean"),
1459-
Task(check_pyspecific, "Checking pyspecific"),
1460-
Task(check_cpython_repo_is_clean, "Checking CPython repository is clean"),
14611440
Task(create_tag, "Create tag"),
14621441
Task(push_to_local_fork, "Push new tags and branches to private fork"),
14631442
Task(start_build_release, "Start the build-release workflow"),

0 commit comments

Comments
 (0)