-
-
Notifications
You must be signed in to change notification settings - Fork 495
-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
DeprecationWarning from setuptools 67.5.0 and above #727
Comments
If someone wants to work on this, the most straightforward replacement would be the point 5. of https://packaging.python.org/en/latest/guides/single-sourcing-package-version/ (importlib.metadata) |
This code might work with Python >= 3.8
It might be worth checking the Python version and/or running this code with try and then fail to what the code is doing right now:
|
Actually, I see they also changed it already. Look at this code: |
I'm sure you are now ready to suggest a PR 😄 |
I'm not sure I can. Notice that
While replacing completely the current code (and not leaving it if the code fails). |
That sounds like a plan! |
Yes but I don't know how to add a required package. If you add it then you can just copy my code and put it on https://github.com/jazzband/sorl-thumbnail/blob/master/sorl/__init__.py. |
In https://packaging.python.org/en/latest/guides/single-sourcing-package-version/, you'll find the explanation on how to add the conditional dependency. |
Hi,
If
setuptools
67.5.0 and above is installed, I receive aDeprecationWarning
when running the tests with errors and warnings enabled (tested with Python 3.10.10):With
setuptools
67.4.0 and below, there is noDeprecationWarning
.The text was updated successfully, but these errors were encountered: