Bug 2319734 - python-volatile fails to build with setuptools 74+
Summary: python-volatile fails to build with setuptools 74+
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-volatile
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: SETUPTOOLS74
TreeView+ depends on / blocked
 
Reported: 2024-10-18 10:15 UTC by Miro Hrončok
Modified: 2024-10-31 17:03 UTC (History)
1 user (show)

Fixed In Version: python-volatile-2.1.0-15.fc42
Clone Of:
Environment:
Last Closed: 2024-10-31 17:03:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2024-10-18 10:15:14 UTC
Dear package maintainer,

this bugzilla is automated becasue the number of impacted packages it too high to go trough manually.

It appears that your package failed to build with setuptools 74.1.3 and wheel 0.44 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-74/package/python-volatile/

While it succeeded with setuptools 69.2.0 and wheel 0.43 in

  https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-control/package/python-volatile/

This usually means this package fails to build with setuptools 74+

We plan to update setuptools to version 74 or newer in Fedora 42. This is an approved Fedora 42 Change:

  https://fedoraproject.org/wiki/Changes/Setuptools_74+



Please analyze the failure and fix it in rawhide. Thanks.


You can use the builds from the churchyard/setuptools-74 copr for local testing.

  mock -r fedora-rawhide-x86_64 --addrepo 'https://download.copr.fedorainfracloud.org/results/churchyard/setuptools-74/fedora-rawhide-$basearch/'


One of the most common problems is that the setup.py test command cannot be used. If that is the case here, run the tests in %check differently, e.g. via %pytest, %tox, %{python3} -m unittest, etc.


If you need help, reach out to me in this bugzilla.

Comment 1 Miro Hrončok 2024-10-29 10:58:39 UTC
I plan to update setuptools to 74.x in rawhide this week.

At that point, this package will fail to build from source if not fixed.

Comment 2 Michel Lind 2024-10-31 16:27:06 UTC
Thanks for the heads up! Sorry for the slow response, I was on vacation when this was filed.

Uh, this is fun - upstream has been dead for... 8 years, and we still have two packages depending on it

```
 ❯ fedrq-pydeps-verbose.sh volatile
+ fedrq whatrequires 'python3dist(volatile)' -F multiline:source,requires
+ grep 'python3dist(volatile)'
python-bowler : python3dist(volatile)
python-moreorless : python3dist(volatile)
```

moreorless is in turn used by bowler, but also by usort; usort is not used by anyone else

We probably care about usort though... I'll figure this out.

Comment 3 Miro Hrončok 2024-10-31 16:34:55 UTC
Usually, it's just about replacing:

%check
%{python3} setup.py test

With:

%check
%{python3} -m unittest

Or similar.

Comment 4 Michel Lind 2024-10-31 16:49:44 UTC
(In reply to Miro Hrončok from comment #3)
> Usually, it's just about replacing:
> 
> %check
> %{python3} setup.py test
> 
> With:
> 
> %check
> %{python3} -m unittest
> 
> Or similar.

yup, I just got round to (re-)reading the change document. Going to use pytest since, might as well, looks like it works.

Comment 5 Fedora Update System 2024-10-31 16:59:17 UTC
FEDORA-2024-bb3c83c180 (python-volatile-2.1.0-15.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-bb3c83c180

Comment 6 Fedora Update System 2024-10-31 17:03:29 UTC
FEDORA-2024-bb3c83c180 (python-volatile-2.1.0-15.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.


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