Accepting request 507161 from home:benoit_monin:branches:devel:languages:python
explicitly call python2 for the tests OBS-URL: https://build.opensuse.org/request/show/507161 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kombu?expand=0&rev=119
This commit is contained in:
parent
fdf4065156
commit
c8eba28b8f
@ -1,3 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jun 28 20:28:50 UTC 2017 - benoit.monin@gmx.fr
|
||||||
|
|
||||||
|
- convert the package to singlespec
|
||||||
|
- import changes from python3-kombu:
|
||||||
|
* add AUTHORS to the package documentation
|
||||||
|
* use a more precise file list
|
||||||
|
- drop test BuildRequires mock, nose-cover3 and unittest2:
|
||||||
|
not needed anymore
|
||||||
|
- add fdupes as BuildRequires and call it after install
|
||||||
|
- skip the tests for python3 since they fail with python 3.6 (#675)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 16 08:24:12 UTC 2017 - dmueller@suse.com
|
Thu Mar 16 08:24:12 UTC 2017 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-kombu
|
Name: python-kombu
|
||||||
Version: 4.0.2
|
Version: 4.0.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -24,20 +25,19 @@ License: BSD-3-Clause
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/celery/kombu
|
Url: https://github.com/celery/kombu
|
||||||
Source: https://pypi.io/packages/source/k/kombu/kombu-%{version}.tar.gz
|
Source: https://pypi.io/packages/source/k/kombu/kombu-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
BuildRequires: python-PyYAML
|
BuildRequires: %{python_module PyYAML}
|
||||||
BuildRequires: python-amqp >= 2.0
|
BuildRequires: %{python_module amqp >= 2.0}
|
||||||
BuildRequires: python-boto
|
BuildRequires: %{python_module boto}
|
||||||
BuildRequires: python-case
|
BuildRequires: %{python_module case}
|
||||||
BuildRequires: python-mock
|
BuildRequires: %{python_module msgpack-python}
|
||||||
BuildRequires: python-msgpack-python
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: python-nose-cover3
|
BuildRequires: %{python_module pytz}
|
||||||
BuildRequires: python-pytest
|
BuildRequires: %{python_module redis}
|
||||||
BuildRequires: python-pytz
|
|
||||||
BuildRequires: python-redis
|
|
||||||
BuildRequires: python-unittest2 >= 0.5.0
|
|
||||||
Requires: python-amqp
|
Requires: python-amqp
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Suggests: couchdb
|
Suggests: couchdb
|
||||||
@ -45,11 +45,9 @@ Suggests: mongodb
|
|||||||
Suggests: rabbitmq-server
|
Suggests: rabbitmq-server
|
||||||
%endif
|
%endif
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
||||||
%else
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
An AMQP messaging framework for Python.
|
An AMQP messaging framework for Python.
|
||||||
@ -67,17 +65,21 @@ provide proven and tested solutions to common messaging problems.
|
|||||||
%setup -q -n kombu-%{version}
|
%setup -q -n kombu-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
# Tests are currently incompatible with python 3.6 (see upstream #675)
|
||||||
|
# run them only on python 2
|
||||||
%check
|
%check
|
||||||
python setup.py -q test
|
python2 setup.py -q test
|
||||||
|
|
||||||
%files
|
%files %python_files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Changelog FAQ README.rst THANKS TODO LICENSE
|
%doc AUTHORS Changelog FAQ README.rst THANKS TODO LICENSE
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/kombu
|
||||||
|
%{python_sitelib}/kombu-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user