commit d90cc25450a877d6ada1619022c143110ce8d372d10ed7f0bec4c882ba51554a Author: Dirk Mueller Date: Sun Sep 1 13:20:56 2024 +0000 Accepting request 1197945 from home:yeey:OpenWebUI needed for python-endesive OBS-URL: https://build.opensuse.org/request/show/1197945 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certvalidator?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..fcc7b97 --- /dev/null +++ b/_multibuild @@ -0,0 +1,3 @@ + + test + diff --git a/certvalidator-0.11.1.tar.gz b/certvalidator-0.11.1.tar.gz new file mode 100644 index 0000000..0773002 --- /dev/null +++ b/certvalidator-0.11.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b78767765d5bb90544f8a247936fa5efff2b34d734d96a32100ed591b095ec15 +size 422358 diff --git a/python-certvalidator.changes b/python-certvalidator.changes new file mode 100644 index 0000000..3c3296a --- /dev/null +++ b/python-certvalidator.changes @@ -0,0 +1,20 @@ +------------------------------------------------------------------- +Fri Aug 30 19:59:59 UTC 2024 - Aline Werner + +- Update copyright. + +------------------------------------------------------------------- +Fri Aug 30 18:09:02 UTC 2024 - Aline Werner + +- Disable failing tests related to issue https://github.com/wbond/certvalidator/issues/45. +- Substitute deprecated unittest.TestCase.assertRaisesRegexp. + +------------------------------------------------------------------- +Fri Aug 30 16:22:54 UTC 2024 - Aline Werner + +- Add %{sle15_python_module_pythons} macro. + +------------------------------------------------------------------- +Wed Jun 19 20:00:00 UTC 2019 - cunix@mail.de + +- Initial package diff --git a/python-certvalidator.spec b/python-certvalidator.spec new file mode 100644 index 0000000..a3912d8 --- /dev/null +++ b/python-certvalidator.spec @@ -0,0 +1,94 @@ +# +# spec file for package python-certvalidator +# +# 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 +# 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} + +%global flavor @BUILD_FLAVOR@%{nil} +%if "%{flavor}" == "test" +%define psuffix -test +%bcond_without test +%else +%define psuffix %{nil} +%bcond_with test +%endif + +Name: python-certvalidator%{psuffix} +Version: 0.11.1 +Release: 0 +Summary: X.509 certificates validation +License: MIT +Group: Development/Languages/Python +URL: https://github.com/wbond/certvalidator +Source: https://github.com/wbond/certvalidator/archive/%{version}.tar.gz#/certvalidator-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module asn1crypto >= 0.18.1} +BuildRequires: %{python_module oscrypto >= 0.16.1} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module pytest} +BuildRequires: ca-certificates +BuildRequires: ca-certificates-mozilla +%endif +BuildArch: noarch +Requires: python-asn1crypto >= 0.18.1 +Requires: python-oscrypto >= 0.16.1 +%python_subpackages + +%description +A Python library for validating X.509 certificates or paths. Supports various +options, including: validation at a specific moment in time, whitelisting and +revocation checks. + +%prep +%autosetup -p1 -n certvalidator-%{version} +# /docs has a different readme.md file - should not overwrite main readme.md +mv readme.md README.md +# Deprecation warnings/errors for unittest.TestCase.assertRaisesRegexp, using +# unittest.TestCase.assertRaisesRegex instead +sed -i 's/assertRaisesRegexp/assertRaisesRegex/g' tests/test_validate.py + +%build +%pyproject_wheel + +%if %{with test} +%check +# Disable tests that need network connection +donttest="test_fetch_crl or test_fetch_ocsp" +# Disable tests with error "PathValidationError: The path could not be +# validated because intermediate certificate 1 expired 2022-04-13 10:00:00Z" +donttest+=" or test_revocation_mode_hard or test_revocation_mode_soft" +# Failing tests related to issue https://github.com/wbond/certvalidator/issues/45 +donttest+=" or test_basic_certificate_validator_tls or test_build_paths" +%pytest -k "not ($donttest)" +%endif + +%install +%if !%{with test} +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%license LICENSE +%doc README.md changelog.md docs/* +%{python_sitelib}/certvalidator +%{python_sitelib}/certvalidator-%{version}*-info +%endif + +%changelog