Bug 2488358

Summary: python-azure-mgmt-core fails to build with Python 3.15: TypeError: Permissions.__init__() got an unexpected keyword argument 'keys'
Product: [Fedora] Fedora Reporter: Karolina Surma <ksurma>
Component: python-azure-mgmt-coreAssignee: Jeremy Cline <jeremy>
Status: CLOSED RAWHIDE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jeremy, python-packagers-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-06-24 17:46:13 UTC Type: Bug
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: 2412434, 2433833    

Description Karolina Surma 2026-06-12 14:19:59 UTC
python-azure-mgmt-core fails to build with Python 3.15.0b2.

________________ ERROR collecting tests/test_authentication.py _________________
tests/test_authentication.py:37: in <module>
    from devtools_testutils.fake_credentials import FakeTokenCredential
/usr/lib/python3.15/site-packages/devtools_testutils/__init__.py:17: in <module>
    from .keyvault_preparer import KeyVaultPreparer
/usr/lib/python3.15/site-packages/devtools_testutils/keyvault_preparer.py:39: in <module>
    DEFAULT_PERMISSIONS = Permissions(
/usr/lib/python3.15/site-packages/azure/mgmt/keyvault/models/_models.py:2791: in __init__
    super().__init__(*args, **kwargs)
/usr/lib/python3.15/site-packages/azure/mgmt/keyvault/_utils/model_base.py:607: in __init__
    raise TypeError(f"{class_name}.__init__() got an unexpected keyword argument '{non_attr_kwargs[0]}'")
E   TypeError: Permissions.__init__() got an unexpected keyword argument 'keys'

https://docs.python.org/3.15/whatsnew/3.15.html

For our attempts to build python-azure-mgmt-core with Python 3.15, see:
https://koji.fedoraproject.org/koji/search?terms=python-azure-mgmt-core&type=package&match=exact

Let us know here if you have any questions.

Python 3.15 is planned to be included in Fedora 45.
To make that update smoother, we're building Fedora packages with all pre-releases of Python 3.15.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires),
so if this package is required a lot, it's important for us to get it fixed soon.

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.