Accepting request 784170 from devel:languages:python
- Fix build without python2 OBS-URL: https://build.opensuse.org/request/show/784170 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-trustme?expand=0&rev=6
This commit is contained in:
commit
95ae89d8be
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 12 07:55:07 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Fix build without python2
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 7 15:33:14 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Fri Feb 7 15:33:14 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -17,12 +17,12 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without python2
|
||||||
Name: python-trustme
|
Name: python-trustme
|
||||||
Version: 0.6.0
|
Version: 0.6.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Fake CA provider for Python tests
|
Summary: Fake CA provider for Python tests
|
||||||
License: MIT OR Apache-2.0
|
License: MIT OR Apache-2.0
|
||||||
Group: Development/Languages/Python
|
|
||||||
URL: https://github.com/python-trio/trustme
|
URL: https://github.com/python-trio/trustme
|
||||||
Source: https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/t/trustme/trustme-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module cryptography}
|
BuildRequires: %{python_module cryptography}
|
||||||
@ -32,15 +32,17 @@ BuildRequires: %{python_module pytest}
|
|||||||
BuildRequires: %{python_module service_identity}
|
BuildRequires: %{python_module service_identity}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-futures
|
|
||||||
BuildRequires: python-ipaddress
|
|
||||||
%ifpython2
|
|
||||||
Requires: python-ipaddress
|
|
||||||
%endif
|
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-cryptography
|
Requires: python-cryptography
|
||||||
Requires: python-idna
|
Requires: python-idna
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%if %{with python2}
|
||||||
|
BuildRequires: python-futures
|
||||||
|
BuildRequires: python-ipaddress
|
||||||
|
%endif
|
||||||
|
%ifpython2
|
||||||
|
Requires: python-ipaddress
|
||||||
|
%endif
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -61,7 +63,7 @@ circle of the CA is limited to the test environment.
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%python_exec -m pytest
|
%pytest
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user