- Switch to pyproject macros.

- Add typing-extensions to Requires for 3.11 and 3.12.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=119
This commit is contained in:
Steve Kowalik 2025-01-30 01:29:32 +00:00 committed by Git OBS Bridge
parent 7893fb3044
commit e6a6032ed1
2 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 30 01:28:29 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Add typing-extensions to Requires for 3.11 and 3.12.
-------------------------------------------------------------------
Wed Jan 29 15:05:24 UTC 2025 - ecsos <ecsos@opensuse.org>

View File

@ -37,11 +37,15 @@ Source: https://files.pythonhosted.org/packages/source/p/pyopenssl/pyope
Patch0: skip-networked-test.patch
BuildRequires: %{python_module base >= 3.7}
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cffi
Requires: (python-cryptography >= 41.0.5 with python-cryptography < 45)
%if %{python_version_nodots} < 313
Requires: python-typing-extensions >= 4.9
%endif
Provides: pyOpenSSL = %{version}
Provides: pyopenssl = %{version}-%release
%if %{without test}
@ -70,17 +74,17 @@ other things) a cffi-based interface to OpenSSL.
%autosetup -p1 -n pyopenssl-%{version}
%build
%python_build
%pyproject_wheel
%install
%if !%{with test}
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%endif
%check
%if %{with test}
SKIPPED_TESTS="network"
SKIPPED_TESTS="(network or test_set_tmp_ecdh)"
%if %{__isa_bits} == 32
SKIPPED_TESTS="(network or test_verify_with_time)"
%endif
@ -93,7 +97,7 @@ export LC_ALL=en_US.UTF-8
%license LICENSE
%doc *.rst
%{python_sitelib}/OpenSSL/
%{python_sitelib}/pyOpenSSL-%{version}*-info
%{python_sitelib}/pyOpenSSL-%{version}.dist-info
%endif
%changelog