Bug 2403565

Summary: python-flask-security-too: Fails to build with setuptools 80.9.0 [ERROR in tests: UserWarning: pkg_resources is deprecated as an API]
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: python-flask-security-tooAssignee: Sandro Mani <manisandro>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: manisandro
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2362565    

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.