Bug 2319690
| Summary: | python-pdfkit fails to build with setuptools 74+ | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-pdfkit | Assignee: | Raphael Groner <projects.rg> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | projects.rg, python-packagers-sig |
| Target Milestone: | --- | Keywords: | EasyFix, Patch |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | python-pdfkit-0.6.1-18.fc42 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-01-23 09:29:10 UTC | Type: | --- |
| 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: | 2300528, 2319387, 2322407 | ||
|
Description
Miro Hrončok
2024-10-18 10:12:22 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. (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. |