Compare commits

..

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
0b4bf05987
!20 update to upstream version 2.0.2
From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
2023-10-25 09:51:48 +00:00
desert-sailor
e42b5f90d7 Update to version 2.0.2 2023-10-25 14:41:48 +08:00
openeuler-ci-bot
5650fa3ac2
!19 fix module 'py' has no attribute 'test'
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2023-07-05 11:12:31 +00:00
cherry530
4da6419974 fix module 'py' has no attribute 'test'
Signed-off-by: cherry530 <707078654@qq.com>
2023-07-05 15:01:08 +08:00
openeuler-ci-bot
14df1ff601
!17 Update package execnet of version 1.9.0
From: @A_L_I_E_Z 
Reviewed-by: @han-guangyu, @myeuler 
Signed-off-by: @han-guangyu, @myeuler
2022-06-01 07:35:29 +00:00
A_L_I_E_Z
4d932bd286 Update package execnet of version 1.9.0 2022-05-27 06:20:15 +00:00
openeuler-ci-bot
8f35307f07 !12 Update to 1.7.1
Merge pull request !12 from ultra_planet/master
2020-08-11 10:14:37 +08:00
lingsheng
3c8d0b42af Update to 1.7.1 2020-08-11 10:02:02 +08:00
openeuler-ci-bot
18880766d3 !5 Fix asserterror for testcase
Merge pull request !5 from wang_yue111/openEuler-20.03-LTS
2020-07-16 11:26:45 +08:00
lyn1001
58e43174ed Add yaml file and fix asserterror for testcase 2020-07-16 09:47:56 +08:00
openeuler-ci-bot
f57a6df191 !4 Add yaml file and fix asserterror for testcase
Merge pull request !4 from lyn/master
2020-05-26 20:16:24 +08:00
lyn1001
7ad1dbafb5 Add yaml file and fix asserterror for testcase 2020-05-26 19:05:01 +08:00
4 changed files with 53 additions and 66 deletions

Binary file not shown.

BIN
execnet-2.0.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,12 @@
Name: python-execnet
Version: 1.5.0
Release: 5
Version: 2.0.2
Release: 1
Summary: Rapid multi-Python deployment
License: MIT and GPLv2+
URL: http://codespeak.net/execnet
Source0: https://pypi.io/packages/source/e/execnet/execnet-%{version}.tar.gz
BuildArch: noarch
BuildRequires: procps-ng
%description
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:
@ -15,25 +14,11 @@ distribute tasks to local or remote processes
write and deploy hybrid multi-process applications
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
Summary: Rapid multi-Python deployment
BuildRequires: python3-apipkg python3-devel python3-pytest python3-setuptools
BuildRequires: python3-setuptools_scm python3-sphinx
Requires: python3-setuptools python3-apipkg
BuildRequires: python3-devel python3-setuptools python3-setuptools_scm python3-sphinx python3-py
BuildRequires: python3-pbr python3-pip python3-wheel python3-hatchling python3-hatch-vcs
BuildRequires: python3-pytest python3-pytest-timeout python3-tox python3-gevent python3-eventlet
%{?python_provide:%python_provide python3-execnet}
%description -n python3-execnet
@ -44,63 +29,61 @@ write and deploy hybrid multi-process applications
write scripts to administer multiple hosts
%prep
%setup -n execnet-%{version} -qc
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
%autosetup -n execnet-%{version} -p1
%build
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
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 -
%pyproject_build
%install
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
cd python2
%py2_install
rm -f doc/_build/html/.buildinfo
cd -
cd python3
%py3_install
rm -f doc/_build/html/.buildinfo
cd -
%pyproject_install
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
PATH="%{buildroot}%{_bindir}:$PATH" \
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
PYTHONDONTWRITEBYTECODE=1 \
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
sphinx-build -b html doc html
rm -rf html/{.buildinfo,.doctrees}
%check
cd python2
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" py.test-%{python2_version} -r s -k 'not test_stdouterrin_setnull' testing
cd -
cd python3
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" py.test-%{python3_version} -r s -k 'not test_stdouterrin_setnull' testing
cd -
%files -n python2-execnet
%license python2/LICENSE
%doc python2/*.rst
%doc python2/doc/_build/html
%{python2_sitelib}/execnet*
PYTEST_SELECT='not test_stdouterrin_setnull[gevent]'
PYTEST_SELECT+=' and not test_dont_write_bytecode'
PYTEST_SELECT+=' and not test_popen_io[gevent-sys.executable]'
PYTEST_SELECT+=' and not [gevent-socket]'
PYTEST_SELECT+=' and not [eventlet-socket]'
PYTEST_SELECT+=' and not [python2.7]'
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \
PATH="%{buildroot}%{_bindir}:$PATH" \
PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \
PYTHONDONTWRITEBYTECODE=1 \
%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \
PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \
%{_bindir}/pytest -k "$PYTEST_SELECT"
%files -n python3-execnet
%license python3/LICENSE
%doc python3/*.rst
%doc python3/doc/_build/html
%{python3_sitelib}/execnet*
%license LICENSE
%doc README.rst
%doc html
%{python3_sitelib}/execnet
%{python3_sitelib}/execnet*.dist-info/
%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
- Pakcage init

4
python-execnet.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: pytest-dev/execnet
tag_prefix: ^v
seperator: .