-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Click tests fails on Python 3.12.0-beta.1
#2524
Comments
Running with python 3.12.0b3 there are several issues: tox - testenv - pytestThis causes deprecation warnings about ast.Str, they will be removed in python 3.14, but in 3.12, it should continue to work.
tox - testenv - docsRunning this fails with the error about not being able to find pkg_resources due to it being deprecated. tox - testenv - styleThe errors that are seen about python 3.12 issues with files in the /root/.cache directory for other files outside of the click repo. One of the errors looks like this:
The value.value[-1] is an issue with flake8 it looks like with bugbear. Issue goes away if bugbear is fixed to check that value string is filled in with at least one char before trying to get the last character. If the value is empty then it will throw the IndexError. From what I can see the style portion of tox is not run in github actions, so we won't see that when running it. Tox runs the pre-commit which has I'll create a PR that fixes the items mentioned above, specifically flake8 running within the testing repo and not on every library in the system, which does not make sense. |
All of the suggested changes are incorrect, this just requires updating some libraries, which I'll take care of when I have a chance. |
The linked PR actually shows that all the tests passed. I addressed more issues than the bug is for, the bug is only for the environment py312, the docs and style which are not run in the matrix have issues in 3.12 as I outlined, but are outside of scope of this bug. That being said, in the current docker python:3.12.0b3, the py312 does not fail.
|
Yes, you can get them to pass that way, but that's not the correct fix. |
Addressed in b5280c6 |
The last test job on
main
branch dates back to a month ago. At that time Python3.12.0-alpha.7
was used and everything went fine: https://github.com/pallets/click/actions/runs/4874262829/jobs/8694965847#step:3:33With the release of Python
3.12.0-beta.1
, Click tests are failing on the3.12-dev
job, with the following issue:See for instance my latest #2523 PR: https://github.com/pallets/click/actions/runs/5121540227/jobs/9209435195?pr=2523#step:7:73
The text was updated successfully, but these errors were encountered: