Accepting request 788118 from Cloud:OpenStack:Factory

- switch to python 3.x only builds

OBS-URL: https://build.opensuse.org/request/show/788118
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-futurist?expand=0&rev=10
This commit is contained in:
Dominique Leuenberger 2020-03-27 20:57:08 +00:00 committed by Git OBS Bridge
commit 4c6593ac50
2 changed files with 23 additions and 26 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Mar 14 12:31:12 UTC 2020 - Dirk Mueller <dmueller@suse.com>
- switch to python 3.x only builds
-------------------------------------------------------------------
Thu Oct 17 08:28:51 UTC 2019 - cloud-devel@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-futurist
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -25,17 +25,6 @@ Group: Development/Languages/Python
URL: https://launchpad.net/futurist
Source0: https://files.pythonhosted.org/packages/source/f/futurist/futurist-1.9.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python2-PrettyTable >= 0.7.1
BuildRequires: python2-contextlib2 >= 0.4.0
BuildRequires: python2-eventlet
BuildRequires: python2-futures >= 3.0.0
BuildRequires: python2-monotonic >= 0.6
BuildRequires: python2-oslotest
BuildRequires: python2-pbr >= 2.0.0
BuildRequires: python2-setuptools
BuildRequires: python2-six >= 1.10.0
BuildRequires: python2-stestr
BuildRequires: python2-testscenarios
BuildRequires: python3-PrettyTable >= 0.7.1
BuildRequires: python3-Sphinx
BuildRequires: python3-eventlet
@ -47,25 +36,28 @@ BuildRequires: python3-setuptools
BuildRequires: python3-six >= 1.10.0
BuildRequires: python3-stestr
BuildRequires: python3-testscenarios
Requires: python-PrettyTable >= 0.7.1
Requires: python-six >= 1.10.0
BuildArch: noarch
%ifpython2
Requires: python-contextlib2 >= 0.4.0
Requires: python-futures >= 3.0.0
Requires: python-monotonic >= 0.6
%endif
%python_subpackages
%description
Useful additions to futures, from the future.
%package -n python3-futurist
Summary: Useful additions to futures, from the future.
Group: Development/Languages/Python
Requires: python3-PrettyTable >= 0.7.1
Requires: python3-six >= 1.10.0
%description -n python3-futurist
Useful additions to futures, from the future.
This package contains the Python 3.x module.
%prep
%autosetup -p1 -n futurist-1.9.0
%py_req_cleanup
%build
%{python_build}
%{py3_build}
# generate html docs
PBR_VERSION=1.9.0 %sphinx_build -b html doc/source doc/build/html
@ -73,15 +65,15 @@ PBR_VERSION=1.9.0 %sphinx_build -b html doc/source doc/build/html
rm -r doc/build/html/.{doctrees,buildinfo}
%install
%{python_install}
%{py3_install}
%check
%python_exec -m stestr.cli run
python3 -m stestr.cli run
%files %{python_files}
%files -n python3-futurist
%doc doc/build/html README.rst
%license LICENSE
%{python_sitelib}/futurist
%{python_sitelib}/futurist-*-py?.?.egg-info
%{python3_sitelib}/futurist
%{python3_sitelib}/futurist-*-py?.?.egg-info
%changelog