Bug 2403566
| Summary: | python-paste: Fails to build with setuptools 80.9.0 [FAILURE in tests, unexpected UserWarning: pkg_resources is deprecated as an API.] | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
| Component: | python-paste | Assignee: | Aurelien Bompard <aurelien> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | aurelien, infra-sig, ondrejj |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | --- | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2025-11-20 09:19:03 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: | 2384424, 2362565 | ||
|
Description
Miro Hrončok
2025-10-13 15:41:55 UTC
=================================== FAILURES ===================================
__________________________________ test_form ___________________________________
def test_form():
app = TestApp(CGIApplication({}, script='form.cgi', path=[data_dir]))
> res = app.post('', params={'name': b'joe'},
upload_files=[('up', 'file.txt', b'x'*10000)])
tests/test_cgiapp.py:47:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
paste/fixture.py:264: in post
return self._gen_request('POST', url, params=params, headers=headers,
paste/fixture.py:248: in _gen_request
return self.do_request(req, status=status)
paste/wsgilib.py:350: in raw_interactive
app_iter = application(basic_environ, start_response)
paste/lint.py:169: in lint_app
iterator = application(environ, start_response_wrapper)
paste/cgiapp.py:105: in __call__
proc_communicate(
paste/cgiapp.py:260: in proc_communicate
stderr.write(ensure_text(data))
paste/lint.py:220: in write
self.errors.write(s)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <paste.wsgilib.ErrorRaiser object at 0x7fdfcae516d0>
value = '/builddir/build/BUILD/python-paste-3.10.1-build/paste-3.10.1/tests/cgiapp_data/form.cgi:16: UserWarning: pkg_resource...for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n import pkg_resources\n'
def write(self, value):
if not value:
return
> raise AssertionError(
"No errors should be written (got: %r)" % value)
E AssertionError: No errors should be written (got: '/builddir/build/BUILD/python-paste-3.10.1-build/paste-3.10.1/tests/cgiapp_data/form.cgi:16: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.\n import pkg_resources\n')
paste/wsgilib.py:381: AssertionError
=============================== warnings summary ===============================
tests/__init__.py:7
/builddir/build/BUILD/python-paste-3.10.1-build/paste-3.10.1/tests/__init__.py:7: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
../../../../../usr/lib/python3.14/site-packages/pkg_resources/__init__.py:3146
../../../../../usr/lib/python3.14/site-packages/pkg_resources/__init__.py:3146
/usr/lib/python3.14/site-packages/pkg_resources/__init__.py:3146: DeprecationWarning: Deprecated call to `pkg_resources.declare_namespace('paste')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_cgiapp.py::test_form - AssertionError: No errors should be ...
Already reported upstream, not solved: https://github.com/pasteorg/paste/issues/107 Possibly there will be no solution. I am not interested to fix this too, may be we should orphan this package. It's already not required to build my other packages. I plan to proceed with the setuptools update soon. Let me know if I should wait for python-paste. I think do not wait. I will leave this package if there will be no update upstream and not sure if main admin @aurelien will continue to maintain. This now fails to build in rawhide. Please respond. Looks like with disabling of urlparser and cgiapp test this package builds well. No sure, if these modules are really required for full funncionality, possibly not, but at least it's possible to install this package. Upstream issue is still not solved, so I can't do more. :-( @mhroncok, can we close this bug? I don't think, there will be more fixes for this. Thanks. |