Bug 1594941

Summary: python-pytelegrambotapi FTBFS on Python 3.7
Product: [Fedora] Fedora Reporter: Vitaly <vitaly>
Component: python-pytelegrambotapiAssignee: Vitaly <vitaly>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: mhroncok, vitaly
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-02 16:35:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1565020    

Description Vitaly 2018-06-25 19:17:34 UTC
Description of problem: FTBFS on Python 3.7


Version-Release number of selected component (if applicable):
python-pytelegrambotapi-3.6.3-2.fc29

How reproducible:
Always.

Steps to Reproduce:
1. fedpkg build --target=f29-python
2.
3.

Actual results:
Build failure:

File "/usr/lib/python3.7/site-packages/telebot/util.py", line 146
    def async():
            ^
SyntaxError: invalid syntax
  File "/usr/lib/python3.7/site-packages/telebot/__init__.py", line 1353
    @util.async()
              ^
SyntaxError: invalid syntax

Expected results:
Successful build.

Additional info:

Comment 1 Vitaly 2018-06-25 19:20:21 UTC
Requested upstream to rename public method async() of class util. Created upstream ticket and attached to this bug.

Comment 2 Vitaly 2018-07-02 16:27:19 UTC
Backported patch from pull request. Now it should builds fine.

Comment 3 Vitaly 2018-07-02 16:35:50 UTC
Build python-pytelegrambotapi-3.6.3-3.fc29 completed successfully.
Requires: python(abi) = 3.7