Release 0.3.1

This commit is contained in:
František Zatloukal
2020-03-02 17:22:01 +01:00
parent e45d7f26fa
commit e3f4c8ae6d
3 changed files with 10 additions and 45 deletions
+1
View File
@@ -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
+1 -1
View File
@@ -1 +1 @@
SHA512 (testcloud-0.3.0.tar.gz) = edb67953b3bf86c9c1a5aec2bdea7c34ce03947e0bea83d60b822a3c0f700168a7f7c32f5b3cced140edcb403ceffd97b7782d55415c781da9fda55ba2310074
SHA512 (testcloud-0.3.1.tar.gz) = 4eb04a04d2272b87b3f61d0f6a1387c44426f893357fc51b135061b2b90a1901bcc70862fe777d42d3c27b2fadafd70bbf7d117dd83208bf5d430bb5a3772be6
+8 -44
View File
@@ -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 <fzatlouk@redhat.com> - 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 <releng@fedoraproject.org> - 0.3.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild