forked from pool/python-execnet
osc copypac from project:devel:languages:python package:python-execnet revision:14
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-execnet?expand=0&rev=1
This commit is contained in:
75
python-execnet.spec
Normal file
75
python-execnet.spec
Normal file
@@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package python-execnet
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# 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 http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-execnet
|
||||
Version: 1.5.0
|
||||
Release: 0
|
||||
Summary: Rapid multi-Python deployment
|
||||
License: MIT
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://codespeak.net/execnet/
|
||||
Source0: https://files.pythonhosted.org/packages/source/e/execnet/execnet-%{version}.tar.gz
|
||||
Patch0: fix_apipkg.patch
|
||||
# test requirements
|
||||
BuildRequires: %{python_module apipkg}
|
||||
BuildRequires: %{python_module base}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools_scm}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-apipkg
|
||||
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}
|
||||
%patch0 -p1
|
||||
sed -i "1d" execnet/script/shell.py execnet/script/socketserver.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
# fix non-executable-script error
|
||||
sed -i "1d" execnet/script/shell.py execnet/script/socketserver.py
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=build/lib py.test-%{$python_version} -r s -k"-test_gateway" testing
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc CHANGELOG.rst README.rst
|
||||
%{python_sitelib}/execnet
|
||||
%{python_sitelib}/execnet-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user