14
0

Accepting request 827208 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/827208
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytimeparse?expand=0&rev=3
This commit is contained in:
2020-08-17 12:40:18 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 12 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sun Aug 16 21:09:10 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Remove %bcond_without test
- Replace nose with pytest
- Tidy spec
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Dec 4 12:53:15 UTC 2018 - Matej Cepl <mcepl@suse.com> Tue Dec 4 12:53:15 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-pytimeparse # spec file for package python-pytimeparse
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2020 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -17,23 +17,19 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-pytimeparse Name: python-pytimeparse
Version: 1.1.8 Version: 1.1.8
Release: 0 Release: 0
Summary: Time expression parser Summary: Time expression parser
License: MIT License: MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/wroberts/pytimeparse URL: https://github.com/wroberts/pytimeparse
Source: https://files.pythonhosted.org/packages/source/p/pytimeparse/pytimeparse-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/p/pytimeparse/pytimeparse-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%if %{with test}
BuildRequires: %{python_module nose}
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -60,6 +56,7 @@ datetime module in the standard library.
%prep %prep
%setup -q -n pytimeparse-%{version} %setup -q -n pytimeparse-%{version}
sed -i '/nose/d' setup.py
%build %build
%python_build %python_build
@@ -68,13 +65,10 @@ datetime module in the standard library.
%python_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check %check
%python_exec setup.py test %pytest pytimeparse/tests/test*.py
%endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-)
%doc README.rst %doc README.rst
%license LICENSE.rst %license LICENSE.rst
%{python_sitelib}/* %{python_sitelib}/*