Compare commits
12 Commits
0c72692dac
...
0b4bf05987
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0b4bf05987 | ||
|
|
e42b5f90d7 | ||
|
|
5650fa3ac2 | ||
|
|
4da6419974 | ||
|
|
14df1ff601 | ||
|
|
4d932bd286 | ||
|
|
8f35307f07 | ||
|
|
3c8d0b42af | ||
|
|
18880766d3 | ||
|
|
58e43174ed | ||
|
|
f57a6df191 | ||
|
|
7ad1dbafb5 |
Binary file not shown.
BIN
execnet-2.0.2.tar.gz
Normal file
BIN
execnet-2.0.2.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,12 @@
|
|||||||
Name: python-execnet
|
Name: python-execnet
|
||||||
Version: 1.5.0
|
Version: 2.0.2
|
||||||
Release: 5
|
Release: 1
|
||||||
Summary: Rapid multi-Python deployment
|
Summary: Rapid multi-Python deployment
|
||||||
License: MIT and GPLv2+
|
License: MIT and GPLv2+
|
||||||
URL: http://codespeak.net/execnet
|
URL: http://codespeak.net/execnet
|
||||||
Source0: https://pypi.io/packages/source/e/execnet/execnet-%{version}.tar.gz
|
Source0: https://pypi.io/packages/source/e/execnet/execnet-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: procps-ng
|
BuildRequires: procps-ng
|
||||||
|
|
||||||
%description
|
%description
|
||||||
execnet provides carefully tested means to ad-hoc interact with Python interpreters across version,
|
execnet provides carefully tested means to ad-hoc interact with Python interpreters across version,
|
||||||
platform and network barriers. It provides a minimal and fast API targetting the following uses:
|
platform and network barriers. It provides a minimal and fast API targetting the following uses:
|
||||||
@ -15,25 +14,11 @@ distribute tasks to local or remote processes
|
|||||||
write and deploy hybrid multi-process applications
|
write and deploy hybrid multi-process applications
|
||||||
write scripts to administer multiple hosts
|
write scripts to administer multiple hosts
|
||||||
|
|
||||||
%package -n python2-execnet
|
|
||||||
Summary: Rapid multi-Python deployment
|
|
||||||
BuildRequires: python2-apipkg python2-devel python2-eventlet python2-gevent >= 1.0
|
|
||||||
BuildRequires: python2-pytest python2-setuptools python2-setuptools_scm python2-sphinx
|
|
||||||
Requires: python2-setuptools python2-apipkg
|
|
||||||
%{?python_provide:%python_provide python2-execnet}
|
|
||||||
|
|
||||||
%description -n python2-execnet
|
|
||||||
execnet provides carefully tested means to ad-hoc interact with Python interpreters across version,
|
|
||||||
platform and network barriers. It provides a minimal and fast API targetting the following uses:
|
|
||||||
distribute tasks to local or remote processes
|
|
||||||
write and deploy hybrid multi-process applications
|
|
||||||
write scripts to administer multiple hosts
|
|
||||||
|
|
||||||
%package -n python3-execnet
|
%package -n python3-execnet
|
||||||
Summary: Rapid multi-Python deployment
|
Summary: Rapid multi-Python deployment
|
||||||
BuildRequires: python3-apipkg python3-devel python3-pytest python3-setuptools
|
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-sphinx python3-py
|
||||||
BuildRequires: python3-setuptools_scm python3-sphinx
|
BuildRequires: python3-pbr python3-pip python3-wheel python3-hatchling python3-hatch-vcs
|
||||||
Requires: python3-setuptools python3-apipkg
|
BuildRequires: python3-pytest python3-pytest-timeout python3-tox python3-gevent python3-eventlet
|
||||||
%{?python_provide:%python_provide python3-execnet}
|
%{?python_provide:%python_provide python3-execnet}
|
||||||
|
|
||||||
%description -n python3-execnet
|
%description -n python3-execnet
|
||||||
@ -44,63 +29,61 @@ write and deploy hybrid multi-process applications
|
|||||||
write scripts to administer multiple hosts
|
write scripts to administer multiple hosts
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -n execnet-%{version} -qc
|
%autosetup -n execnet-%{version} -p1
|
||||||
|
|
||||||
mv execnet-%{version} python2
|
|
||||||
cd python2
|
|
||||||
find . -type f -a \( -name '*.py' -o -name 'py.*' \) \
|
|
||||||
-exec sed -i '1{/^#!/d}' {} \; \
|
|
||||||
-exec chmod 644 {} \;
|
|
||||||
cd -
|
|
||||||
cp -a python2 python3
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
|
%pyproject_build
|
||||||
cd python2
|
|
||||||
%py2_build
|
|
||||||
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-2
|
|
||||||
cd -
|
|
||||||
|
|
||||||
cd python3
|
|
||||||
%py3_build
|
|
||||||
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
|
|
||||||
cd -
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
|
%pyproject_install
|
||||||
cd python2
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
||||||
%py2_install
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
||||||
rm -f doc/_build/html/.buildinfo
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
||||||
cd -
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
||||||
cd python3
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
|
||||||
%py3_install
|
sphinx-build -b html doc html
|
||||||
rm -f doc/_build/html/.buildinfo
|
rm -rf html/{.buildinfo,.doctrees}
|
||||||
cd -
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd python2
|
PYTEST_SELECT='not test_stdouterrin_setnull[gevent]'
|
||||||
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" py.test-%{python2_version} -r s -k 'not test_stdouterrin_setnull' testing
|
PYTEST_SELECT+=' and not test_dont_write_bytecode'
|
||||||
cd -
|
PYTEST_SELECT+=' and not test_popen_io[gevent-sys.executable]'
|
||||||
|
PYTEST_SELECT+=' and not [gevent-socket]'
|
||||||
cd python3
|
PYTEST_SELECT+=' and not [eventlet-socket]'
|
||||||
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" py.test-%{python3_version} -r s -k 'not test_stdouterrin_setnull' testing
|
PYTEST_SELECT+=' and not [python2.7]'
|
||||||
cd -
|
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
|
||||||
|
PATH="%{buildroot}%{_bindir}:$PATH" \
|
||||||
%files -n python2-execnet
|
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
|
||||||
%license python2/LICENSE
|
PYTHONDONTWRITEBYTECODE=1 \
|
||||||
%doc python2/*.rst
|
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
|
||||||
%doc python2/doc/_build/html
|
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
|
||||||
%{python2_sitelib}/execnet*
|
%{_bindir}/pytest -k "$PYTEST_SELECT"
|
||||||
|
|
||||||
%files -n python3-execnet
|
%files -n python3-execnet
|
||||||
%license python3/LICENSE
|
%license LICENSE
|
||||||
%doc python3/*.rst
|
%doc README.rst
|
||||||
%doc python3/doc/_build/html
|
%doc html
|
||||||
%{python3_sitelib}/execnet*
|
%{python3_sitelib}/execnet
|
||||||
|
%{python3_sitelib}/execnet*.dist-info/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Oct 23 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.2-1
|
||||||
|
- Upgrade package python3-execnet to version 2.0.2
|
||||||
|
|
||||||
|
* Wed Jul 05 2023 xu_ping <707078654@qq.com> - 1.9.0-2
|
||||||
|
- Add Buildrequires python3-py to fix module 'py' has no attribute 'test'
|
||||||
|
|
||||||
|
* Fri May 27 2022 OpenStack_SIG <openstack@openeuler.org> - 1.9.0-1
|
||||||
|
- Upgrade package python3-execnet to version 1.9.0
|
||||||
|
|
||||||
|
* Mon Aug 10 2020 lingsheng <lingsheng@huawei.com> - 1.7.1-1
|
||||||
|
- Update to 1.7.1
|
||||||
|
|
||||||
|
* Thu May 21 2020 yanan li <liyanan032@huawei.com> - 1.5.0-6
|
||||||
|
- Fix asserterror for testcase.
|
||||||
|
|
||||||
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.5.0-5
|
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.5.0-5
|
||||||
- Pakcage init
|
- Pakcage init
|
||||||
|
|||||||
4
python-execnet.yaml
Normal file
4
python-execnet.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: pytest-dev/execnet
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user