-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Merge with distutils@58fe058e4 #4606
Merged
Merged
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
TRY300 Consider moving this statement to an `else` block
TRY301 Abstract `raise` to an inner function
YTT301 `sys.version[0]` referenced (python10), use `sys.version_info` The Python documentation discourages the use of `sys.version`: Do not extract version information out of it, rather, use `version_info` and [...]
In certain environments (notably, the [bazel sandbox](https://bazel.build/docs/sandboxing) on windows), it is possible for `pathlib.Path('~').expanduser()` to fail to find the user home directory and [raise a `RuntimeError`](https://docs.python.org/3/library/pathlib.html#pathlib.Path.expanduser). This causes `distutils` (and ultimately, `setuptools`) to fail. With this patch, we catch and handle the exception by logging a warning and continuing without a user's config file. motivated by bazelbuild/rules_python#1067
They where used by bdist_wininst, which was removed long ago in pypa/distutils#170
PERF102 When using only the values of a dict use the `values()` method
PERF402 Use `list` or `list.copy` to create a copy of a list
PERF403 Use a dictionary comprehension instead of a for-loop
Enforce ruff/Perflint rules (PERF)
Remove unused wininst-*.exe files
Remove outdated `ImportError` check for `warnings`
# Conflicts: # pyproject.toml
Co-authored-by: Anderson Bravalheri <andersonbravalheri+github@gmail.com>
…find-user-home handle failures to find a user home directory
Enforce ruff/tryceratops rules (TRY)
Enforce ruff/flake8-2020 rule (YTT301)
Remove legacy msvc compiler modules.
Use arm64 MSVC on arm64 Windows
Consolidate VS 2017 support from Setuptools
7 tasks
Here's the more useful summary:
|
1 task
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.
# local
to ignore conflicts with upstreaSummary of changes
Closes
Pull Request Checklist
newsfragments/
.(See documentation for details)