Update to version 2.0.2
This commit is contained in:
parent
5650fa3ac2
commit
e42b5f90d7
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,6 +1,6 @@
|
|||||||
Name: python-execnet
|
Name: python-execnet
|
||||||
Version: 1.9.0
|
Version: 2.0.2
|
||||||
Release: 2
|
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
|
||||||
@ -16,8 +16,9 @@ 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 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}
|
%{?python_provide:%python_provide python3-execnet}
|
||||||
|
|
||||||
%description -n python3-execnet
|
%description -n python3-execnet
|
||||||
@ -30,30 +31,48 @@ write scripts to administer multiple hosts
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -n execnet-%{version} -p1
|
%autosetup -n execnet-%{version} -p1
|
||||||
|
|
||||||
find . -type f -a \( -name '*.py' -o -name 'py.*' \) \
|
|
||||||
-exec sed -i '1{/^#!/d}' {} \; \
|
|
||||||
-exec chmod 644 {} \;
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
%py3_build
|
%pyproject_build
|
||||||
make -C doc html PYTHONPATH=$(pwd)
|
|
||||||
rm -f doc/_build/html/.buildinfo
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
|
||||||
%py3_install
|
%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
|
%check
|
||||||
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" py.test-%{python3_version} -r s -k 'not test_stdouterrin_setnull' testing
|
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
|
%files -n python3-execnet
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc README.rst CHANGELOG.rst
|
%doc README.rst
|
||||||
%doc 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
|
* 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'
|
- Add Buildrequires python3-py to fix module 'py' has no attribute 'test'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user