-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove support for Python 3.8 #13190
Open
ichard26
wants to merge
5
commits into
pypa:main
Choose a base branch
from
ichard26:drop-python38-take-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
haha, of course Ruff is still complaining. I'll fix that later today. |
A couple of other checks you could remove: diff --git a/src/pip/_internal/locations/__init__.py b/src/pip/_internal/locations/__init__.py
index 0969502d6..d8c5f6a44 100644
--- a/src/pip/_internal/locations/__init__.py
+++ b/src/pip/_internal/locations/__init__.py
@@ -297,7 +297,7 @@ def get_scheme(
if k == "platlib" and _looks_like_red_hat_lib():
continue
- # On Python 3.9+, sysconfig's posix_user scheme sets platlib against
+ # sysconfig's posix_user scheme sets platlib against
# sys.platlibdir, but distutils's unix_user incorrectly coninutes
# using the same $usersite for both platlib and purelib. This creates a
# mismatch when sys.platlibdir is not "lib".
@@ -305,7 +305,6 @@ def get_scheme(
user
and k == "platlib"
and not WINDOWS
- and sys.version_info >= (3, 9)
and _PLATLIBDIR != "lib"
and _looks_like_bpo_44860()
)
diff --git a/tests/functional/test_uninstall_user.py b/tests/functional/test_uninstall_user.py
index c49120ec2..664ba72da 100644
--- a/tests/functional/test_uninstall_user.py
+++ b/tests/functional/test_uninstall_user.py
@@ -79,7 +79,7 @@ class Tests_UninstallUserSite:
@pytest.mark.xfail(
sys.platform == "darwin"
and platform.machine() == "arm64"
- and sys.version_info[:2] in {(3, 8), (3, 9)},
+ and sys.version_info[:2] == (3, 9),
reason="Unexpected egg-link install path",
)
def test_uninstall_editable_from_usersite(
|
I'm not going to touch those as I'm not particularly confident about touching the locations code, and frankly, we can simply delete that test when Python 3.9 support is dropped. Thanks for bringing them up though! |
14ac796
to
371f588
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's probably a good time to start considering dropping Python 3.8 support as it's been EOL for a few months now.
I've skimmed the output of pyupgrade using
git add -p
. There was one bad transformation involving a docstring, but other than that, it looks safe.Towards #12989.