Accepting request 805926 from home:bnavigator:branches:devel:languages:python
- new version needs pytest instead of nose OBS-URL: https://build.opensuse.org/request/show/805926 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-arrow?expand=0&rev=35
This commit is contained in:
parent
01f01d235f
commit
ae436f3f2b
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 15 21:33:05 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- new version needs pytest instead of nose
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 12 08:49:50 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
Tue May 12 08:49:50 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@ -41,8 +41,10 @@ BuildArch: noarch
|
|||||||
BuildRequires: %{python_module arrow == %{version}}
|
BuildRequires: %{python_module arrow == %{version}}
|
||||||
BuildRequires: %{python_module chai}
|
BuildRequires: %{python_module chai}
|
||||||
BuildRequires: %{python_module dateparser}
|
BuildRequires: %{python_module dateparser}
|
||||||
|
BuildRequires: %{python_module dateutil}
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module pytest-mock}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module pytz}
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: %{python_module simplejson}
|
BuildRequires: %{python_module simplejson}
|
||||||
%endif
|
%endif
|
||||||
@ -80,16 +82,16 @@ rm -rf arrow.egg-info
|
|||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} nosetests-%{$python_bin_suffix} -v
|
# remove pytest -cov* args. (Next release will move this to tox.ini)
|
||||||
|
rm setup.cfg
|
||||||
|
%pytest
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{without test}
|
%if %{without test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%dir %{python_sitelib}/arrow
|
%{python_sitelib}/arrow
|
||||||
%{python_sitelib}/arrow/*
|
|
||||||
%dir %{python_sitelib}/arrow-%{version}-py*.egg-info
|
|
||||||
%{python_sitelib}/arrow-%{version}-py*.egg-info
|
%{python_sitelib}/arrow-%{version}-py*.egg-info
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user