# # 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_with python2 %global skip_python2 1 %define skip_python36 1 %define skip_python39 1 Name: python-trustme Version: 0.9.0 Release: 1.2 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 * Mon Aug 30 2021 John Paul Adrian Glaubitz - 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 * Bump sphinx from 4.0.1 to 4.0.2 * Bump pytest-cov from 2.11.1 to 2.12.0 * Bump docutils from 0.16 to 0.17.1 * Bump sphinx from 4.0.0 to 4.0.1 * Bump service-identity from 18.1.0 to 21.1.0 * Bump sphinx from 3.5.4 to 4.0.0 * Bump attrs from 21.1.0 to 21.2.0 * Bump attrs from 20.3.0 to 21.1.0 * Bump six from 1.15.0 to 1.16.0 * Bump pygments from 2.8.1 to 2.9.0 * Upgrade to GitHub-native Dependabot * Bump babel from 2.9.0 to 2.9.1 * Bump sphinx from 3.5.3 to 3.5.4 * Bump docutils from 0.16 to 0.17 * Bump sphinx from 3.5.2 to 3.5.3 * Mention not_after in `issue_cert` signature * Bump urllib3 from 1.26.3 to 1.26.4 * Bump pygments from 2.8.0 to 2.8.1 * Bump sphinx from 3.5.1 to 3.5.2 * Add newsfragment and Python doc for --expires-on * Add an option to set when the certificate should expire (--expires-on) * Bump coverage from 5.4 to 5.5 * Bump sphinx from 3.5.0 to 3.5.1 * Clarify project vision in README * Bump sphinx from 3.4.3 to 3.5.0 * Bump pygments from 2.7.4 to 2.8.0 * Bump cffi from 1.14.4 to 1.14.5 * Bump version to 0.7.0 * Sun May 9 2021 Dirk Müller - update to 0.7.0: - trustme can now be used a command line interface with ``python -m trustme``. Get the help with ``python -m trustme --help``. * Thu Mar 12 2020 Tomáš Chvátal - Fix build without python2 * Fri Feb 7 2020 Marketa Calabkova - update to 0.6.0 * Allow specifying organization and organization unit in CA and issued certs * Added attr CA.from_pem to import an existing certificate authority; this allows migrating to trustme step-by-step. * Tue Jun 4 2019 Ondřej Súkup - update to 0.5.2 * support cryptography-2.7 * Fri Apr 26 2019 pgajdos@suse.com - version update to 0.5.1 * Update key size to 2048 bits * Mon Mar 18 2019 Jan Engelhardt - Replace nonsense summary. Trim storytelling write style from description. * Wed Feb 27 2019 Ondřej Súkup - initial package