Fedora Account System
Red Hat Associate
Red Hat Customer
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-pdfkit/ While it succeeded with setuptools 69.2.0 and wheel 0.43 in https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-control/package/python-pdfkit/ 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.
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.
(In reply to Miro Hrončok from comment #1) > 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. What is status? Might be worth to orphan this package.
I haven't updated setuptools yet but I plan to do it soon.
Relevant snippet from log: The test command is disabled. + /usr/bin/python3 setup.py test /builddir/build/BUILD/python-pdfkit-0.6.1-build/pdfkit-0.6.1/setup.py:25: SyntaxWarning: invalid escape sequence '\.' code_block = '(:\n\n)?\.\. code-block::.*' /builddir/build/BUILD/python-pdfkit-0.6.1-build/pdfkit-0.6.1/setup.py:3: SetuptoolsDeprecationWarning: The test command is disabled and references to it are deprecated. !! ******************************************************************************** Please remove any references to `setuptools.command.test` in all supported versions of the affected package. By 2024-Nov-15, you need to update your project and remove deprecated calls or your builds will no longer be supported. ******************************************************************************** !! from setuptools.command.test import test as TestCommand /usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) Traceback (most recent call last): File "/builddir/build/BUILD/python-pdfkit-0.6.1-build/pdfkit-0.6.1/setup.py", line 29, in <module> setup( ~~~~~^ name='pdfkit', ^^^^^^^^^^^^^^ ...<21 lines>... ] ^ ) ^ File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) File "/usr/lib/python3.13/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 954, in run_commands self.run_command(cmd) ~~~~~~~~~~~~~~~~^^^^^ File "/usr/lib/python3.13/site-packages/setuptools/dist.py", line 950, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.13/site-packages/setuptools/_distutils/dist.py", line 973, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "/usr/lib/python3.13/site-packages/setuptools/command/test.py", line 45, in run raise RuntimeError("Support for the test command was removed in Setuptools 72") RuntimeError: Support for the test command was removed in Setuptools 72
> RuntimeError: Support for the test command was removed in Setuptools 72 Is there a workaround? Too busy with daily job at the moment and too lazy to read into documentation, sorry.
as said in the original report: 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.
(In reply to Miro Hrončok from comment #6) > as said in the original report: > > 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. Not sure if that works. Have to investigate with upstream or someone could file a patch.
This is used directly in the spec file: %check ... %{__python3} setup.py test Please, replace the usage of setup.py test with -m unittest, etc. as appropriate for this package.
(In reply to Miro Hrončok from comment #8) > This is used directly in the spec file: > > %check > ... > %{__python3} setup.py test > > Please, replace the usage of setup.py test with -m unittest, etc. as > appropriate for this package. Patch is welcomed. Please file a pull request. Sorry for delay, timely missed somehow your proposal.
https://src.fedoraproject.org/rpms/python-pdfkit/pull-request/2