Skip to content
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

Merged
merged 2 commits into from
Dec 15, 2017
Merged

Drop support for EOL Python 3.3 #468

merged 2 commits into from
Dec 15, 2017

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Dec 1, 2017

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:

python_version percent download_count
2.7 61.4% 417,265
3.6 18.8% 127,876
3.5 11.4% 77,237
3.4 7.4% 50,348
2.6 0.4% 3,046
3.3 0.3% 1,733
3.7 0.2% 1,573
3.2 0.0% 32
None 0.0% 4

@@ -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):
Copy link
Contributor

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

Copy link
Contributor Author

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.)

@@ -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):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

= perhaps?

Copy link
Contributor Author

@hugovk hugovk Dec 11, 2017

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).

@@ -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")
Copy link
Contributor

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

Copy link
Contributor

@PCManticore PCManticore left a 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

@hugovk
Copy link
Contributor Author

hugovk commented Dec 11, 2017

@PCManticore Thanks, I've updated the PR.

@PCManticore PCManticore merged commit 93f3cfa into pylint-dev:master Dec 15, 2017
@hugovk hugovk deleted the rm-3.3 branch December 15, 2017 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants