-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Drop support for EOL Python 3.3 #468
Conversation
astroid/interpreter/_import/spec.py
Outdated
@@ -178,7 +178,7 @@ def contribute_to_path(self, spec, processed): | |||
ImpFinder, | |||
ZipFinder, | |||
) | |||
if _HAS_MACHINERY and sys.version_info[:2] > (3, 3): | |||
if _HAS_MACHINERY and sys.version_info[:2] > (3, 4): |
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 here we intended to have >= 3.4, this will stop working on 3.4
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.
Good point, will fix! (There was no test failure so here's a gap in coverage.)
astroid/tests/unittest_manager.py
Outdated
@@ -26,7 +26,7 @@ | |||
def _get_file_from_object(obj): | |||
if platform.python_implementation() == 'Jython': | |||
return obj.__file__.split("$py.class")[0] + ".py" | |||
if sys.version_info > (3, 0): | |||
if sys.version_info > (3, 4): |
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.
= perhaps?
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.
Yep, will change to >= (3, 4)
.
astroid/tests/unittest_manager.py
Outdated
@@ -104,7 +104,7 @@ def test_ast_from_namespace_pkgutil(self): | |||
def test_ast_from_namespace_pkg_resources(self): | |||
self._test_ast_from_old_namespace_package_protocol('pkg_resources') | |||
|
|||
@unittest.skipUnless(sys.version_info[:2] > (3, 3), "Needs PEP 420 namespace protocol") | |||
@unittest.skipUnless(sys.version_info[:2] > (3, 4), "Needs PEP 420 namespace protocol") |
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.
Ditto. I think namespace protocol landed in 3.4
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.
Left some comments with some changes
@PCManticore Thanks, I've updated the PR. |
Latest master is failing on Python 3.3 because pytest, or rather py, has dropped support for Python 3.3 (pytest-dev/py#159 pytest-dev/py#165):
https://travis-ci.org/hugovk/astroid/builds/309952810
Here's the pip installs for astroid from PyPI for the last month (via
pypinfo --percent --pip astroid pyversion
) showing a small fraction on 3.3: