From e3f4c8ae6d7d35b2d5fea836a656ce0c914b1ac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Mon, 2 Mar 2020 17:22:01 +0100 Subject: [PATCH] Release 0.3.1 --- .gitignore | 1 + sources | 2 +- testcloud.spec | 52 ++++++++------------------------------------------ 3 files changed, 10 insertions(+), 45 deletions(-) diff --git a/.gitignore b/.gitignore index 25969ae..8dd567e 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ /testcloud-0.2.1.tar.gz /testcloud-0.2.2.tar.gz /testcloud-0.3.0.tar.gz +/testcloud-0.3.1.tar.gz diff --git a/sources b/sources index a525da8..f97e50f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (testcloud-0.3.0.tar.gz) = edb67953b3bf86c9c1a5aec2bdea7c34ce03947e0bea83d60b822a3c0f700168a7f7c32f5b3cced140edcb403ceffd97b7782d55415c781da9fda55ba2310074 +SHA512 (testcloud-0.3.1.tar.gz) = 4eb04a04d2272b87b3f61d0f6a1387c44426f893357fc51b135061b2b90a1901bcc70862fe777d42d3c27b2fadafd70bbf7d117dd83208bf5d430bb5a3772be6 diff --git a/testcloud.spec b/testcloud.spec index 78ed587..66e8655 100644 --- a/testcloud.spec +++ b/testcloud.spec @@ -6,9 +6,9 @@ Name: testcloud -# Update also version in testcloud/__init__.py when changing this! -Version: 0.3.0 -Release: 5%{?dist} +# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this! +Version: 0.3.1 +Release: 1%{?dist} Summary: Tool for running cloud images locally License: GPLv2+ @@ -29,42 +29,16 @@ Recommends: edk2-ovmf Requires: python3-%{name} = %{version}-%{release} -# Install python2 interface on stable Fedora Releases -%if 0%{?fedora} <= 28 -Requires: python2-%{name} = %{version}-%{release} -%endif - %description testcloud is a relatively simple system which is capable of booting images designed for cloud systems on a local system with minimal configuration. testcloud is designed to be (and remain) somewhat simple, trading fancy cloud system features for ease of use and sanity in development. -%if 0%{?fedora} <= 29 -%package -n python2-%{name} -Summary: Python 2 interface to testcloud -BuildRequires: python2-libvirt -BuildRequires: python2-devel -BuildRequires: python2-jinja2 -BuildRequires: python2-mock -BuildRequires: python2-pytest -BuildRequires: python2-pytest-cov -BuildRequires: python2-requests -BuildRequires: python2-setuptools -Requires: python2-requests -Requires: python2-libvirt -Requires: python2-jinja2 - -%description -n python2-%{name} -Python 2 interface to testcloud. -%endif - %package -n python3-%{name} Summary: Python 3 interface to testcloud -%if 0%{?fedora} >= 30 Obsoletes: python2-testcloud <= %{version}-%{release} -%endif BuildRequires: python3-libvirt BuildRequires: python3-devel @@ -89,15 +63,9 @@ getent group testcloud >/dev/null || groupadd testcloud %setup -q -n %{name}-%{version} %build -%if 0%{?fedora} <= 29 -%py2_build -%endif %py3_build %install -%if 0%{?fedora} <= 29 -%py2_install -%endif %py3_install # configuration files @@ -121,9 +89,6 @@ mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/rules.d install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules %check -%if 0%{?fedora} <= 29 -%{__python2} setup.py test -%endif %{__python3} setup.py test # Remove compiled .py files from /etc after os_install_post rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o} @@ -144,17 +109,16 @@ rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__ %config(noreplace) %{_sysconfdir}/testcloud/settings.py %{_bindir}/testcloud -%if 0%{?fedora} <= 29 -%files -n python2-%{name} -%{python2_sitelib}/testcloud -%{python2_sitelib}/*.egg-info -%endif - %files -n python3-%{name} %{python3_sitelib}/testcloud %{python3_sitelib}/*.egg-info %changelog +* Mon Mar 02 2020 Frantisek Zatloukal - 0.3.1-1 +- Remove Python 2 support +- Raise TestcloudImageError if failed to open file +- instance: call qemu-img in quiet mode + * Fri Jan 31 2020 Fedora Release Engineering - 0.3.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild