From 8e26884f20367547ccffe89ea3ddeefbfd4f28459aac8230c714edb00ba2f3c3 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 29 Jan 2024 21:23:44 +0000 Subject: [PATCH] - update to 24.0.0: * Added OpenSSL.SSL.Connection.get_selected_srtp_profile to determine which SRTP profile was negotiated. #1279. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyOpenSSL?expand=0&rev=110 --- pyOpenSSL-23.3.0.tar.gz | 3 --- pyOpenSSL-24.0.0.tar.gz | 3 +++ python-pyOpenSSL.changes | 7 +++++++ python-pyOpenSSL.spec | 16 ++++++++-------- skip-networked-test.patch | 39 ++++++++++++++++++++++----------------- 5 files changed, 40 insertions(+), 28 deletions(-) delete mode 100644 pyOpenSSL-23.3.0.tar.gz create mode 100644 pyOpenSSL-24.0.0.tar.gz diff --git a/pyOpenSSL-23.3.0.tar.gz b/pyOpenSSL-23.3.0.tar.gz deleted file mode 100644 index 5e4801e..0000000 --- a/pyOpenSSL-23.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6b2cba5cc46e822750ec3e5a81ee12819850b11303630d575e98108a079c2b12 -size 183043 diff --git a/pyOpenSSL-24.0.0.tar.gz b/pyOpenSSL-24.0.0.tar.gz new file mode 100644 index 0000000..273e392 --- /dev/null +++ b/pyOpenSSL-24.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6aa33039a93fffa4563e655b61d11364d01264be8ccb49906101e02a334530bf +size 183238 diff --git a/python-pyOpenSSL.changes b/python-pyOpenSSL.changes index 57b9f60..f1cb656 100644 --- a/python-pyOpenSSL.changes +++ b/python-pyOpenSSL.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Jan 29 21:16:31 UTC 2024 - Dirk Müller + +- update to 24.0.0: + * Added OpenSSL.SSL.Connection.get_selected_srtp_profile to + determine which SRTP profile was negotiated. #1279. + ------------------------------------------------------------------- Mon Nov 27 08:52:41 UTC 2023 - Dirk Müller diff --git a/python-pyOpenSSL.spec b/python-pyOpenSSL.spec index 35451f6..cb3ee2d 100644 --- a/python-pyOpenSSL.spec +++ b/python-pyOpenSSL.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pyOpenSSL # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,7 +26,7 @@ %endif %{?sle15_python_module_pythons} Name: python-pyOpenSSL%{psuffix} -Version: 23.3.0 +Version: 24.0.0 Release: 0 Summary: Python wrapper module around the OpenSSL library License: Apache-2.0 @@ -39,8 +39,12 @@ BuildRequires: %{python_module cffi} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-cffi +Requires: (python-cryptography >= 41.0.5 with python-cryptography < 43) +Provides: pyOpenSSL = %{version} +BuildArch: noarch %if %{with test} -BuildRequires: %{python_module cryptography >= 41.0.5 with %python-cryptography < 42} +BuildRequires: %{python_module cryptography >= 41.0.5 with %python-cryptography < 43} BuildRequires: %{python_module flaky} BuildRequires: %{python_module pretend} BuildRequires: %{python_module pyOpenSSL >= %version} @@ -48,10 +52,6 @@ BuildRequires: %{python_module pytest >= 3.0.1} BuildRequires: ca-certificates-mozilla BuildRequires: openssl %endif -Requires: python-cffi -Requires: (python-cryptography >= 41.0.5 with python-cryptography < 42) -Provides: pyOpenSSL = %{version} -BuildArch: noarch %python_subpackages %description diff --git a/skip-networked-test.patch b/skip-networked-test.patch index d02761d..9bb78c4 100644 --- a/skip-networked-test.patch +++ b/skip-networked-test.patch @@ -1,8 +1,8 @@ -Index: pyOpenSSL-23.2.0/tests/test_ssl.py +Index: pyOpenSSL-24.0.0/tests/test_ssl.py =================================================================== ---- pyOpenSSL-23.2.0.orig/tests/test_ssl.py -+++ pyOpenSSL-23.2.0/tests/test_ssl.py -@@ -1252,6 +1252,7 @@ class TestContext: +--- pyOpenSSL-24.0.0.orig/tests/test_ssl.py ++++ pyOpenSSL-24.0.0/tests/test_ssl.py +@@ -1250,6 +1250,7 @@ class TestContext: reason="set_default_verify_paths appears not to work on Windows. " "See LP#404343 and LP#404344.", ) @@ -10,21 +10,26 @@ Index: pyOpenSSL-23.2.0/tests/test_ssl.py def test_set_default_verify_paths(self): """ `Context.set_default_verify_paths` causes the platform-specific CA -Index: pyOpenSSL-23.2.0/setup.cfg +Index: pyOpenSSL-24.0.0/setup.cfg =================================================================== ---- pyOpenSSL-23.2.0.orig/setup.cfg -+++ pyOpenSSL-23.2.0/setup.cfg -@@ -1,6 +1,8 @@ - [tool:pytest] - addopts = "-r s --strict-markers" - testpaths = tests -+markers = -+ network: test case requires network connection - - [metadata] - license_file = LICENSE -@@ -15,4 +17,3 @@ doc_files = doc/_build/html +--- pyOpenSSL-24.0.0.orig/setup.cfg ++++ pyOpenSSL-24.0.0/setup.cfg +@@ -11,4 +11,3 @@ doc_files = doc/_build/html [egg_info] tag_build = tag_date = 0 - +Index: pyOpenSSL-24.0.0/pyproject.toml +=================================================================== +--- pyOpenSSL-24.0.0.orig/pyproject.toml ++++ pyOpenSSL-24.0.0/pyproject.toml +@@ -42,6 +42,9 @@ ignore_missing_imports = true + [tool.pytest.ini_options] + addopts = "-r s --strict-markers" + testpaths = ["tests"] ++markers = [ ++ "network: test case requires network connection", ++] + + [tool.ruff] + select = ['E', 'F', 'I', 'W', 'UP', 'RUF']