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
This commit is contained in:
parent
94fc4e7dfa
commit
17877972b3
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d216181387317f8696c6d1c80a2491258d037493c1f0c6eb58992a549481e77e
|
||||
size 151192
|
3
billiard-3.5.0.2.tar.gz
Normal file
3
billiard-3.5.0.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3eb01a8fe44116aa6d63d2010515ef1526e40caee5f766f75b2d28393332dcaa
|
||||
size 157299
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user