[ 
https://issues.apache.org/jira/browse/BEAM-5607?focusedWorklogId=151010&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-151010
 ]

ASF GitHub Bot logged work on BEAM-5607:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 04/Oct/18 02:42
            Start Date: 04/Oct/18 02:42
    Worklog Time Spent: 10m 
      Work Description: manuzhang commented on a change in pull request #6543: 
[BEAM-5607] Set python_version of typing library < 3.7.0
URL: https://github.com/apache/beam/pull/6543#discussion_r222523343
 
 

 ##########
 File path: sdks/python/setup.py
 ##########
 @@ -124,7 +124,7 @@ def get_version():
     'pytz>=2018.3,<=2018.4',
     'pyyaml>=3.12,<4.0.0',
     'pyvcf>=0.6.8,<0.7.0',
-    'typing>=3.6.0,<3.7.0',
+    'typing>=3.6.0,<3.7.0; python_version < "3.7.0"',
 
 Review comment:
   @aaltay @tvalentyn I'd love to make the cleanup in a separate PR. I've seen 
errors coming from `futures` package from Python 3.5 to 3.7 and interestingly 
*installing futures* solves it for me. I've logged the typing issue in 
[BEAM-5607](https://issues.apache.org/jira/browse/BEAM-5607) and feel free to 
add more info there. By the way, do you think it's worthwhile to set up a 
testing matrix for Python 2, 3.5, 3.6 and 3.7 on Jenkins respectively ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 151010)
    Time Spent: 40m  (was: 0.5h)

> Typing library no longer provisional in Python 3.7
> --------------------------------------------------
>
>                 Key: BEAM-5607
>                 URL: https://issues.apache.org/jira/browse/BEAM-5607
>             Project: Beam
>          Issue Type: Sub-task
>          Components: sdk-py-core
>            Reporter: Manu Zhang
>            Assignee: Manu Zhang
>            Priority: Minor
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> This is an issue coming from future since the target version in the [initial 
> proposal|https://lists.apache.org/thread.html/5371469de567357b1431606f766217ef73a9098dc45046f51a6ecceb@%3Cdev.beam.apache.org%3E]
>  is up to 3.6. Running python tests in 3.7 would throw the following error 
> because the [typing library is no longer provisional in Python 
> 3.7|https://github.com/python/typing#important-dates]
> {code}
> sdks/python/.eggs/typing-3.6.6-py3.7.egg/typing.py", line 1004, in __new__
>     self._abc_registry = extra._abc_registry
> AttributeError: type object 'Callable' has no attribute '_abc_registry'
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to