Remove default encoding checks for py-fast tox env#1474
Merged
freakboy3742 merged 1 commit intobeeware:mainfrom Oct 3, 2023
Merged
Remove default encoding checks for py-fast tox env#1474freakboy3742 merged 1 commit intobeeware:mainfrom
py-fast tox env#1474freakboy3742 merged 1 commit intobeeware:mainfrom
Conversation
992952a to
17221aa
Compare
freakboy3742
approved these changes
Oct 3, 2023
Member
freakboy3742
left a comment
There was a problem hiding this comment.
This appears to be a bug in setuptools_scm, combined with a change in Python itself.
setuptools_scm is using a slightly weird way to specify the encoding when they identify whether git is installed. This approach doesn't cause a problem on Python 3.10, but the Python 3.10 sources explicitly call out that the behavior will change in future - and lo, in Python 3.11, it does.
AFAICT< It doesn't effect non-fast running because coverage -m doesn't pass the -X warn_default_encoding down to the invocation of setuptools_scm.
I've logged this with setuptools as pypa/setuptools-scm#950. In the meantime, I agree this is the pragmatic solution.
This file contains hidden or 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
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.
I don't understand why....but
tox -e py-fastfails for a default encoding fromsetuptools_scm...buttox -e pydoes not...PR Checklist: