|
|
|
%if 0%{?rhel} && 0%{?rhel} <= 6
|
|
|
|
%{!?__python2: %global __python2 /usr/bin/python2}
|
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?fedora}
|
|
|
|
%global with_python3 1
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%global srcname execnet
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
Version: 1.3.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Elastic Python Deployment
|
|
|
|
Group: Development/Languages
|
|
|
|
# package is now under the MIT license, (although the docs still say
|
|
|
|
# otherwise, see https://bitbucket.org/hpk42/execnet/issue/33), and
|
|
|
|
# one example file (doc/example/sysinfo.py) is GPLv2+
|
|
|
|
License: MIT and GPLv2+
|
|
|
|
URL: http://codespeak.net/execnet
|
|
|
|
Source0: http://pypi.python.org/packages/source/e/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
|
# pytest is too old in EL7 - this patch removes the failing @needssymlink decorator
|
|
|
|
Patch2: python-execnet-needssymlink.patch
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
Requires: python-setuptools
|
|
|
|
BuildRequires: pytest
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
BuildRequires: /bin/ps
|
|
|
|
BuildRequires: python-eventlet
|
|
|
|
BuildRequires: python-hgdistver
|
|
|
|
%if 0%{?fedora} >= 21 || 0%{?rhel} >= 7
|
|
|
|
BuildRequires: python-gevent >= 1.0
|
|
|
|
%endif
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
BuildRequires: python3-hgdistver
|
|
|
|
# these do not exist
|
|
|
|
#BuildRequires: python3-eventlet
|
|
|
|
#BuildRequires: python3-gevent
|
|
|
|
%endif # with_python3
|
|
|
|
# execnet was separated from pylib at that point
|
|
|
|
Conflicts: python-py < 1.1.0
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-execnet
|
|
|
|
Summary: Elastic Python Deployment
|
|
|
|
Group: Development/Languages
|
|
|
|
Requires: python3-setuptools
|
|
|
|
|
|
|
|
|
|
|
|
%description -n python3-execnet
|
|
|
|
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
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qc -n %{srcname}-%{version}
|
|
|
|
mv %{srcname}-%{version} python2
|
|
|
|
pushd python2
|
|
|
|
%patch2 -p1
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
cp -a python2 python3
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py build
|
|
|
|
make -C doc html
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py build
|
|
|
|
make -C doc html
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
pushd python2
|
|
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
# remove hidden file
|
|
|
|
rm doc/_build/html/.buildinfo
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd python3
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
# remove hidden file
|
|
|
|
rm doc/_build/html/.buildinfo
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
pushd python2
|
|
|
|
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" \
|
|
|
|
py.test-%{python2_version} -r s -k'-test_stdouterrin_setnull' testing
|
|
|
|
popd
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd python3
|
|
|
|
PYTHONPATH=$(pwd) LC_ALL="en_US.UTF-8" \
|
|
|
|
py.test-%{python3_version} -r s -k'-test_stdouterrin_setnull' testing
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{python2_sitelib}/%{srcname}*
|
|
|
|
%doc python2/README.txt
|
|
|
|
%doc python2/CHANGELOG
|
|
|
|
%doc python2/doc/_build/html
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
%license python2/LICENSE
|
|
|
|
%else
|
|
|
|
%doc python2/LICENSE
|
|
|
|
%endif # licensedir
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-execnet
|
|
|
|
%{python3_sitelib}/%{srcname}*
|
|
|
|
%doc python3/README.txt
|
|
|
|
%doc python3/CHANGELOG
|
|
|
|
%doc python3/doc/_build/html
|
|
|
|
%if 0%{?_licensedir:1}
|
|
|
|
%license python3/LICENSE
|
|
|
|
%else
|
|
|
|
%doc python3/LICENSE
|
|
|
|
%endif # licemsedir
|
|
|
|
%endif # with_python3
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon Apr 20 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.3.0-2
|
|
|
|
- Re-add dependency on python-hgdistver, see bz#1208984.
|
|
|
|
- Apply updated Python packaging guidelines.
|
|
|
|
- Mark LICENSE with %%license.
|
|
|
|
|
|
|
|
* Sun Mar 8 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.3.0-1
|
|
|
|
- Update to 1.3.0.
|
|
|
|
- Drop obsolete patches.
|
|
|
|
|
|
|
|
* Mon Jan 19 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.2.0-5
|
|
|
|
- Bump and rebuild in rawhide.
|
|
|
|
|
|
|
|
* Sun Jan 18 2015 Thomas Moschny <thomas.moschny@gmx.de> - 1.2.0-4.1
|
|
|
|
- Conditionalize dependency on python-gevent, in order to update
|
|
|
|
python-execnet for F20 and add it to EPEL6 (bugs 1178233 and
|
|
|
|
1178235). Suggested by Ken Dreyer <ktdreyer@ktdreyer.com>.
|
|
|
|
- Disable test failing on Rawhide and F21.
|
|
|
|
|
|
|
|
* Wed Jun 18 2014 Orion Poplawski <orion@cora.nwra.com> - 1.2.0-4
|
|
|
|
- Add patch to fix failing test with old pytest on EL7
|
|
|
|
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
|
|
* Mon May 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
|
|
|
* Fri Apr 18 2014 Thomas Moschny <thomas.moschny@gmx.de> - 1.2.0-1
|
|
|
|
- Update to 1.2.0.
|
|
|
|
- Update license.
|
|
|
|
- Modernize spec file.
|
|
|
|
- Remove patch not needed anymore.
|
|
|
|
- Update build requirements.
|
|
|
|
- Only run tests in 'testing'.
|
|
|
|
|
|
|
|
* Sun Aug 18 2013 Thomas Moschny <thomas.moschny@gmx.de> - 1.1-6
|
|
|
|
- Fixing FTBFS (rhbz#992888, rhbz#914405): Add patch for failing
|
|
|
|
tests, disable other failing tests for now.
|
|
|
|
|
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.1-3
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
|
|
* Fri Jun 22 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.1-1
|
|
|
|
- Update to 1.1.
|
|
|
|
- Update description.
|
|
|
|
- Remove patch applied upstream.
|
|
|
|
|
|
|
|
* Tue Jan 17 2012 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.9-3
|
|
|
|
- Add upstream patch for failing test.
|
|
|
|
|
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sun Sep 4 2011 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.9-1
|
|
|
|
- Update to 1.0.9.
|
|
|
|
- Use BR on python-setuptools instead of python-setuptools-devel.
|
|
|
|
- Create Python3 subpackage.
|
|
|
|
- Fix dependencies.
|
|
|
|
|
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-1.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
|
|
* Sat Jul 31 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.8-1
|
|
|
|
- Update to 1.0.8.
|
|
|
|
|
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.0.7-1.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
|
|
|
* Sat Jul 10 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.7-1
|
|
|
|
- Update to 1.0.7.
|
|
|
|
- Do cleanups already in %%prep to avoid inconsistent mtimes between
|
|
|
|
source files and bytecode.
|
|
|
|
|
|
|
|
* Sat May 8 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.6-1
|
|
|
|
- Update to 1.0.6.
|
|
|
|
|
|
|
|
* Sun Feb 14 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.5-1
|
|
|
|
- Update to 1.0.5.
|
|
|
|
|
|
|
|
* Wed Jan 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.4-1
|
|
|
|
- Update to 1.0.4.
|
|
|
|
- No need to skip tests.
|
|
|
|
|
|
|
|
* Fri Jan 8 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.2-3
|
|
|
|
- Remove .buildinfo file from the doc dir.
|
|
|
|
|
|
|
|
* Thu Jan 7 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.2-2
|
|
|
|
- Skip tests that need network access.
|
|
|
|
|
|
|
|
* Tue Dec 29 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.2-1
|
|
|
|
- Update to 1.0.2.
|
|
|
|
|
|
|
|
* Sat Dec 5 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.1-1
|
|
|
|
- Update to 1.0.1.
|
|
|
|
- Build and include HTML documentation.
|
|
|
|
- Be a bit more explicit in the %%files section.
|
|
|
|
|
|
|
|
* Sat Nov 28 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.0-1
|
|
|
|
- Update to 1.0.0.
|
|
|
|
|
|
|
|
* Sun Nov 22 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.0-0.1.b3
|
|
|
|
- New package.
|