c2e481a
%global sum Python Task Warrior library
c2e481a
4b0b7a5
%global forgeurl https://github.com/GothenburgBitFactory/tasklib
4b0b7a5
4b0b7a5
4b0b7a5
Name:           python-tasklib
2f01d4f
Version:        2.5.1
e39096f
Release:        %autorelease
c2e481a
Summary:        %{sum}
c2e481a
c2e481a
License:        MIT
4b0b7a5
4b0b7a5
URL:            %{forgeurl}
4b0b7a5
%global tag  %{version}
4b0b7a5
%forgemeta
4b0b7a5
Source0:        %forgesource
c2e481a
c2e481a
BuildArch:      noarch
1a9b1e3
BuildRequires:  python3-devel
c2e481a
# Tests
2f01d4f
BuildRequires:  python3-pytest
4b0b7a5
BuildRequires:  task >= 2.4
c2e481a
c2e481a
c2e481a
%description
c2e481a
tasklib is a Python library for interacting with taskwarrior databases, using a
4b0b7a5
queryset API similar to that of Django's ORM.
c2e481a
4b0b7a5
Supports Python 3.5+, taskwarrior 2.4+.
c2e481a
Older versions of taskwarrior are untested and may not work.
c2e481a
4b0b7a5
%package -n python3-tasklib
c2e481a
Summary:        %{sum}
4b0b7a5
Requires:       task >= 2.4
c2e481a
4b0b7a5
%description -n python3-tasklib
c2e481a
tasklib is a Python library for interacting with taskwarrior databases, using a
4b0b7a5
queryset API similar to that of Django's ORM.
c2e481a
4b0b7a5
Supports Python 3.5+, taskwarrior 2.4+.
c2e481a
Older versions of taskwarrior are untested and may not work.
c2e481a
c2e481a
c2e481a
%prep
4b0b7a5
%forgesetup
4b0b7a5
4b0b7a5
%generate_buildrequires
4b0b7a5
%pyproject_buildrequires -r
c2e481a
c2e481a
%build
4b0b7a5
%pyproject_wheel
c2e481a
c2e481a
%install
4b0b7a5
%pyproject_install
4b0b7a5
%pyproject_save_files tasklib
4b0b7a5
4b0b7a5
%check
2f01d4f
%pytest tasklib/tests.py
4b0b7a5
%pyproject_check_import
c2e481a
4b0b7a5
%files -n python3-tasklib -f %{pyproject_files}
c2e481a
%doc README.rst
c2e481a
c2e481a
%changelog
e39096f
%autochangelog