Accepting request 827113 from home:jayvdb:py-submit
Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827113 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rsa?expand=0&rev=32
This commit is contained in:
parent
06f1634199
commit
916f62aa6a
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 16 21:04:02 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Replace setup.py test with pytest
|
||||||
|
- Remove %bcond_without tests
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 23 15:36:45 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Tue Jun 23 15:36:45 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -17,18 +17,14 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without tests
|
|
||||||
Name: python-rsa
|
Name: python-rsa
|
||||||
Version: 4.6
|
Version: 4.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Pure-Python RSA Implementation
|
Summary: Pure-Python RSA Implementation
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://stuvel.eu/rsa
|
URL: https://stuvel.eu/rsa
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/rsa/rsa-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module mypy}
|
|
||||||
BuildRequires: %{python_module pyasn1 >= 0.1.3}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -37,9 +33,12 @@ Requires(post): update-alternatives
|
|||||||
Requires(pre): coreutils
|
Requires(pre): coreutils
|
||||||
Requires(preun): update-alternatives
|
Requires(preun): update-alternatives
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with tests}
|
# SECTION test requirements
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module mock}
|
||||||
%endif
|
BuildRequires: %{python_module mypy}
|
||||||
|
BuildRequires: %{python_module pyasn1 >= 0.1.3}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
# /SECTION
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -72,11 +71,9 @@ export LC_ALL=en_US.utf8
|
|||||||
%preun
|
%preun
|
||||||
%python_uninstall_alternative pyrsa-priv2pub
|
%python_uninstall_alternative pyrsa-priv2pub
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
export LC_ALL=en_US.utf8
|
export LC_ALL=en_US.utf8
|
||||||
%python_exec setup.py test
|
%pytest
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user