forked from pool/python-trustme
Matej Cepl
c2d45b9828
- Update to 0.9.0 * Bump types-cryptography from 3.3.3 to 3.3.5 (#342) * Bump types-pyopenssl from 20.0.4 to 20.0.5 (#343) * Add type annotations (#341) * Bump charset-normalizer from 2.0.3 to 2.0.4 (#340) * Bump sphinx from 4.1.1 to 4.1.2 * Bump charset-normalizer from 2.0.2 to 2.0.3 * Bump idna from 2.10 to 3.2 * Bump sphinx from 4.1.0 to 4.1.1 * Bump charset-normalizer from 2.0.1 to 2.0.2 * Bump requests from 2.25.1 to 2.26.0 (#333) * Bump sphinx from 4.0.2 to 4.1.0 * Bump urllib3 from 1.26.5 to 1.26.6 * Bump version to v0.8.0+dev - from version 0.8.0 * retry codecov more * try codecov harder * require codecov in ci * Update tests/test_trustme.py * close the wrapped sockets to prevent Unraisable ResourceWarnings * Adjust tests * py3.10 needs a new version of pytest * Set correct KU and EKU extensions * test on py 3.10 * Bump pytest-cov from 2.12.0 to 2.12.1 * Bump certifi from 2020.12.5 to 2021.5.30 * Bump urllib3 from 1.26.4 to 1.26.5 * Bump sphinxcontrib-htmlhelp from 1.0.3 to 2.0.0 * Bump sphinxcontrib-serializinghtml from 1.1.4 to 1.1.5 * Bump jinja2 from 2.11.3 to 3.0.1 OBS-URL: https://build.opensuse.org/request/show/915093 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-trustme?expand=0&rev=16
76 lines
2.2 KiB
RPMSpec
76 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-trustme
|
|
#
|
|
# Copyright (c) 2021 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without python2
|
|
Name: python-trustme
|
|
Version: 0.9.0
|
|
Release: 0
|
|
Summary: Fake CA provider for Python tests
|
|
License: Apache-2.0 OR MIT
|
|
URL: https://github.com/python-trio/trustme
|
|
Source: https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz
|
|
BuildRequires: %{python_module cryptography}
|
|
BuildRequires: %{python_module idna}
|
|
BuildRequires: %{python_module pyOpenSSL}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module service_identity}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-cryptography
|
|
Requires: python-idna
|
|
BuildArch: noarch
|
|
%if %{with python2}
|
|
BuildRequires: python-futures
|
|
BuildRequires: python-ipaddress
|
|
%endif
|
|
%ifpython2
|
|
Requires: python-ipaddress
|
|
%endif
|
|
%python_subpackages
|
|
|
|
%description
|
|
trustme is a Python package that provides a fake certificate
|
|
authority (CA) that can be used to generate "fake" TLS certs to use
|
|
in tests. The CA and certificates are fake in the sense of
|
|
https://martinfowler.com/bliki/TestDouble.html, that is, the trust
|
|
circle of the CA is limited to the test environment.
|
|
|
|
%prep
|
|
%setup -q -n trustme-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%license LICENSE.MIT
|
|
%license LICENSE.APACHE2
|
|
%doc README.rst
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|