Files
python-Pebble/python-Pebble.spec
Matej Cepl aea91005f5 - Update to 5.1.1
* issue #146: fix pool hanging on pickle errors.
  * issue #147: fix pool hanging when futures are cancelled
    while large amount of data is being transferred.
- Adjust upstream source name in spec file
- Allow lower- and uppercase filenames for meta directory
- Switch build system from setuptools to pyproject.toml
  * Add python-pip and python-wheel to BuildRequires
  * Replace %python_build with %pyproject_wheel
  * Replace %python_install with %pyproject_install
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pebble?expand=0&rev=36
2025-04-23 20:20:49 +00:00

64 lines
1.8 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package python-Pebble
#
# 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/
#
%{?sle15_python_module_pythons}
Name: python-Pebble
Version: 5.1.1
Release: 0
Summary: Threading and multiprocessing eye-candy for Python
License: LGPL-3.0-only
URL: https://github.com/noxdafox/pebble
Source: https://files.pythonhosted.org/packages/source/p/pebble/pebble-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: git-core
BuildRequires: python-rpm-macros
BuildRequires: python3-base >= 3.7
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
%python_subpackages
%description
Pebble provides an API to manage threads and processes within an application.
It wraps Pythons standard library threading and multiprocessing objects.
%prep
%setup -q -n pebble-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/pebble
%{python_sitelib}/[Pp]ebble-%{version}*
%changelog