Skip to content

FTBFS: test/unit/internal/test_key_details.py cryptography.exceptions.UnsupportedAlgorithm: Curve secp192r1 is not supported #1603

@mcepl

Description

@mcepl

Description

When building this package for openSUSE/Factory using cryptography 46.0.2, I get failure while collecting tests for the running the test suite:

[   35s] + pytest-3.11 --ignore=_build.python311 --ignore=_build.python312 --ignore=_build.python313 -v --skip-online test/unit
[   35s] ============================= test session starts ==============================
[   35s] platform linux -- Python 3.11.14, pytest-8.4.2, pluggy-1.6.0 -- /usr/bin/python3.11
[   35s] cachedir: .pytest_cache
[   35s] rootdir: /home/abuild/rpmbuild/BUILD/python-sigstore-4.1.0-build/sigstore-python-4.1.0
[   35s] configfile: pyproject.toml
[   35s] plugins: cov-7.0.0
[   35s] collecting ... collected 181 items / 1 error
[   35s] 
[   35s] ==================================== ERRORS ====================================
[   35s] ___________ ERROR collecting test/unit/internal/test_key_details.py ____________
[   35s] test/unit/internal/test_key_details.py:31: in <module>
[   35s]     return_value=ec.generate_private_key(ec.SECP192R1()).public_key()
[   35s]                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[   35s] E   cryptography.exceptions.UnsupportedAlgorithm: Curve secp192r1 is not supported
[   35s] =============================== warnings summary ===============================
[   35s] <frozen importlib._bootstrap>:241
[   35s]   <frozen importlib._bootstrap>:241: DeprecationWarning: builtin type SwigPyPacked has no __module__ attribute
[   35s] 
[   35s] <frozen importlib._bootstrap>:241
[   35s]   <frozen importlib._bootstrap>:241: DeprecationWarning: builtin type SwigPyObject has no __module__ attribute
[   35s] 
[   35s] -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
[   35s] =========================== short test summary info ============================
[   35s] ERROR test/unit/internal/test_key_details.py - cryptography.exceptions.Unsupp...
[   35s] !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
[   35s] ========================= 2 warnings, 1 error in 0.15s =========================
[   35s] sys:1: DeprecationWarning: builtin type swigvarlink has no __module__ attribute
[   35s] error: Bad exit status from /var/tmp/rpm-tmp.f3NPhb (%check)

Complete build log with all details of the packages used and steps taken to reproduce.

Version

Building sigstore-4.1.0 from GitHub release tarball.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions