From 17877972b33d8e2583df173a53c924a74491a2bd3038c2d8b4f430ccdfd52a81 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Tue, 4 Jul 2017 12:26:30 +0000 Subject: [PATCH] Accepting request 508050 from home:benoit_monin:branches:devel:languages:python - BuildRequires only python3-Sphinx for doc generation - update to version 3.5.0.2 - convert the package to singlespec and import changes from python3-billiard - change the source URL to pythonhosted.org - update the BuildRequires for test - split the documentation to a separate package - remove the shebang cleanup: not needed anymore OBS-URL: https://build.opensuse.org/request/show/508050 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-billiard?expand=0&rev=28 --- billiard-3.3.0.22.tar.gz | 3 -- billiard-3.5.0.2.tar.gz | 3 ++ python-billiard.changes | 27 ++++++++++++++++ python-billiard.spec | 69 ++++++++++++++++++++++++++-------------- 4 files changed, 76 insertions(+), 26 deletions(-) delete mode 100644 billiard-3.3.0.22.tar.gz create mode 100644 billiard-3.5.0.2.tar.gz diff --git a/billiard-3.3.0.22.tar.gz b/billiard-3.3.0.22.tar.gz deleted file mode 100644 index fc0ef26..0000000 --- a/billiard-3.3.0.22.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d216181387317f8696c6d1c80a2491258d037493c1f0c6eb58992a549481e77e -size 151192 diff --git a/billiard-3.5.0.2.tar.gz b/billiard-3.5.0.2.tar.gz new file mode 100644 index 0000000..e2b1c7b --- /dev/null +++ b/billiard-3.5.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eb01a8fe44116aa6d63d2010515ef1526e40caee5f766f75b2d28393332dcaa +size 157299 diff --git a/python-billiard.changes b/python-billiard.changes index 38a7dad..dd1170e 100644 --- a/python-billiard.changes +++ b/python-billiard.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Mon Jun 26 20:20:22 UTC 2017 - benoit.monin@gmx.fr + +- update to version 3.5.0.2: + * max_memory_per_child was measured in kilobytes on Linux, but + bytes on *BSD/MacOS, it's now always kilobytes. + * Windows: Adds support for max_memory_per_child, but requires + the psutil package to be installed. + * Fixed bug in ForkingPickler.loadbuf, where it tried to pass + a BytesIO instance directly to ``pickle.loads`` on Python 2.7. +- additional changes from version 3.5.0.1: + * Connection: Properly handle EINTR (Issue #191). + * Fixed bug with missing CreateProcess for Windows on Python 2.7. + * Adds Process._counter for compatibility with Python <3.5. +- additional changes from version 3.5.0.0: + * No longer supports Python 2.6 + You need Python 2.7 or later to use this version of billiard. + * Merged changes from CPython 3.5 +- convert the package to singlespec and import changes from + python3-billiard +- change the source URL to pythonhosted.org +- update the BuildRequires for test: + * remove mock, nose and unittest2 + * add case and pytest +- split the documentation to a separate package +- remove the shebang cleanup: not needed anymore + ------------------------------------------------------------------- Wed Jan 13 17:52:14 UTC 2016 - antoine.belvire@laposte.net diff --git a/python-billiard.spec b/python-billiard.spec index d10497d..4b14923 100644 --- a/python-billiard.spec +++ b/python-billiard.spec @@ -1,7 +1,7 @@ # # spec file for package python-billiard # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,56 +16,79 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-billiard -Version: 3.3.0.22 +Version: 3.5.0.2 Release: 0 Url: https://github.com/celery/billiard Summary: Python multiprocessing fork License: BSD-3-Clause Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/b/billiard/billiard-%{version}.tar.gz +Source: https://files.pythonhosted.org/packages/source/b/billiard/billiard-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-devel -BuildRequires: python-setuptools -# Documentation requirements: -BuildRequires: python-sphinx +BuildRequires: python-rpm-macros +# Documentation requirements (only python3 needed): +BuildRequires: python3-Sphinx >= 0.5 # Test requirements: -BuildRequires: python-mock -BuildRequires: python-nose >= 1.3.4 -BuildRequires: python-unittest2 >= 0.4.0 -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +BuildRequires: %{python_module case >= 1.3.1} +BuildRequires: %{python_module pytest >= 3.0} +Suggests: %name-doc = %version +%ifpython3 +BuildArch: noarch %endif +%package -n %{name}-doc +Summary: Documentation for %name +Group: Development/Languages/Python +Provides: %{python_module billiard-doc = %{version}} +BuildArch: noarch + +%python_subpackages + %description billiard is a fork of the Python 2.7 multiprocessing package. The multiprocessing package itself is a renamed and updated version of R Oudkerk's pyprocessing package. This standalone variant is intended to be compatible with Python 2.4 and 2.5, and will draw it's fixes/improvements from python-trunk. +%description -n %{name}-doc +Documentation and help files for %name. + %prep %setup -q -n billiard-%{version} -# remove unwanted shebang -sed -i '/^#!/ d' funtests/setup.py %build -CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build -cd Doc && sphinx-build -b html . html +%python_build +pushd Doc +sphinx-build -b html . html +rm -r html/.buildinfo html/.doctrees +popd %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -# Remove hidden files from generated documentation directory -rm -r Doc/html/.doctrees -rm -r Doc/html/.buildinfo +%python_install %fdupes %buildroot/%_prefix %check -python setup.py test +%python_exec setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) -%doc CHANGES.txt LICENSE.txt README.rst Doc/html +%doc CHANGES.txt README.rst +%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 +%license LICENSE.txt +%else +%doc LICENSE.txt +%endif +%ifpython2 %{python_sitearch}/* +%else +%{python_sitelib}/* +%endif + +%files -n %{name}-doc +%doc Doc/html %changelog