Files
python-pykka/python-pykka.spec

68 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

#
2022-05-27 12:32:35 +00:00
# spec file for package python-pykka
#
# Copyright (c) 2026 SUSE LLC and contributors
#
# 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
2022-05-27 12:32:35 +00:00
%define modname pykka
%define skip_python36 1
2022-05-27 12:32:35 +00:00
Name: python-pykka
Version: 4.4.1
Release: 0
Summary: A Python implementation of the actor model
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/jodal/pykka
Source: https://files.pythonhosted.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
Accepting request 1319989 from home:mgrossu:branches:devel:languages:python - Update to 4.4.0: * Remove pykka.__version__. Use importlib.metadata.version("pykka") * Port docs from Sphinx to Mkdocs and generally refresh docs - Update to 4.3.0: * Remove support for Python 3.9 as it reaches end-of-life next month * Only allow one of Future's set(), set_exception(), and set_get_hook() methods to be called * Change ThreadingFuture[T] to use a threading.Condition instead of queue.Queue * Only call future hook once, even if it returns None * Use the standard library's tomllib in the docs build on Python 3.11+, removing a dependency om tomli - Update to 4.2.0: * Switched build backend from poetry to hatchling. * Switched the docs build from using the toml library to the better maintained tomli library. * Development is now done using uv and tox-uv, but you should not need uv to package pykka. * Updated some dev tooling, including ruff and pyright. * Drop pydantic as a test dependency, as this made Pykka quite a lot harder to package. * Add Python 3.14 pre-releases to the CI test matrix. * Move tox' config into pyproject.toml * Use Trusted Publishing to when releasing to PyPI - Update to 4.1.0: * Remove support for Python 3.8. It reaches end-of-life later this month * Support Python 3.13. No changes required * Fix proxy introspection breaking if an actor attribute is a Pydantic model - Removed the line from spec files to remove the .gitignore file - Added BuildRequires: %{python_module hatchling} as backend for build - Update to 4.4.0: * Remove pykka.__version__. Use importlib.metadata.version("pykka") * Port docs from Sphinx to Mkdocs and generally refresh docs - Update to 4.3.0: * Remove support for Python 3.9 as it reaches end-of-life next month OBS-URL: https://build.opensuse.org/request/show/1319989 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pykka?expand=0&rev=14
2025-11-25 12:54:47 +00:00
BuildRequires: %{python_module hatchling}
2022-05-27 12:32:35 +00:00
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
2022-05-27 12:32:35 +00:00
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
2022-05-27 12:32:35 +00:00
Provides: python-Pykka < %{version}-%{release}
Obsoletes: python-Pykka = %{version}-%{release}
%python_subpackages
%description
Pykka is a Python implementation of the `actor model
<http://en.wikipedia.org/wiki/Actor_model>`_. The actor model introduces some
rules to control the sharing of state and cooperation between execution
units, with which one can build concurrent applications.
%prep
2022-05-27 12:32:35 +00:00
%autosetup -p1 -n %{modname}-%{version}
%build
2022-05-27 12:32:35 +00:00
%pyproject_wheel
%install
2022-05-27 12:32:35 +00:00
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
2022-05-27 12:32:35 +00:00
%doc README.md docs/
%{python_sitelib}/pykka
%{python_sitelib}/pykka-%{version}*-info
%changelog