Bug 2183381 - python-jenkins-job-builder fails to build and install with the latest setuptools version
Summary: python-jenkins-job-builder fails to build and install with the latest setupto...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-jenkins-job-builder
Version: 39
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Christoph Erhardt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2188644 (view as bug list)
Depends On:
Blocks: F39FTBFS F39FailsToInstall F40FailsToInstall F40FTBFS 2144132
TreeView+ depends on / blocked
 
Reported: 2023-03-31 00:11 UTC by Charalampos Stratakis
Modified: 2023-08-20 09:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-20 09:57:10 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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