From 4a84bb7922e22aa84c507354af9b14a8ca32fdf6975958d2c73decce045e82f5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 14 Mar 2020 12:31:17 +0000 Subject: [PATCH] - switch to python 3.x only builds OBS-URL: https://build.opensuse.org/package/show/Cloud:OpenStack:Factory/python-futurist?expand=0&rev=13 --- python-futurist.changes | 5 +++++ python-futurist.spec | 44 +++++++++++++++++------------------------ 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/python-futurist.changes b/python-futurist.changes index fbc5d57..4a307f0 100644 --- a/python-futurist.changes +++ b/python-futurist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Mar 14 12:31:12 UTC 2020 - Dirk Mueller + +- switch to python 3.x only builds + ------------------------------------------------------------------- Thu Oct 17 08:28:51 UTC 2019 - cloud-devel@suse.de diff --git a/python-futurist.spec b/python-futurist.spec index 8ec026b..f1f91a9 100644 --- a/python-futurist.spec +++ b/python-futurist.spec @@ -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