---
# 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"]
specfile_path: fedora/python-specfile.spec
# add or remove files that should be synced
files_to_sync:
- fedora/python-specfile.spec
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: specfile
# downstream (Fedora) RPM package name
downstream_package_name: python-specfile
copy_upstream_release_description: true
upstream_project_url: https://github.com/packit/specfile
issue_repository: https://github.com/packit/specfile
actions:
# we need this b/c `git archive` doesn't put all the metadata in the tarball:
# LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
# Make sure you're either building from a fully intact git repository or PyPI tarballs.
create-archive:
- python3 setup.py sdist --dist-dir ./fedora/
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 setup.py --version
pre-sync:
# FMF has to be installed on system where you are calling this tool.
- python3 plans/git_reference.py
srpm_build_deps:
- python3-pip # "python3 setup.py --version" needs it
- python3-setuptools_scm
jobs:
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-all
- epel-9
- job: copr_build
trigger: pull_request
targets:
- fedora-all
- epel-9
- job: tests
trigger: pull_request
targets:
- fedora-all
- epel-9
- job: copr_build
trigger: commit
branch: main
targets:
- fedora-all
- epel-9
project: packit-dev
list_on_homepage: True
preserve_project: True
- job: copr_build
trigger: commit
branch: stable
targets:
- fedora-stable
- epel-9
project: packit-stable
list_on_homepage: True
preserve_project: True
- job: copr_build
trigger: release
targets:
- fedora-all
- epel-9
project: packit-releases
list_on_homepage: True
preserve_project: True
- job: pull_from_upstream
trigger: release
dist_git_branches:
- fedora-all
- epel-9
# downstream automation:
- job: koji_build
trigger: commit
packit_instances: ["stg"]
allowed_pr_authors: ["packit-stg", "packit"]
dist_git_branches:
- fedora-all
- epel-9
- job: bodhi_update
trigger: commit
packit_instances: ["stg"]
dist_git_branches:
- fedora-branched # rawhide updates are created automatically
- epel-9