Subpackage python2-execnet has been removed

epel9
Miro Hrončok 6 years ago
parent 32e8aa9921
commit fe6295aba1

@ -2,7 +2,7 @@
Name: python-%{srcname}
Version: 1.6.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Distributed Python deployment and communication
License: MIT
URL: https://github.com/pytest-dev/execnet
@ -22,28 +22,6 @@ minimal and fast API targetting the following uses:
* write scripts to administer multiple environments
%package -n python2-%{srcname}
Summary: Elastic Python Deployment
BuildRequires: python2-devel
BuildRequires: python2-setuptools
BuildRequires: python2-setuptools_scm
BuildRequires: python2-apipkg
BuildRequires: python2-pytest
BuildRequires: python2-eventlet
BuildRequires: python2-gevent >= 1.0
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-%{srcname}
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
%package -n python3-%{srcname}
Summary: Elastic Python Deployment
BuildRequires: python3-devel
@ -68,77 +46,46 @@ minimal and fast API targetting the following uses:
%prep
%setup -qc -n %{srcname}-%{version}
mv %{srcname}-%{version} python2
pushd python2
%setup -q -n %{srcname}-%{version}
# remove shebangs and fix permissions
find . -type f -a \( -name '*.py' -o -name 'py.*' \) \
-exec sed -i '1{/^#!/d}' {} \; \
-exec chmod u=rw,go=r {} \;
popd
cp -a python2 python3
%build
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
pushd python2
%py2_build
popd
pushd python3
%py3_build
make -C doc html PYTHONPATH=$(pwd) SPHINXBUILD=sphinx-build-3
popd
make -C doc html PYTHONPATH=$(pwd)
# remove hidden file
rm doc/_build/html/.buildinfo
%install
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
pushd python2
%py2_install
popd
pushd python3
%py3_install
# remove hidden file
rm doc/_build/html/.buildinfo
popd
%check
pushd python2
PYTHONPATH=$(pwd) LC_ALL=C.UTF-8 \
py.test-%{python2_version} -r s \
-k 'not test_stdouterrin_setnull' \
testing
popd
pushd python3
PYTHONPATH=$(pwd) \
py.test-%{python3_version} -r s \
-k 'not test_stdouterrin_setnull' \
testing
popd
%files -n python2-%{srcname}
%{python2_sitelib}/%{srcname}*
%doc python2/README.rst
%doc python2/CHANGELOG.rst
%license python2/LICENSE
%files -n python3-%{srcname}
%{python3_sitelib}/%{srcname}*
%doc python3/README.rst
%doc python3/CHANGELOG.rst
%doc python3/doc/_build/html
%license python3/LICENSE
%{python3_sitelib}/%{srcname}*/
%doc README.rst
%doc CHANGELOG.rst
%doc doc/_build/html
%license LICENSE
%changelog
* Mon Aug 12 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-3
- Subpackage python2-execnet has been removed
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

Loading…
Cancel
Save