Bug 1597588

Summary: python-kubernetes-5.0.0-2.fc29 FTBFS with Python 3.7
Product: [Fedora] Fedora Reporter: Alfredo Moralejo <amoralej>
Component: python-kubernetesAssignee: Alfredo Moralejo <amoralej>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: amoralej, mhroncok
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-kubernetes-7.0.0-0.1.fc29 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-07-17 15:24:35 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 Alfredo Moralejo 2018-07-03 09:25:58 UTC
Description of problem:

python-kubernetes 5.0.0 fails to build with python 3.7:

https://koji.fedoraproject.org/koji/watchlogs?taskID=27998427

Error caused because it's using async as parameter name which is now a reserved word.

Reported upstream in https://github.com/kubernetes-client/python/issues/558

Version-Release number of selected component (if applicable):

python-kubernetes-5.0.0-2.fc29

How reproducible:

Always

Steps to Reproduce:
1. Rebuild python-kubernetes-5.0.0-2.fc29 in rawhide

Actual results:

It fails to build with errors in unit tests:

*** Error compiling '/builddir/build/BUILDROOT/python-kubernetes-5.0.0-2.fc29.noarch/usr/lib/python3.7/site-packages/kubernetes/client/apis/version_api.py'...
  File "/usr/lib/python3.7/version_api.py", line 120
    async=params.get('async'),
        ^
SyntaxError: invalid syntax

etc...

Expected results:

It should rebuild successfully

Additional info:

Comment 1 Miro Hrončok 2018-07-17 12:35:53 UTC
Alfredo, upstream seems to have a workaround ready, can we ship it?

Comment 2 Alfredo Moralejo 2018-07-17 14:03:24 UTC
(In reply to Miro Hrončok from comment #1)
> Alfredo, upstream seems to have a workaround ready, can we ship it?

There is a new release upstream v7.0.0a1 wich includes a fix for the async issue. I'm inclined to create a new build with this pre-release and push it to f29 instead of changing upstream methods parameters with a patch in the distgit.

I'm testing v7.0.0a1.

Comment 3 Alfredo Moralejo 2018-07-17 15:22:51 UTC
New package built in https://koji.fedoraproject.org/koji/buildinfo?buildID=1128114 with 3.7 using v7.0.0a1