15
0

- update to 0.10.1:

* Fixed the patching of Requests' globally-cached
    `ssl.SSLContext` object to work automagically with
    ``truststore.inject_into_ssl()`` regardless of import-order.
  * Speed up import times by skipping feature-checking for known
    Python implementations (CPython and PyPy).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-truststore?expand=0&rev=13
This commit is contained in:
2025-02-24 10:44:31 +00:00
committed by Git OBS Bridge
commit fb3e1ebd8c
9 changed files with 292 additions and 0 deletions

69
python-truststore.spec Normal file
View File

@@ -0,0 +1,69 @@
#
# spec file for package python-truststore
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-truststore
Version: 0.10.1
Release: 0
Summary: Verify certificates using OS trust stores
License: MIT
URL: https://github.com/sethmlarson/truststore
Source: https://github.com/sethmlarson/truststore/archive/refs/tags/v%{version}.tar.gz#/truststore-%{version}.tar.gz
BuildRequires: %{python_module aiohttp}
BuildRequires: %{python_module flaky}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module httpx}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyOpenSSL}
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}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
Verify certificates using OS trust stores. Supports macOS,
Windows, and Linux (with OpenSSL). This project should be
considered experimental.
%prep
%autosetup -p1 -n truststore-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -s -k 'not internet and not test_wrong_host_succeeds_with_hostname_verification_disabled'
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/truststore
%{python_sitelib}/truststore-%{version}.dist-info
%changelog