forked from pool/python-signedjson
Accepting request 827110 from home:jayvdb:py-submit
Replace nose with pytest OBS-URL: https://build.opensuse.org/request/show/827110 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-signedjson?expand=0&rev=14
This commit is contained in:
committed by
Git OBS Bridge
parent
786d1a3322
commit
87c1f754de
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 16 20:48:03 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Replace nose with pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 15 13:50:16 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
@@ -28,13 +28,7 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/matrix-org/%{name}
|
||||
Source0: https://files.pythonhosted.org/packages/source/s/signedjson/%{modname}-%{version}.tar.gz
|
||||
Patch0: no-importlib-on-py38.patch
|
||||
BuildRequires: %{python_module PyNaCl >= 0.3.0}
|
||||
BuildRequires: %{python_module canonicaljson >= 1.0.0}
|
||||
BuildRequires: %{python_module importlib-metadata}
|
||||
BuildRequires: %{python_module nose}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module typing_extensions >= 3.5}
|
||||
BuildRequires: %{python_module unpaddedbase64 >= 1.0.1}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-PyNaCl >= 0.3.0
|
||||
@@ -43,6 +37,14 @@ Requires: python-importlib-metadata
|
||||
Requires: python-typing_extensions >= 3.5
|
||||
Requires: python-unpaddedbase64 >= 1.0.1
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module PyNaCl >= 0.3.0}
|
||||
BuildRequires: %{python_module canonicaljson >= 1.0.0}
|
||||
BuildRequires: %{python_module importlib-metadata}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module typing_extensions >= 3.5}
|
||||
BuildRequires: %{python_module unpaddedbase64 >= 1.0.1}
|
||||
# /SECTION
|
||||
%if %{with python2}
|
||||
BuildRequires: python2-typing >= 3.5
|
||||
%endif
|
||||
@@ -69,10 +71,10 @@ Features:
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand nosetests-%{$python_bin_suffix}
|
||||
%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Reference in New Issue
Block a user