Update to 1.15.0 upstream release
Upstream tag: 1.15.0 Upstream commit: d507597e Commit authored by Packit automation (https://packit.dev/)
This commit is contained in:
parent
e8f0c26414
commit
9fe4e04e95
13 changed files with 350 additions and 0 deletions
1
.fmf/version
Normal file
1
.fmf/version
Normal file
|
|
@ -0,0 +1 @@
|
|||
1
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/packitos-1.15.0.tar.gz
|
||||
137
.packit.yaml
Normal file
137
.packit.yaml
Normal file
|
|
@ -0,0 +1,137 @@
|
|||
---
|
||||
# We want to use both instances for all upstream jobs including the `propose-downstream` one.
|
||||
# For downstream, we need to pick just one instance (`stg` in our case)
|
||||
# and redefine it for the `koji_build` and `bodhi_update` jobs.
|
||||
packit_instances: ["prod", "stg"]
|
||||
|
||||
packages:
|
||||
packit:
|
||||
downstream_package_name: packit
|
||||
# packit was already taken on PyPI
|
||||
upstream_package_name: packitos
|
||||
upstream_project_url: https://github.com/packit/packit
|
||||
paths:
|
||||
- ./
|
||||
specfile_path: packit.spec
|
||||
files_to_sync:
|
||||
- packit.spec
|
||||
- .packit.yaml
|
||||
- src: plans/
|
||||
dest: plans/
|
||||
- src: .fmf/
|
||||
dest: .fmf/
|
||||
|
||||
version_update_mask: '\d+\.'
|
||||
|
||||
copy_upstream_release_description: true
|
||||
issue_repository: https://github.com/packit/packit
|
||||
|
||||
actions:
|
||||
create-archive:
|
||||
- "sh -c 'hatch build -t sdist 2>&1 | tee hatch_build.log'"
|
||||
- "tail -n1 hatch_build.log"
|
||||
get-current-version:
|
||||
- "hatch version"
|
||||
pre-sync:
|
||||
# FMF has to be installed on system where you are calling this tool.
|
||||
- python3 plans/git_reference.py
|
||||
|
||||
allowed_gpg_keys:
|
||||
- 5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23
|
||||
|
||||
srpm_build_deps:
|
||||
- python3-build
|
||||
- hatch
|
||||
- python3-hatch-vcs
|
||||
|
||||
jobs:
|
||||
- job: propose_downstream
|
||||
trigger: release
|
||||
# Use the stage instance once it works in downstream.
|
||||
dist_git_branches:
|
||||
rawhide:
|
||||
fast_forward_merge_into: [fedora-branched]
|
||||
|
||||
- job: copr_build
|
||||
trigger: pull_request
|
||||
targets:
|
||||
- fedora-all
|
||||
- fedora-all-aarch64
|
||||
packages:
|
||||
- packit
|
||||
|
||||
- job: tests
|
||||
trigger: pull_request
|
||||
targets:
|
||||
- fedora-all
|
||||
packages:
|
||||
- packit
|
||||
|
||||
- job: copr_build
|
||||
trigger: commit
|
||||
branch: main
|
||||
targets:
|
||||
- fedora-all
|
||||
- fedora-all-aarch64
|
||||
project: packit-dev
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
|
||||
- job: copr_build
|
||||
trigger: commit
|
||||
branch: stable
|
||||
targets:
|
||||
- fedora-stable
|
||||
- fedora-stable-aarch64
|
||||
project: packit-stable
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
|
||||
- job: copr_build
|
||||
trigger: release
|
||||
targets:
|
||||
- fedora-stable
|
||||
- fedora-stable-aarch64
|
||||
project: packit-releases
|
||||
list_on_homepage: True
|
||||
preserve_project: True
|
||||
|
||||
# downstream automation:
|
||||
- job: pull_from_upstream
|
||||
trigger: release
|
||||
dist_git_branches:
|
||||
rawhide:
|
||||
fast_forward_merge_into: [fedora-branched]
|
||||
|
||||
- job: koji_build
|
||||
trigger: commit | koji_build
|
||||
packit_instances: ["stg"]
|
||||
allowed_pr_authors: ["packit-stg", "packit"]
|
||||
sidetag_group: packit-specfile-ogr-releases
|
||||
dependencies:
|
||||
- python-ogr
|
||||
- python-specfile
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
|
||||
- job: bodhi_update
|
||||
trigger: koji_build
|
||||
packit_instances: ["stg"]
|
||||
allowed_builders: ["packit-stg", "packit"]
|
||||
sidetag_group: packit-specfile-ogr-releases
|
||||
dependencies:
|
||||
- python-ogr
|
||||
- python-specfile
|
||||
dist_git_branches:
|
||||
- fedora-all
|
||||
# - job: vm_image_build
|
||||
# trigger: pull_request
|
||||
# packit_instances: ["stg"]
|
||||
# image_distribution: rhel-8
|
||||
# image_type: aws
|
||||
# image_architecture: x86_64
|
||||
# image_account_id: "727920394381"
|
||||
# packages_to_install: [packit]
|
||||
# owner: packit
|
||||
# project: packit-dev
|
||||
# targets: [epel-8]
|
||||
3
README.packit
Normal file
3
README.packit
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This repository is maintained by packit.
|
||||
https://packit.dev/
|
||||
The file was generated using packit 1.15.0.post1.dev2+g8f2adf816.
|
||||
82
packit.spec
Normal file
82
packit.spec
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
# Testing dependencies: deepdiff, flexmock are missing on EPEL 9. Cannot use testing environment
|
||||
%if 0%{?el9}
|
||||
%bcond_with tests
|
||||
%else
|
||||
%bcond_without tests
|
||||
%endif
|
||||
|
||||
Name: packit
|
||||
Version: 1.15.0
|
||||
Release: 1%{?dist}
|
||||
Summary: A tool for integrating upstream projects with Fedora operating system
|
||||
|
||||
License: MIT
|
||||
URL: https://github.com/packit/packit
|
||||
Source0: %{pypi_source packitos}
|
||||
BuildArch: noarch
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3dist(click-man)
|
||||
Requires: python3-packit = %{version}-%{release}
|
||||
|
||||
%description
|
||||
This project provides tooling and automation to integrate upstream open source
|
||||
projects into Fedora operating system.
|
||||
|
||||
%package -n python3-packit
|
||||
Summary: %{summary}
|
||||
# new-sources
|
||||
Requires: fedpkg
|
||||
Requires: git-core
|
||||
# kinit
|
||||
Requires: krb5-workstation
|
||||
# rpmbuild
|
||||
Requires: rpm-build
|
||||
# bumpspec
|
||||
Requires: rpmdevtools
|
||||
# Copying files between repositories
|
||||
Requires: rsync
|
||||
|
||||
Recommends: osh-cli
|
||||
|
||||
%description -n python3-packit
|
||||
Python library for Packit,
|
||||
check out packit package for the executable.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n packitos-%{version}
|
||||
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires %{?with_tests:-x testing}
|
||||
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%pyproject_save_files packit
|
||||
PYTHONPATH="%{buildroot}%{python3_sitelib}" click-man packit --target %{buildroot}%{_mandir}/man1
|
||||
|
||||
install -d -m 755 %{buildroot}%{bash_completions_dir}
|
||||
cp files/bash-completion/packit %{buildroot}%{bash_completions_dir}/packit
|
||||
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%{_bindir}/packit
|
||||
%{_mandir}/man1/packit*.1*
|
||||
%{bash_completions_dir}/packit
|
||||
|
||||
%files -n python3-packit -f %{pyproject_files}
|
||||
# Epel9 does not tag the license file in pyproject_files as a license. Manually install it in this case
|
||||
%if 0%{?el9}
|
||||
%license LICENSE
|
||||
%endif
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
* Mon Feb 23 2026 Packit Team <hello@packit.dev> - 1.15.0-1
|
||||
- First release in EPEL 10
|
||||
15
plans/README.md
Normal file
15
plans/README.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Run tests locally:
|
||||
|
||||
$ tmt -v run -a provision -h local
|
||||
|
||||
Run tests in a container using podman:
|
||||
|
||||
$ sudo dnf install tmt-provision-container
|
||||
$ tmt -v run -a provision -h container
|
||||
|
||||
For more info see:
|
||||
|
||||
- https://packit.dev/docs/testing-farm/
|
||||
- [tmt @ DevConf 2021 slides](https://static.sched.com/hosted_files/devconfcz2021/37/tmt-slides.pdf)
|
||||
- [fmf docs](https://fmf.readthedocs.io)
|
||||
- [tmt docs](https://tmt.readthedocs.io)
|
||||
35
plans/full.fmf
Normal file
35
plans/full.fmf
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
summary: Unit, integration & functional tests.
|
||||
|
||||
discover+:
|
||||
filter: tag:full
|
||||
|
||||
adjust:
|
||||
- when: "initiator == packit"
|
||||
because: "have the latest builds of ogr and specfile available for upstream test jobs"
|
||||
prepare+:
|
||||
# enable packit-dev Copr repo to get the latest builds of ogr and specfile
|
||||
- how: install
|
||||
copr: packit/packit-dev
|
||||
# make sure the Copr repo has higher priority than TF Tag Repository
|
||||
- how: shell
|
||||
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo
|
||||
|
||||
# upgrade or install ‹ogr›, if needed
|
||||
- how: shell
|
||||
script: dnf -y upgrade python3-ogr || dnf -y install python3-ogr
|
||||
|
||||
# upgrade or install ‹specfile›, if needed
|
||||
- how: shell
|
||||
script: dnf -y upgrade python3-specfile || dnf -y install python3-specfile
|
||||
|
||||
- when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9"
|
||||
because: "build and deepdiff are not in EPEL 9"
|
||||
prepare+:
|
||||
- how: install
|
||||
package: python3-pip
|
||||
- how: shell
|
||||
script: pip3 install build deepdiff
|
||||
|
||||
- when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10"
|
||||
because: "We are missing dependencies in EL10 that prohibit us from building."
|
||||
enabled: false
|
||||
17
plans/git_reference.py
Normal file
17
plans/git_reference.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
# Copyright Contributors to the Packit project.
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import fmf
|
||||
|
||||
tree_root = Path.cwd().absolute()
|
||||
node = fmf.Tree(tree_root).find("/plans")
|
||||
with node as data:
|
||||
data["discover"]["url"] = "https://github.com/packit/packit.git"
|
||||
data["discover"]["ref"] = (
|
||||
subprocess.check_output(["git", "rev-parse", "HEAD"]).decode().strip()
|
||||
)
|
||||
6
plans/main.fmf
Normal file
6
plans/main.fmf
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
discover:
|
||||
how: fmf
|
||||
url: https://github.com/packit/packit.git
|
||||
ref: d507597e6a4c9c2e456694de97d0353fe99e894f
|
||||
execute:
|
||||
how: tmt
|
||||
14
plans/rpmlint.fmf
Normal file
14
plans/rpmlint.fmf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
summary:
|
||||
Execute rpmlint on the spec file
|
||||
|
||||
discover:
|
||||
how: shell
|
||||
tests:
|
||||
- name: rpmlint
|
||||
test: rpmlint packit.spec
|
||||
|
||||
prepare:
|
||||
- name: packages
|
||||
how: install
|
||||
package:
|
||||
- rpmlint
|
||||
34
plans/session-recording.fmf
Normal file
34
plans/session-recording.fmf
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
summary: Session recording testcases
|
||||
|
||||
discover+:
|
||||
filter: tag:requre
|
||||
|
||||
adjust:
|
||||
- when: "initiator == packit"
|
||||
because: "have the latest builds of ogr and specfile available for upstream test jobs"
|
||||
prepare+:
|
||||
# enable packit-dev Copr repo to get the latest builds of ogr and specfile
|
||||
- how: install
|
||||
copr: packit/packit-dev
|
||||
|
||||
# make sure the Copr repo has higher priority than TF Tag Repository
|
||||
- how: shell
|
||||
script: sed -i -n '/^priority=/!p;$apriority=5' /etc/yum.repos.d/*:packit:packit-dev.repo
|
||||
|
||||
# upgrade or install ‹ogr›, if needed
|
||||
- how: shell
|
||||
script: dnf -y upgrade python3-ogr || dnf -y install python3-ogr
|
||||
|
||||
# upgrade or install ‹specfile›, if needed
|
||||
- how: shell
|
||||
script: dnf -y upgrade python3-specfile || dnf -y install python3-specfile
|
||||
|
||||
- when: "distro <= rhel-9 or distro <= centos-9 or distro == centos-stream-8 or distro == centos-stream-9"
|
||||
prepare+:
|
||||
- how: install
|
||||
name: Enable the Copr-repo for Requre
|
||||
copr: packit/packit-dev
|
||||
|
||||
- when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10"
|
||||
because: "We are missing dependencies in EL10 that prohibit us from building."
|
||||
enabled: false
|
||||
4
plans/smoke.fmf
Normal file
4
plans/smoke.fmf
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
summary: Basic simple tests
|
||||
|
||||
discover+:
|
||||
filter: tier:0
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (packitos-1.15.0.tar.gz) = 5a7d4ade59e2449ca7b42f8f1c0d6f9ab73e376358177b9242c7b9ae7386e0a43adcff3232fd4b1105d4caf22e9ba1bee503c1ae5ce809ab56237bbb6c60c5ff
|
||||
Loading…
Add table
Add a link
Reference in a new issue