Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-truststore for 
openSUSE:Factory checked in at 2023-10-02 20:06:13
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-truststore (Old)
 and      /work/SRC/openSUSE:Factory/.python-truststore.new.28202 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-truststore"

Mon Oct  2 20:06:13 2023 rev:2 rq:1114538 version:0.8.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-truststore/python-truststore.changes      
2022-08-01 21:33:17.466154309 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-truststore.new.28202/python-truststore.changes
   2023-10-02 20:08:43.495677804 +0200
@@ -1,0 +2,15 @@
+Fri Sep 29 17:56:07 UTC 2023 - Ondřej Súkup <mimi...@gmail.com>
+
+- update to 0.8.0
+- refresh no-network-testing.patch
+ * Added documentation for how to use truststore with urllib3,
+   Requests, aiohttp, and pip.
+ * Added pass-through implementations for many ssl.SSLContext methods
+   like load_cert_chain(), set_alpn_protocols(), etc.
+ * Added inject_into_ssl() and extract_from_ssl() to enable Truststore
+   for all packages using ssl.SSLContext automatically
+ * Added support for setting check_hostname, verify_mode, and verify_flags.
+ * Fixed issue where a RecursionError that would be raised when setting
+   SSLContext.minimum_version or .maximum_version
+
+-------------------------------------------------------------------

Old:
----
  truststore-0.4.0.tar.gz

New:
----
  truststore-0.8.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-truststore.spec ++++++
--- /var/tmp/diff_new_pack.laP66r/_old  2023-10-02 20:08:44.523714775 +0200
+++ /var/tmp/diff_new_pack.laP66r/_new  2023-10-02 20:08:44.523714775 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-truststore
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,12 +16,9 @@
 #
 
 
-%define skip_python2 1
-%define skip_python38 1
 %define skip_python39 1
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-truststore
-Version:        0.4.0
+Version:        0.8.0
 Release:        0
 Summary:        Verify certificates using OS trust stores
 License:        MIT
@@ -31,11 +28,14 @@
 # skip tests requiring network access
 Patch0:         no-network-testing.patch
 BuildRequires:  %{python_module aiohttp}
+BuildRequires:  %{python_module flaky}
 BuildRequires:  %{python_module flit-core}
+BuildRequires:  %{python_module httpx}
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest-asyncio}
 BuildRequires:  %{python_module pytest-httpserver}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module requests}
 BuildRequires:  %{python_module trustme}
 BuildRequires:  %{python_module urllib3}
 BuildRequires:  %{python_module wheel}

++++++ no-network-testing.patch ++++++
--- /var/tmp/diff_new_pack.laP66r/_old  2023-10-02 20:08:44.543715494 +0200
+++ /var/tmp/diff_new_pack.laP66r/_new  2023-10-02 20:08:44.547715638 +0200
@@ -3,27 +3,66 @@
  test_truststore.py |    7 +++----
  2 files changed, 6 insertions(+), 4 deletions(-)
 
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -26,3 +26,6 @@ Home = "https://github.com/sethmlarson/t
- [tool.pytest.ini_options]
- asyncio_mode = "strict"
- filterwarnings = ["error"]
+Index: truststore-0.8.0/pyproject.toml
+===================================================================
+--- truststore-0.8.0.orig/pyproject.toml
++++ truststore-0.8.0/pyproject.toml
+@@ -26,6 +26,9 @@ classifiers = [
+ ]
+ dynamic = ["version", "description"]
+ requires-python = ">= 3.10"
 +markers = [
 +    "network: test case requires network connection",
 +]
---- a/test_truststore.py
-+++ b/test_truststore.py
-@@ -21,7 +21,7 @@ import truststore
+ 
+ [project.urls]
+ Source = "https://github.com/sethmlarson/truststore";
+@@ -38,3 +41,6 @@ filterwarnings = [
+   # See: aio-libs/aiohttp#7545
+   "ignore:.*datetime.utcfromtimestamp().*:DeprecationWarning",
+ ]
++markers = [
++   "network: test case requires network connection",
++]
+Index: truststore-0.8.0/tests/conftest.py
+===================================================================
+--- truststore-0.8.0.orig/tests/conftest.py
++++ truststore-0.8.0/tests/conftest.py
+@@ -18,7 +18,7 @@ SUBPROCESS_TIMEOUT = 5
+ original_SSLContext = ssl.SSLContext
+ 
+ 
+-successful_hosts = pytest.mark.parametrize("host", ["example.com", "1.1.1.1"])
++successful_hosts = pytest.mark.network
+ 
+ logger = logging.getLogger("aiohttp.web")
+ 
+Index: truststore-0.8.0/tests/test_api.py
+===================================================================
+--- truststore-0.8.0.orig/tests/test_api.py
++++ truststore-0.8.0/tests/test_api.py
+@@ -27,8 +27,8 @@ pytestmark = pytest.mark.flaky
  # if the client drops the connection due to a cert verification error
  socket.setdefaulttimeout(10)
  
 -successful_hosts = pytest.mark.parametrize("host", ["example.com", "1.1.1.1"])
-+successful_hosts = pytest.mark.network
  
++successful_hosts = pytest.mark.network
  
  @dataclass
-@@ -113,9 +113,7 @@ if platform.system() != "Linux":
+ class FailureHost:
+@@ -118,9 +118,7 @@ failure_hosts_list = [
+     ),
+ ]
+ 
+-failure_hosts_no_revocation = pytest.mark.parametrize(
+-    "failure", failure_hosts_list.copy(), ids=attrgetter("host")
+-)
++failure_hosts_no_revocation = pytest.mark.network
+ 
+ if platform.system() != "Linux":
+     failure_hosts_list.append(
+@@ -139,9 +137,7 @@ if platform.system() != "Linux":
          )
      )
  
@@ -34,12 +73,42 @@
  
  
  @pytest.fixture(scope="session")
-@@ -242,6 +240,7 @@ def test_trustme_cert_loaded_via_capath(
+@@ -317,7 +313,7 @@ def test_trustme_cert_loaded_via_capath(
+         assert resp.status == 200
          assert len(resp.data) > 0
  
- 
+-
 +@pytest.mark.network
  def test_trustme_cert_still_uses_system_certs(trustme_ca):
      ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
      trustme_ca.configure_trust(ctx)
+Index: truststore-0.8.0/tests/test_sslcontext.py
+===================================================================
+--- truststore-0.8.0.orig/tests/test_sslcontext.py
++++ truststore-0.8.0/tests/test_sslcontext.py
+@@ -7,7 +7,7 @@ from urllib3.exceptions import InsecureR
+ 
+ import truststore
+ 
+-
++@pytest.mark.network
+ def test_minimum_maximum_version():
+     ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
+     ctx.maximum_version = ssl.TLSVersion.TLSv1_2
+@@ -24,6 +24,7 @@ def test_minimum_maximum_version():
+     assert ctx.maximum_version == ssl.TLSVersion.TLSv1_2
+ 
+ 
++@pytest.mark.network
+ def test_check_hostname_false():
+     ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
+     assert ctx.check_hostname is True
+@@ -35,6 +36,7 @@ def test_check_hostname_false():
+         assert "match" in str(e.value)
+ 
+ 
++@pytest.mark.network
+ def test_verify_mode_cert_none():
+     ctx = truststore.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
+     assert ctx.check_hostname is True
 

++++++ truststore-0.4.0.tar.gz -> truststore-0.8.0.tar.gz ++++++
++++ 2799 lines of diff (skipped)

Reply via email to