1
0

7 Commits

Author SHA256 Message Date
a67245abad Accepting request 1193797 from devel:languages:python
- Update to 0.9.1:
  * Fixed an issue for CPython 3.13 where `ssl.SSLSocket` and `ssl.SSLObject`
    certificate chain APIs would return different types.
  * Added support for Python 3.13.
  * Fixed loading additional certificates on macOS.
- Drop patch no-network-testing.patch, not required.

OBS-URL: https://build.opensuse.org/request/show/1193797
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-truststore?expand=0&rev=4
2024-08-14 12:15:46 +00:00
3b4e8ac30a Accepting request 1155034 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1155034
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-truststore?expand=0&rev=3
2024-03-05 17:51:39 +00:00
9f55bc4a88 Accepting request 1154259 from home:gladiac:branches:devel:languages:python
- Use sle15_python_module_pythons

OBS-URL: https://build.opensuse.org/request/show/1154259
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-truststore?expand=0&rev=5
2024-03-05 09:33:39 +00:00
4a162a8fe7 Accepting request 1114538 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1114538
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-truststore?expand=0&rev=2
2023-10-02 18:06:13 +00:00
c46f8273c8 Accepting request 1114433 from home:mimi_vx:branches:devel:languages:python
- 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

OBS-URL: https://build.opensuse.org/request/show/1114433
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-truststore?expand=0&rev=3
2023-09-30 13:15:18 +00:00
fe4cc1c43f Accepting request 991821 from devel:languages:python
Will be used by the next version of pip.

OBS-URL: https://build.opensuse.org/request/show/991821
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-truststore?expand=0&rev=1
2022-08-01 19:32:30 +00:00
695348e7e0 - Initial packaging effort for truststore 0.4.0.
- Add no-network-testing.patch to skip networked tests
  (gh#sethmlarson/truststore#65).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-truststore?expand=0&rev=1
2022-07-29 09:22:43 +00:00
2 changed files with 0 additions and 116 deletions

View File

@@ -1,113 +0,0 @@
---
pyproject.toml | 3 +++
test_truststore.py | 7 +++----
2 files changed, 6 insertions(+), 4 deletions(-)
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",
+]
[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
@dataclass
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":
)
)
-failure_hosts = pytest.mark.parametrize(
- "failure", failure_hosts_list, ids=attrgetter("host")
-)
+failure_hosts = pytest.mark.network
@pytest.fixture(scope="session")
@@ -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

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c862292f8d136bfcf2a7827a1fd1c1b27944a982741205fb466005673b570df8
size 25619