# # spec file for package python-osc-tiny # # Copyright (c) 2025 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 %{?sle15allpythons} Name: python-osc-tiny Version: 0.10.8 Release: 0 Summary: Client API for openSUSE BuildService License: MIT Group: Development/Languages/Python URL: https://github.com/SUSE/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 pip} 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: %{python_module urllib3} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-PyYAML Requires: python-lxml Requires: python-python-dateutil Requires: python-pytz Requires: python-requests Requires: python-urllib3 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 %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 %autosetup -p1 -n osc_tiny-%{version} %build %pyproject_wheel %install %pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/osctiny %{python_sitelib}/osc_tiny-%{version}*-info %changelog