-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
Add python 3.13 to the continuous integration #2424
Conversation
d45d880
to
8743572
Compare
5a2fffb
to
4a4f9cf
Compare
@@ -8,6 +8,7 @@ numpy>=1.17.0; python_version<"3.12" | |||
python-dateutil | |||
PyQt6 | |||
regex | |||
setuptools |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oof, is that avoidable ? I don't see what changed in this MR to warrant that, si it means we already were depending on setuptools ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. Uninstall setuptools, run pytest -k namespace
, see:
tests/test_manager.py:124:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
import warnings
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
> __import__("pkg_resources").declare_namespace(__name__)
E AttributeError: module 'pkg_resources' has no attribute 'declare_namespace'
tests/testdata/python3/data/path_pkg_resources_1/package/__init__.py:5: AttributeError
===================================== short test summary info ======================================
FAILED tests/test_manager.py::AstroidManagerTest::test_identify_old_namespace_package_protocol - AttributeError: module 'pkg_resources' has no attribute 'declare_namespace'
========================== 1 failed, 10 passed, 1675 deselected in 1.18s ===========================
We could do this in a separate MR if you like, but I figured a separate commit was enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this a test dependencie and not a runtime dependencie ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's what this file is. (My commit message is slightly wrong, should say test dependency)
fc0e9b6
to
25a0b35
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2424 +/- ##
=======================================
Coverage 92.74% 92.75%
=======================================
Files 94 94
Lines 10993 11007 +14
=======================================
+ Hits 10195 10209 +14
Misses 798 798
Flags with carried forward coverage won't be shown. Click here to find out more.
|
517eb3f
to
bdb7568
Compare
Thanks for the reviews! |
Type of Changes
Description
Add compatibility with Python 3.13.