Bug 1597588 - python-kubernetes-5.0.0-2.fc29 FTBFS with Python 3.7
Summary: python-kubernetes-5.0.0-2.fc29 FTBFS with Python 3.7
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-kubernetes
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alfredo Moralejo
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON37
TreeView+ depends on / blocked
 
Reported: 2018-07-03 09:25 UTC by Alfredo Moralejo
Modified: 2018-07-17 16:35 UTC (History)
2 users (show)

Fixed In Version: python-kubernetes-7.0.0-0.1.fc29
Clone Of:
Environment:
Last Closed: 2018-07-17 15:24:35 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.