11
0
Files
python-execnet/python-execnet.spec
Dirk Mueller 1714fd6a52 - update to 2.1.0:
* #243: Added main_thread_only execmodel which is derived from
    the thread execmodel and only executes remote_exec calls in the
    main thread.
  * Callers of remote_exec must use the returned channel to wait
    for a task to complete before they call remote_exec again,
    otherwise the remote_exec call will fail with a concurrent
    remote_exec would cause deadlock error. The main_thread_only
    execmodel provides solutions for #96 and
    pytest-dev/pytest-xdist#620 (pending a new pytest-xdist
    release).
  * Also fixed init_popen_io to use closefd=False for shared stdin
    and stdout file descriptors, preventing Bad file descriptor
    errors triggered by test_stdouterrin_setnull.
  * The library is now typed and the typing is exposed to
    type-checkers.
  * Re-exported Gateway, Channel, DumpError and LoadError from
    execnet. The constructors are private.
  * Fixed GatewayBase.join() timeout argument getting ignored.
  * Removed support for Python 3.7.
  * Added official support for Python 3.12.
  * Current working directory is now restored when calling ``script/socketserver.py``.
- add fix_apipkg.patch -- fixes tests with apipkg > 1.4.0
- Install a generated documentation
- Build documentation with Sphinx
- Initial packaging execnet 1.1 for openSUSE

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-execnet?expand=0&rev=24
2024-04-07 09:01:12 +00:00

69 lines
2.1 KiB
RPMSpec

#
# spec file for package python-execnet
#
# Copyright (c) 2024 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-execnet
Version: 2.1.0
Release: 0
Summary: Rapid multi-Python deployment
License: MIT
Group: Development/Libraries/Python
URL: https://github.com/pytest-dev/execnet
Source0: https://files.pythonhosted.org/packages/source/e/execnet/execnet-%{version}.tar.gz
BuildRequires: %{python_module hatch_vcs}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: procps
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
%description
execnet provides a share-nothing model with
channel-send/receive communication for distributing
execution across many Python interpreters across version,
platform and network barriers. It has a minimal and fast
API targetting the following uses:
* distribute tasks to (many) local or remote CPUs
* write and deploy hybrid multi-process applications
* write scripts to administer multiple environments
%prep
%setup -q -n execnet-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -r s -k"not test_gateway" testing
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/execnet
%{python_sitelib}/execnet-%{version}.dist-info
%changelog