Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 2183381

Summary: python-jenkins-job-builder fails to build and install with the latest setuptools version
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: python-jenkins-job-builderAssignee: Christoph Erhardt <fedora>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: fedora, fti-bugs, igor.raits, ktdreyer, mhroncok
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: 2023-08-20 09:57:10 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: 2168842, 2168845, 2231790, 2231791, 2144132    

Description Charalampos Stratakis 2023-03-31 00:11:15 UTC
python-jenkins-job-builder fails to build with the latest setuptools version.

This report is automated and not very verbose, but we'll try to get back here with details.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/cstratak/setuptools-67.5.1/fedora-rawhide-x86_64/05731418-python-jenkins-job-builder/

For all our attempts to build python-jenkins-job-builder with the latest setuptools, see:
https://copr.fedorainfracloud.org/coprs/cstratak/setuptools-67.5.1/package/python-jenkins-job-builder/

Let us know here if you have any questions.

Comment 1 Christoph Erhardt 2023-04-03 18:57:57 UTC
Upstream has declared that setuptools >= 66.0.0 is not supported for the time being:
https://opendev.org/jjb/jenkins-job-builder/commit/571df29fd752cf80570f9648e1502d4571f9aaa6

They state the following reason:
> Starting from version 66.0.0 setuptools has dropped support for LegacyVersion. But many Jenkins plugins still provide versions in legacy format.

Not sure what we can do here. :-/

Comment 2 Charalampos Stratakis 2023-04-03 23:28:54 UTC
(In reply to Christoph Erhardt from comment #1)
> Upstream has declared that setuptools >= 66.0.0 is not supported for the
> time being:
> https://opendev.org/jjb/jenkins-job-builder/commit/
> 571df29fd752cf80570f9648e1502d4571f9aaa6
> 
> They state the following reason:
> > Starting from version 66.0.0 setuptools has dropped support for LegacyVersion. But many Jenkins plugins still provide versions in legacy format.
> 
> Not sure what we can do here. :-/

Many packages have fixed that already in various ways:

https://github.com/sarugaku/pythonfinder/pull/127/files
https://github.com/bihealth/sodar-server/commit/8e18c9437f07009053e8b8bd49ac76554ed2174e#diff-680942569c659a0a895fdc74cf402da8176b7d26630d544c00b938bcba3342bf
https://github.com/qutip/qutip/pull/2037/files
https://github.com/voxelmorph/voxelmorph/pull/495/files



Relevant discussion about this issue: https://github.com/pypa/packaging/issues/631

I think the best way would be to convince upstream to make the change sooner rather than later. If that fails we can carry a downstream patch meanwhile.

Comment 3 Charalampos Stratakis 2023-04-20 18:02:05 UTC
As setuptools is moving forward with new releases and Fedora needs to be tested against them I'll push the latest version to rawhide. The only packages that are still failing with the latest version are python-jenkins and python-jenkins-job-builder. Please work with upstream to provide a downstream fix and if that's not feasible please reach out and we can work together to implement a downstream only fix.

Comment 4 Miro HronĨok 2023-04-21 14:16:14 UTC
*** Bug 2188644 has been marked as a duplicate of this bug. ***

Comment 5 Christoph Erhardt 2023-04-21 21:05:46 UTC
I intend to take care of this issue, but I have to find the time to dig into it. I'll keep you updated here.

Comment 6 Christoph Erhardt 2023-04-30 09:24:40 UTC
We need to fix python-jenkins first. I have submitted a patch for review upstream: https://review.opendev.org/c/jjb/python-jenkins/+/881904

Comment 7 Christoph Erhardt 2023-06-16 22:04:59 UTC
Pull request for the python-jenkins package: https://src.fedoraproject.org/rpms/python-jenkins/pull-request/1

Once it is merged, I can take care of python-jenkins-job-builder.

Comment 8 Fedora Release Engineering 2023-08-16 07:12:48 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 9 Christoph Erhardt 2023-08-20 09:57:10 UTC
Fixed in rawhide and f39 with 5.0.4-1.