https://github.com/python/cpython/commit/622d97b8bbeb9ebdaa1061adf99a8b240d715e2f
commit: 622d97b8bbeb9ebdaa1061adf99a8b240d715e2f
branch: main
author: Stan Ulbrych <[email protected]>
committer: encukou <[email protected]>
date: 2025-10-30T11:50:16+01:00
summary:

gh-139198: Remove `Tools/scripts/checkpip.py` script (GH-139199)

Commit

files:
A Misc/NEWS.d/next/Tools-Demos/2025-09-21-10-30-08.gh-issue-139198.Fm7NfU.rst
D Tools/scripts/checkpip.py
M Tools/scripts/README

diff --git 
a/Misc/NEWS.d/next/Tools-Demos/2025-09-21-10-30-08.gh-issue-139198.Fm7NfU.rst 
b/Misc/NEWS.d/next/Tools-Demos/2025-09-21-10-30-08.gh-issue-139198.Fm7NfU.rst
new file mode 100644
index 00000000000000..0dc589c3986ad6
--- /dev/null
+++ 
b/Misc/NEWS.d/next/Tools-Demos/2025-09-21-10-30-08.gh-issue-139198.Fm7NfU.rst
@@ -0,0 +1 @@
+Remove ``Tools/scripts/checkpip.py`` script.
diff --git a/Tools/scripts/README b/Tools/scripts/README
index a078bfbf662a37..4e52cda38e8d88 100644
--- a/Tools/scripts/README
+++ b/Tools/scripts/README
@@ -1,8 +1,6 @@
 This directory contains a collection of executable Python scripts that are
 useful while building, extending or managing Python.
 
-checkpip.py               Checks the version of the projects bundled in 
ensurepip
-                          are the latest available
 combinerefs.py            A helper for analyzing PYTHONDUMPREFS output
 divmod_threshold.py       Determine threshold for switching from longobject.c
                           divmod to _pylong.int_divmod()
diff --git a/Tools/scripts/checkpip.py b/Tools/scripts/checkpip.py
deleted file mode 100755
index a4a9ddfa6f324a..00000000000000
--- a/Tools/scripts/checkpip.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env python3
-"""
-Checks that the version of the projects bundled in ensurepip are the latest
-versions available.
-"""
-import ensurepip
-import json
-import urllib.request
-import sys
-
-
-def main():
-    outofdate = False
-
-    for project, version in ensurepip._PROJECTS:
-        data = json.loads(urllib.request.urlopen(
-            "https://pypi.org/pypi/{}/json".format(project),
-            cadefault=True,
-        ).read().decode("utf8"))
-        upstream_version = data["info"]["version"]
-
-        if version != upstream_version:
-            outofdate = True
-            print("The latest version of {} on PyPI is {}, but ensurepip "
-                  "has {}".format(project, upstream_version, version))
-
-    if outofdate:
-        sys.exit(1)
-
-
-if __name__ == "__main__":
-    main()

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to