Bug 2354144 - translate-toolkit FTBFS due to missing tox configuration
Summary: translate-toolkit FTBFS due to missing tox configuration
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: translate-toolkit
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Sudip Shil
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3.14 F43FTBFS, RAWHIDEFTBFS
TreeView+ depends on / blocked
 
Reported: 2025-03-21 16:55 UTC by Miro Hrončok
Modified: 2025-03-25 21:48 UTC (History)
5 users (show)

Fixed In Version: translate-toolkit-3.15.1-1.fc43
Clone Of:
Environment:
Last Closed: 2025-03-25 21:48:56 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker FC-1533 0 None None None 2025-03-25 12:11:17 UTC

Description Miro Hrončok 2025-03-21 16:55:08 UTC
Hello.

translate-toolkit fails to build from source becasue it uses one or both of:

 - %pyproject_buildrequires -t/-e (generate dependencies via tox)
 - %tox (run tox)

without tox configuration (e.g. tox.ini or tox section of pyproject.toml/setup.cfg).

This was always supposed to fail, but regressed with tox 4.
Now it fails again.

https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/ZSHSHZKVA4XJQBJD7FMMCALKN4UP5SAJ/
https://lists.fedoraproject.org/archives/list/devel-announce@lists.fedoraproject.org/thread/N25A2BER3RUHMTBIULQ6AVWRILSL5VGW/

If this package uses tox upstream, make sure to use a source tarball that includes the tox configuration (e.g. an archive from GitHub instead of sdist from PyPI).

If this package does not use tox upstream, you cannot use the tox options.
If your package uses %pyproject_buildrequires -t/-e but does not use %tox, just drop the -t/-e option.
If your package uses %tox, replace the call with a more suitable way for running tests (e.g. %pytest).

Let me know if you need assistance. Thanks.

Comment 1 Miro Hrončok 2025-03-21 17:03:35 UTC
This package was not originally reported as impacted. The problem was introduced after the original report, in https://src.fedoraproject.org/rpms/translate-toolkit/c/710a6750607222f1cadf43263f5954e85092e7dc?branch=rawhide

The fix is to remove the -t flag from %pyproject_buildrequires: https://src.fedoraproject.org/rpms/translate-toolkit/pull-request/9

Comment 2 Fedora Update System 2025-03-25 19:55:52 UTC
FEDORA-2025-b09e8f5b3e (translate-toolkit-3.15.1-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-b09e8f5b3e

Comment 3 Fedora Update System 2025-03-25 21:48:56 UTC
FEDORA-2025-b09e8f5b3e (translate-toolkit-3.15.1-1.fc43) has been pushed to the Fedora 43 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.