Compare commits

..

52 Commits

Author SHA1 Message Date
František Zatloukal e2100c4f27 Release 0.5.0 2021-03-22 10:54:00 +01:00
František Zatloukal c8816bf154 Release 0.5.0 2021-03-22 09:43:41 +01:00
Fedora Release Engineering 7921cb4505 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 21:48:16 +00:00
František Zatloukal 157a4c9583 Fixup F32 2020-12-16 16:23:35 +01:00
František Zatloukal 902dc2d853 Release 0.4.0 2020-12-16 15:27:43 +01:00
František Zatloukal 3529ac22e3 Release 0.3.7 2020-11-16 16:12:07 +01:00
František Zatloukal 0cbb530f27 Bring ExclusiveArch back 2020-11-03 14:27:50 +01:00
František Zatloukal 68de54581d Release 0.3.6 2020-10-09 23:33:04 +02:00
František Zatloukal f894bd2eee ExclusiveArch to prevent koji from trying to build this on i686 2020-08-27 16:40:33 +02:00
Fedora Release Engineering 37d90ad30b - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-29 12:19:13 +00:00
Miro Hrončok 9523991945 Rebuilt for Python 3.9 2020-05-26 03:51:46 +02:00
František Zatloukal e7fc5c848c Release 0.3.5 2020-05-22 00:04:25 +02:00
František Zatloukal ebcc1d42a0 Release 0.3.4 2020-05-21 18:13:24 +02:00
František Zatloukal 5952696d3f Release 0.3.3 2020-05-20 14:33:13 +02:00
František Zatloukal 1441beade5 Release 0.3.2 2020-04-19 18:06:49 +02:00
František Zatloukal e3f4c8ae6d Release 0.3.1 2020-03-02 17:22:01 +01:00
Fedora Release Engineering e45d7f26fa - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-01-31 01:21:59 +00:00
Miro Hrončok ca1a08b0f9 Rebuilt for Python 3.8.0rc1 (#1748018) 2019-10-03 14:39:23 +02:00
Miro Hrončok 2156d20941 Rebuilt for Python 3.8 2019-08-19 11:06:53 +02:00
Fedora Release Engineering 0fe3e625f4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-07-27 01:16:02 +00:00
František Zatloukal 19e102b220 Release 0.3.0 2019-05-22 16:16:57 +02:00
Fedora Release Engineering 43cbe98c95 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2019-02-03 09:40:20 +00:00
František Zatloukal 6c14d400c9 Release 0.2.2 2018-11-20 16:11:05 +01:00
Fedora Release Engineering 9683a72654 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-07-14 07:27:20 +00:00
Miro Hrončok 4911f66ffa Rebuilt for Python 3.7 2018-07-02 18:24:15 +02:00
František Zatloukal 69030ee9d7 Release 0.2.1 2018-06-29 10:52:05 +02:00
Miro Hrončok 40047ec1b4 Rebuilt for Python 3.7 2018-06-19 11:28:21 +02:00
František Zatloukal 806feef7af Release 0.2.0 2018-05-30 15:41:15 +02:00
František Zatloukal def5db17e5 Release 0.1.18 2018-05-02 15:20:53 +02:00
František Zatloukal d6ccb62b10 Update sources file 2018-03-06 13:26:34 +01:00
František Zatloukal 397523a4ef Upstream release 0.1.17 2018-03-06 13:24:51 +01:00
František Zatloukal 43cdfe9bdf Forgot to upload new sources 2018-02-20 10:58:34 +01:00
František Zatloukal a330375aa9 Upstream release 0.1.16 2018-02-20 10:50:50 +01:00
Fedora Release Engineering c837a3ba36 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-09 18:46:13 +00:00
František Zatloukal 0b4279fb33 Update Python 2 dependency declarations to new packaging standards 2018-02-02 15:25:28 +01:00
Kamil Páral eba2fb202d gitignore: add *.rpm 2018-01-10 11:19:02 +01:00
Kamil Páral 3b03c69e79 upstream release 0.1.15 2017-10-26 16:34:03 +02:00
Kamil Páral e2adf67c7d don't forget to adjust sources 2017-10-26 14:43:16 +02:00
Kamil Páral 494c546c80 upstream 0.1.14 release 2017-10-26 14:38:22 +02:00
Fedora Release Engineering 44e4e83ab9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-27 20:09:19 +00:00
Kamil Páral e4ab9b9dd2 don't install py[co] files into /etc 2017-02-22 04:35:52 +01:00
Kamil Páral 4b5a9b217e add python-pytest-cov builddep to run test suite during building 2017-02-20 11:31:11 +01:00
Kamil Páral 1f61f9856c upstream 0.1.11 release 2017-02-20 11:06:27 +01:00
Fedora Release Engineering f43c3d1335 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-11 15:47:46 +00:00
Martin Krizek b7aaeb539c upstream 0.1.10 release 2016-08-17 12:43:30 +02:00
Fedora Release Engineering f201912536 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages 2016-07-19 12:50:44 +00:00
Kamil Páral 5f6d1c43af upstream 0.1.9 release 2016-07-19 14:05:33 +02:00
Martin Krizek 639ed82af3 libguestfs on arm should be fixed now, removing exclude arm 2016-07-18 12:35:22 +02:00
Martin Krizek e1bc0f86a7 Exclude arm until libguestfs dep is resolved there 2016-06-22 14:19:16 +02:00
Tim Flink 399bdc665e it's not 2015 any more 2016-02-05 05:33:41 -07:00
Tim Flink 075d8dc4f3 updating to upstream 0.1.8 2016-02-05 05:29:35 -07:00
Fedora Release Engineering 87efa39d59 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild 2016-02-05 01:28:49 +00:00
3 changed files with 240 additions and 34 deletions
+23
View File
@@ -1,2 +1,25 @@
/*.rpm
/0.1.6.tar.gz
/0.1.7.tar.gz
/0.1.8.tar.gz
/0.1.9.tar.gz
/0.1.10.tar.gz
/0.1.11.tar.gz
/testcloud-0.1.14.tar.gz
/testcloud-0.1.15.tar.gz
/testcloud-0.1.16.tar.gz
/testcloud-0.1.17.tar.gz
/testcloud-0.1.18.tar.gz
/testcloud-0.2.0.tar.gz
/testcloud-0.2.1.tar.gz
/testcloud-0.2.2.tar.gz
/testcloud-0.3.0.tar.gz
/testcloud-0.3.1.tar.gz
/testcloud-0.3.2.tar.gz
/testcloud-0.3.3.tar.gz
/testcloud-0.3.4.tar.gz
/testcloud-0.3.5.tar.gz
/testcloud-0.3.6.tar.gz
/testcloud-0.3.7.tar.gz
/testcloud-0.4.0.tar.gz
/testcloud-0.5.0.tar.gz
+1 -2
View File
@@ -1,2 +1 @@
094525bea8b573886354c91b8873d49d 0.1.6.tar.gz
02c2af86b8f87d679700660303e9bdac 0.1.7.tar.gz
SHA512 (testcloud-0.5.0.tar.gz) = 35aa88e48af6ddd7ee89fa776e069431f32edc27f66ac2b62a9800add5f53fd819986058dc96790bf7bbe9cca4395113c754ebc68bec9474a254d99b77aec4c6
+216 -32
View File
@@ -1,40 +1,26 @@
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
Name: testcloud
Version: 0.1.7
# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
Version: 0.5.0
Release: 1%{?dist}
Summary: Tool for running cloud images locally
License: GPLv2+
URL: https://github.com/Rorosha/testCloud
Source0: https://github.com/Rorosha/%{name}/archive/%{version}.tar.gz
URL: https://pagure.io/testcloud
Source0: https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
# ExclusiveArch: kernel_arches is not possible on F32... Let's exclude i686 as it doesn't have the kernel
ExcludeArch: i686
BuildArch: noarch
# Ensure we can create the testcloud group
Requires(pre): shadow-utils
# testcloud integrates with libvirt
Requires: libvirt
Requires: libvirt-python
# This is used to manipulate images on disk
Requires: libguestfs
Requires: libguestfs-tools
# Used to download images from valid URLs
Requires: python-requests
Requires: polkit
Requires: python-jinja2
Requires: net-tools
BuildRequires: python2-devel
BuildRequires: pytest
BuildRequires: python-setuptools
Recommends: edk2-ovmf
# Provides: python2-testcloud
Requires: python3-%{name} = %{version}-%{release}
%description
testcloud is a relatively simple system which is capable of booting images
@@ -42,6 +28,29 @@ 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.
%package -n python3-%{name}
Summary: Python 3 interface to testcloud
Obsoletes: python2-testcloud <= %{version}-%{release}
BuildRequires: python3-libvirt
BuildRequires: python3-devel
BuildRequires: python3-jinja2
BuildRequires: python3-mock
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-requests
BuildRequires: python3-setuptools
Requires: libvirt
Requires: libguestfs-tools-c
Requires: python3-requests
Requires: python3-libvirt
Requires: python3-jinja2
%description -n python3-%{name}
Python 3 interface to testcloud.
# Create the testcloud group
%pre
getent group testcloud >/dev/null || groupadd testcloud
@@ -49,14 +58,15 @@ getent group testcloud >/dev/null || groupadd testcloud
%prep
%setup -q -n %{name}-%{version}
%check
%{__python2} setup.py test
%build
%{__python2} setup.py build
%py3_build
%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
%py3_install
# Docs
install -d %{buildroot}%{_mandir}/man1
install -p -m 0644 manpages/testcloud.1 %{buildroot}%{_mandir}/man1
# configuration files
mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
@@ -78,11 +88,16 @@ install -d %{buildroot}/%{_sharedstatedir}/testcloud/instances
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
%{__python3} setup.py test
# Remove compiled .py files from /etc after os_install_post
rm -f %{buildroot}%{_sysconfdir}/testcloud/*.py{c,o}
rm -rf %{buildroot}%{_sysconfdir}/testcloud/__pycache__
%files
%doc README.rst
%doc README.md
%{_mandir}/man1/testcloud.1*
%license LICENSE
%{python2_sitelib}/testcloud
%{python2_sitelib}/*.egg-info
%dir %{_sysconfdir}/testcloud
%dir %attr(0775, qemu, testcloud) %{_sharedstatedir}/testcloud
@@ -92,10 +107,179 @@ install conf/99-testcloud-nonroot-libvirt-access.rules %{buildroot}%{_sysconfdir
%attr(0644, root, root) %{_sysconfdir}/polkit-1/rules.d/99-testcloud-nonroot-libvirt-access.rules
%config(noreplace) %{_sysconfdir}/testcloud/settings.p*
%config(noreplace) %{_sysconfdir}/testcloud/settings.py
%{_bindir}/testcloud
%files -n python3-%{name}
%{python3_sitelib}/testcloud
%{python3_sitelib}/*.egg-info
%changelog
* Mon Mar 22 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.5.0-1
- Fix crash in _handle_connection_tip
- Allow to create an instance without specifying a name
- Fix instance.image_path
- Make network working in qemu:///session
* Wed Dec 16 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.4.0-1
- Support creating instances by fedora:XX, fedora:latest and fedora:qa-matrix strings
- Implement auto cleaning of backingstore
- Make testcloud compatible with future Python 3.10
- Adapt to requests defaulting to simplejson if present
- Don't throw out exception when trying to create instance already existing in libvirt
- --all is now the default in testcloud instance list
- Show some hints to the users on instance create/start
- cleanup the instance bits when instance create fails
* Mon Nov 16 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.7-1
- Do not throw out ugly tracebacks if user uses cli (#1887815)
- Parse CMD_LINE_ARGS and add CMD_LINE_ENVS (https://pagure.io/testcloud/issue/49)
- Add try/except check to instance.prepare() as permissions error can occur there too
- Update documentation
- Add manpage
* Fri Oct 09 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.6-1
- Improve user experience when testcloud fails because of missing group
* Thu Aug 27 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.5-4
- ExclusiveArch to prevent koji from trying to build this on i686
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.3.5-2
- Rebuilt for Python 3.9
* Fri May 22 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.5-1
- Typo fix in RHEL 8 qemu-kvm naming workaround
* Thu May 21 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.4-1
- Ugly hotfix for tmt
* Wed May 20 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.3-1
- Support RHEL 8 hosts (different qemu-kvm path)
- Move most of the deps into python3-testcloud
* Sun Apr 19 2020 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.2-1
- Require only libguestfs-tools-c from libguestfs
- Bump default RAM size to 768 MB
- Fix for libvirt >= 6.0
- Fix DeprecationWarning: invalid escape sequence \w
* 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
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-4
- Rebuilt for Python 3.8.0rc1 (#1748018)
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.3.0-3
- Rebuilt for Python 3.8
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Wed May 22 2019 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.3.0-1
- Support creating UEFI VMs
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Tue Nov 20 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.2.2-1
- drop and obsolete python2-testcloud on Fedora >= 30
- Fix setup.py test to also work with Python 3 (pytest-3)
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Mon Jul 02 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-2
- Rebuilt for Python 3.7
* Fri Jun 29 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.2.1-1
- domain-template: use cpu host-passthrough
- domain-template: use urandom for RNG
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.0-2
- Rebuilt for Python 3.7
* Wed May 30 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.2.0-1
- Drop Fedora 26
- Use Python 3 by default
- Remove shebangs from non-executables
- Split testcloud into testcloud, python2-testcloud and python3-testcloud
* Wed May 02 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.1.18-1
- Host /dev/random passthrough
* Tue Mar 06 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.1.17-1
- Add instance clean command
- Ignore error when domain stopped between stop attempts
- Add Makefile
* Tue Feb 20 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.1.16-1
- Retry to stop instance when host is busy
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.15-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Feb 02 2018 Frantisek Zatloukal <fzatlouk@redhat.com> - 0.1.15-2
- Update Python 2 dependency declarations to new packaging standards
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
* Thu Oct 26 2017 Kamil Páral <kparal@redhat.com> - 0.1.15-1
- keep backwards compatible API
* Thu Oct 26 2017 Kamil Páral <kparal@redhat.com> - 0.1.14-1
- replace arp with libvirt method (lose dep on net-tools)
- fix test suite in spec file
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Wed Feb 22 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-3
- don't install py[co] files into /etc
* Mon Feb 20 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-2
- add python-pytest-cov builddep to run test suite during building
* Mon Feb 20 2017 Kamil Páral <kparal@redhat.com> - 0.1.11-1
- make libvirt url configurable
- avoid race condition during listing domains
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Aug 17 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.10-1
- use symlinks for file:// urls
- look for the jinja template in the conf/ dir first
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.9-2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
* Tue Jul 19 2016 Kamil Páral <kparal@redhat.com> - 0.1.9-1
- upstream 0.1.9 release
- "destroy" commands renamed to "remove"
- "instance remove" now supports "--force"
- new "instance reboot" command
- no more crashes when stopping an already stopped instance
- option to automatically stop an instance during remove (API)
* Mon Jul 18 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.8-3
- libguestfs on arm should be fixed now, removing exclude arm
* Wed Jun 22 2016 Martin Krizek <mkrizek@redhat.com> - 0.1.8-2
- exclude arm until libguestfs dep is resolved there
* Fri Feb 05 2016 Tim Flink <tflink@fedoraproject.org> - 0.1.8-1
- Explicitly fail when IP address is not found
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Tue Dec 8 2015 Tim Flink <tflink@fedoraproject.org> - 0.1.7-1
- Enabling configurable instance memory and disk size (T420, T659)
- Improved handling of images with larger disks (T657)