Bug 2403565 - python-flask-security-too: Fails to build with setuptools 80.9.0 [ERROR in tests: UserWarning: pkg_resources is deprecated as an API]
Summary: python-flask-security-too: Fails to build with setuptools 80.9.0 [ERROR in te...
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-passlib
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Joel Capitao
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2362565
TreeView+ depends on / blocked
 
Reported: 2025-10-13 15:41 UTC by Miro Hrončok
Modified: 2025-11-09 21:24 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Miro Hrončok 2025-10-13 15:41:51 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-flask-security-too

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:19:34 UTC
+ /usr/bin/pytest -k 'not test_login_email_whatever'
ImportError while loading conftest '/builddir/build/BUILD/python-flask-security-too-5.6.2-build/flask_security_too-5.6.2/tests/conftest.py'.
tests/conftest.py:37: in <module>
    from flask_security import (
flask_security/__init__.py:17: in <module>
    from .core import (
flask_security/core.py:92: in <module>
    from .totp import Totp
flask_security/totp.py:18: in <module>
    from passlib.pwd import genword
/usr/lib/python3.14/site-packages/passlib/pwd.py:16: in <module>
    import pkg_resources
/usr/lib/python3.14/site-packages/pkg_resources/__init__.py:98: in <module>
    warnings.warn(
E   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.

Comment 2 Miro Hrončok 2025-10-31 13:41:11 UTC
I plan to proceed with the setuptools update soon. Let me know if I should wait for python-flask-security-too.

Comment 3 Sandro Mani 2025-11-09 21:24:22 UTC
I believe this affects passlib rather than flask-security-too directly. Proposed fix for passlib at [1].


[1] https://src.fedoraproject.org/rpms/python-passlib/pull-request/10


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