Bug 2403566 - python-paste: Fails to build with setuptools 80.9.0 [FAILURE in tests, unexpected UserWarning: pkg_resources is deprecated as an API.]
Summary: python-paste: Fails to build with setuptools 80.9.0 [FAILURE in tests, unexpe...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-paste
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Aurelien Bompard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F44FTBFS, RAWHIDEFTBFS 2362565
TreeView+ depends on / blocked
 
Reported: 2025-10-13 15:41 UTC by Miro Hrončok
Modified: 2025-11-20 09:19 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-11-20 09:19:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-10-13 15:41:55 UTC
Dear package maintainer,

We want to update python-setuptools to 80.9.0 or newer.

However, your package fails to build with it, in our testing Copr:

https://copr.fedorainfracloud.org/coprs/churchyard/setuptools-80.9.0/package/python-paste

To reproduce, try to build your package in mock with:

 $ fedpkg --release rawhide mockbuild -N -- --addrepo=https://download.copr.fedorainfracloud.org/results/churchyard/setuptools-80.9.0/fedora-rawhide-x86_64

As the number of failures is rather high, I have not yet tried to look into the details about each individual failure.
When you do, please feel free to post relevant part of the logs as comments.

Thank you. Let me know if you need help.

Comment 1 Miro Hrončok 2025-10-13 16:25:37 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 ...

Comment 2 Jan ONDREJ 2025-10-14 06:45:07 UTC
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.

Comment 3 Miro Hrončok 2025-10-31 13:41:46 UTC
I plan to proceed with the setuptools update soon. Let me know if I should wait for python-paste.

Comment 4 Jan ONDREJ 2025-11-03 05:55:11 UTC
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.

Comment 5 Miro Hrončok 2025-11-12 17:38:59 UTC
This now fails to build in rawhide.

Comment 6 Miro Hrončok 2025-11-19 21:42:05 UTC
Please respond.

Comment 7 Jan ONDREJ 2025-11-20 09:04:07 UTC
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.

Comment 8 Miro Hrončok 2025-11-20 09:19:03 UTC
Thanks.


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