-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[BEAM-3738] Enable py3 lint #4801
Conversation
R: @holdenk |
What version of Python 3 are we testing under? The other test blocks do python --version and pip --version but the lint_py3 one does not. |
@cclauss Good catch. I believe we have 3.4.3 version based on (https://issues.apache.org/jira/browse/BEAM-3671). I will update tox.ini to print version for this use too. |
Updated, but I think we need to think about one more case. It turned out that printing the version was a good idea, because tox was defaulting to python2. Running it with python3 uncovered an issue: setup.py has |
We could reduce our exposure by making it python_requires='>=2.7,<=3.4' because 95% of users will no longer be using Python 3.4 when the current Python is 3.6.4 and 3.7 is in beta. Or reduce our exposure even more by making it python_requires='>=2.7,==3.4.3' because that is the exact Python 3 version that we have and the current Python 3.4 is version 3.4.7. |
So @cclauss I don't think that limiting to 3.4.3 is great since someone might read it and then just try to use 3.4.3. Personally I'd use an env variable to (e.g. But I like the direction of selectively unblocking setup.py for testing/linting so that we more easily track our progress and avoid regressions. |
@aaltay what are your thoughts? |
I have not had a chance to work on this after the my previous comment. I like the idea of using an environment variable. |
I've created #4877, which should include the changes here as well. |
+1 to using an environment variable, much better than falsely claiming
3.0-3.4 support.
…On Fri, Mar 16, 2018 at 5:23 PM Ahmet Altay ***@***.***> wrote:
Closed #4801 <#4801>.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#4801 (comment)>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAdqgVMb52r6lbtbWDBZnCrWskN-x0EDks5tfFeOgaJpZM4Sd4mI>
.
|
Since we verified that Jenkins workers have python3 installed (https://issues.apache.org/jira/browse/BEAM-3671) we should be able to enable py3 lint.
R: @alanmyrvold