forked from pool/python-tasklib
- Fix up all the dependencies and enable testing
- Add patch disabling one test that is specific to windows only: * disable-windows-test.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tasklib?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
5b388d2255
commit
a52efe9b6a
@@ -25,10 +25,17 @@ License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/robgolding63/tasklib
|
||||
Source: https://files.pythonhosted.org/packages/source/t/tasklib/tasklib-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
Patch0: disable-windows-test.patch
|
||||
BuildRequires: %{python_module pytz}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six >= 1.4}
|
||||
BuildRequires: %{python_module tzlocal}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: taskwarrior >= 2.1.0
|
||||
Requires: python-pytz
|
||||
Requires: python-six >= 1.4
|
||||
Requires: python-tzlocal
|
||||
Requires: taskwarrior >= 2.1.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -39,6 +46,7 @@ databases, using a queryset API similar to that of Django's ORM.
|
||||
|
||||
%prep
|
||||
%setup -q -n tasklib-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -47,6 +55,10 @@ databases, using a queryset API similar to that of Django's ORM.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
export LANG="en_US.UTF8"
|
||||
%python_exec -m unittest discover -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc README.rst
|
||||
|
Reference in New Issue
Block a user