public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/testcloud] f43: Update to 0.12.0 upstream release
@ 2026-09-15 12:27 Packit
  0 siblings, 0 replies; only message in thread
From: Packit @ 2026-09-15 12:27 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/testcloud
            Branch : f43
            Commit : e5db07b436dd228e44ad82420486f904fb4b2a7f
            Author : Packit <hello@packit.dev>
            Date   : 2026-09-15T10:25:18+00:00
            Stats  : +112/-12 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/testcloud/c/e5db07b436dd228e44ad82420486f904fb4b2a7f?branch=f43

            Log:
            Update to 0.12.0 upstream release

Upstream tag: 0.12.0
Upstream commit: b7bbd0f5

Commit authored by Packit automation (https://packit.dev/)

---
diff --git a/.gitignore b/.gitignore
index 9cba5fd..6a9e01b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,3 +49,4 @@
 /testcloud-0.11.6.tar.gz
 /testcloud-0.11.7.tar.gz
 /testcloud-0.11.8.tar.gz
+/testcloud-0.12.0.tar.gz

diff --git a/.packit.yaml b/.packit.yaml
new file mode 100644
index 0000000..60382dc
--- /dev/null
+++ b/.packit.yaml
@@ -0,0 +1,94 @@
+---
+
+specfile_path: packaging/rpm/testcloud.spec
+files_to_sync:
+  - src: packaging/rpm/
+    dest: ./
+    delete: true
+    filters:
+      - "protect .git*"
+      - "protect sources"
+      - "protect changelog"
+  - .packit.yaml
+
+upstream_package_name: testcloud
+downstream_package_name: testcloud
+
+upstream_project_url: https://github.com/teemtee/testcloud
+issue_repository: https://github.com/teemtee/testcloud
+
+srpm_build_deps:
+  - hatch
+  - python3-hatch-vcs
+
+actions:
+  create-archive:
+    - hatch build -t sdist
+    - bash -c "echo dist/testcloud-$PACKIT_PROJECT_VERSION.tar.gz"
+  get-current-version:
+    - hatch version
+
+targets: &all-targets
+  - fedora-all
+  - epel-9
+  - epel-10
+
+# Common definitions
+_:
+  # Copr jobs under the packit project
+  - &copr-under-packit
+    job: copr_build
+    additional_repos:
+      - copr://@teemtee/stable
+
+  # Copr jobs under the teemtee project
+  - &copr-under-teemtee
+    <<: *copr-under-packit
+    list_on_homepage: true
+    preserve_project: true
+    owner: "@teemtee"
+
+jobs:
+  # Build pull requests
+  - <<: *copr-under-packit
+    trigger: pull_request
+
+  # Build commits merged to main to latest
+  - <<: *copr-under-teemtee
+    trigger: commit
+    branch: main
+    project: latest
+    release_suffix: "{PACKIT_PROJECT_BRANCH}"
+
+  # Build released bits to stable
+  - <<: *copr-under-teemtee
+    trigger: release
+    project: stable
+
+  # Test pull requests
+  - job: tests
+    trigger: pull_request
+
+  # Propose downstream pull requests
+  - job: propose_downstream
+    trigger: release
+    dist_git_branches:
+      rawhide:
+        fast_forward_merge_into:
+          - fedora-branched
+          - epel-10
+          - epel-9
+
+  # Create koji builds
+  - job: koji_build
+    trigger: commit
+    allowed_pr_authors: ["packit", "all_committers"]
+    dist_git_branches: *all-targets
+
+  # Create bodhi updates
+  - job: bodhi_update
+    trigger: commit
+    dist_git_branches:
+      - fedora-branched
+      - epel-10
+      - epel-9

diff --git a/sources b/sources
index d53aab3..c0d876f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (testcloud-0.11.8.tar.gz) = e3c393b93867750bccc74fbbb89c1d2bff88f3f0b6f4fa166e029eccf4f31ba2a1c65f9353f67fedaa65c5ed099c0b8e8909e52218731d7f6559efc1b6687625
+SHA512 (testcloud-0.12.0.tar.gz) = 3bd441d75a8a96c16471dd006a094967816cfe7ef36c6d563e1ff57402f17460b08a8172112b1533bba817d24b60179f402fffc45ec56b6c3a20ac2de0fadc66

diff --git a/testcloud.spec b/testcloud.spec
index 5a417c8..3ff8deb 100644
--- a/testcloud.spec
+++ b/testcloud.spec
@@ -3,21 +3,20 @@
 %endif
 
 Name:           testcloud
-# Update also version in testcloud/__init__.py and docs/source/conf.py when changing this!
-Version:        0.11.8
+Version:        0.12.0
 Release:        %autorelease
 Summary:        Tool for running cloud images locally
 
 License:        GPL-2.0-or-later
-URL:            https://pagure.io/testcloud
-Source0:        https://releases.pagure.org/testcloud/%{name}-%{version}.tar.gz
+URL:            https://github.com/teemtee/testcloud
+Source0:        %{pypi_source testcloud}
 Source1:        testcloud.sysusers
 
 ExclusiveArch: %{kernel_arches} noarch
 BuildArch:      noarch
 
-# Ensure we can create the testcloud group
-Requires(pre):  shadow-utils
+BuildRequires:  systemd-rpm-macros
+%{?sysusers_requires_compat}
 
 Requires:       polkit
 
@@ -44,6 +43,7 @@ Requires:       libvirt-daemon
 Requires:       libvirt-daemon-config-network
 Requires:       libvirt-daemon-driver-qemu
 Requires:       libvirt-daemon-driver-storage-core
+Requires:       python3-fedora-distro-aliases
 Recommends:     butane
 Suggests:       python3-libguestfs
 Suggests:       libguestfs-tools-c
@@ -51,9 +51,8 @@ Suggests:       libguestfs-tools-c
 %description -n python3-%{name}
 Python 3 interface to testcloud.
 
-# Create the testcloud group
 %pre
-getent group testcloud >/dev/null || groupadd testcloud
+%sysusers_create_compat %{SOURCE1}
 
 %prep
 %autosetup -n %{name}-%{version} -p1
@@ -64,12 +63,21 @@ sed -i 's/ --cov-report=term-missing --cov testcloud//g' tox.ini
 %pyproject_buildrequires
 
 %build
+export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 %pyproject_wheel
 
 %install
 %pyproject_install
 %pyproject_save_files testcloud
 
+# man page
+mkdir -p %{buildroot}%{_mandir}/man1
+install -pm 644 manpages/testcloud.1 %{buildroot}%{_mandir}/man1
+
+# bash completion
+mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
+install -pm 644 conf/testcloud %{buildroot}%{_datadir}/bash-completion/completions/testcloud
+
 # configuration files
 mkdir -p %{buildroot}%{_sysconfdir}/testcloud/
 install conf/settings-example.py %{buildroot}%{_sysconfdir}/testcloud/settings.py
@@ -93,9 +101,6 @@ install -p -m644 -D %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf
 %check
 %pyproject_check_import
 %pytest
-# 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.md

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-15 12:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-15 12:27 [rpms/testcloud] f43: Update to 0.12.0 upstream release Packit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox