File python-osc-tiny.spec of Package python-osc-tiny
#
# spec file for package python-osc-tiny
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define skip_python2 1
Name: python-osc-tiny
Version: 0.7.12
Release: 0
Summary: Client API for openSUSE BuildService
License: MIT
Group: Development/Languages/Python
URL: https://github.com/crazyscientist/osc-tiny
Source: https://files.pythonhosted.org/packages/source/o/osc-tiny/osc-tiny-%{version}.tar.gz
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module responses}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-PyYAML
Requires: python-lxml
Requires: python-python-dateutil
Requires: python-pytz
Requires: python-requests
Suggests: openssh
BuildArch: noarch
# Using 'if' instead of 'with' because the latter requires rpm >= 4.14
%if 0%{?suse_version} >= 1550
BuildRequires: %{python_module cached-property if %python-base < 3.8}
%else
BuildRequires: %{python_module cached-property}
%endif
Requires: python3-cached-property
%python_subpackages
%description
OSC Tiny provides a minimalistic, transparent and class based client for
accessing the OpenBuildService API.
For further details see:
* https://osc-tiny.readthedocs.io/en/latest/
* https://openbuildservice.org/
* https://build.opensuse.org/apidocs/index
%prep
%setup -q -n osc-tiny-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*
%changelog