Packit 39331bd
---
Packit 0c7f08a
# We want to use both instances for all upstream jobs including the `propose-downstream` one.
Packit 0c7f08a
# For downstream, we need to pick just one instance (`stg` in our case)
Packit 0c7f08a
# and redefine it for the `koji_build` and `bodhi_update` jobs.
Packit 0c7f08a
packit_instances: ["prod", "stg"]
Packit 0c7f08a
Packit 39331bd
specfile_path: fedora/python-specfile.spec
Packit 39331bd
Packit 39331bd
# add or remove files that should be synced
Packit 39331bd
files_to_sync:
Packit 39331bd
  - fedora/python-specfile.spec
Packit 39331bd
  - .packit.yaml
Packit 39331bd
Packit 39331bd
# name in upstream package repository or registry (e.g. in PyPI)
Packit 39331bd
upstream_package_name: specfile
Packit 39331bd
# downstream (Fedora) RPM package name
Packit 39331bd
downstream_package_name: python-specfile
Packit 39331bd
Packit 39331bd
copy_upstream_release_description: true
Packit 39331bd
Packit 0c7f08a
upstream_project_url: https://github.com/packit/specfile
Packit 0c7f08a
issue_repository: https://github.com/packit/specfile
Packit 0c7f08a
Packit 39331bd
actions:
Packit 39331bd
  # we need this b/c `git archive` doesn't put all the metadata in the tarball:
Packit 39331bd
  #   LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
Packit 39331bd
  #   Make sure you're either building from a fully intact git repository or PyPI tarballs.
Packit 39331bd
  create-archive:
Packit 39331bd
    - python3 setup.py sdist --dist-dir ./fedora/
Packit 39331bd
    - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
Packit 39331bd
  get-current-version: python3 setup.py --version
Packit 39331bd
Packit 39331bd
srpm_build_deps:
Packit 39331bd
  - python3-pip # "python3 setup.py --version" needs it
Packit 39331bd
  - python3-setuptools_scm
Packit 39331bd
Packit 39331bd
jobs:
Packit 39331bd
  - job: propose_downstream
Packit 39331bd
    trigger: release
Packit b781189
    dist_git_branches:
Packit b781189
      - fedora-all
Packit 39331bd
  - job: propose_downstream
Packit 39331bd
    trigger: release
Packit 39331bd
    specfile_path: epel/python-specfile.spec
Packit 39331bd
    files_to_sync:
Packit 39331bd
      - epel/python-specfile.spec
Packit 39331bd
      - .packit.yaml
Packit b781189
    dist_git_branches:
Packit b781189
      - epel-8
Packit 39331bd
Packit 39331bd
  - job: copr_build
Packit 39331bd
    trigger: pull_request
Packit 39331bd
    identifier: fedora
Packit b781189
    targets:
Packit b781189
      - fedora-all
Packit 39331bd
  - &copr_build_pr_epel
Packit 39331bd
    job: copr_build
Packit 39331bd
    trigger: pull_request
Packit 39331bd
    specfile_path: epel/python-specfile.spec
Packit 39331bd
    identifier: epel
Packit 39331bd
    actions:
Packit 39331bd
      create-archive:
Packit 39331bd
        - python3 setup.py sdist --dist-dir ./epel/
Packit 39331bd
        - bash -c "ls -1t ./epel/*.tar.gz | head -n 1"
Packit 39331bd
      get-current-version: python3 setup.py --version
Packit b781189
    targets:
Packit b781189
      - epel-8
Packit 39331bd
Packit 39331bd
  - job: copr_build
Packit 39331bd
    trigger: commit
Packit b781189
    branch: main
Packit b781189
    targets:
Packit b781189
      - fedora-all
Packit b781189
    project: packit-dev
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit 39331bd
  - <<: *copr_build_pr_epel
Packit 39331bd
    trigger: commit
Packit b781189
    branch: main
Packit b781189
    targets:
Packit b781189
      - epel-8
Packit b781189
    project: packit-dev
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit b781189
Packit b781189
  - job: copr_build
Packit b781189
    trigger: commit
Packit b781189
    branch: stable
Packit b781189
    targets:
Packit b781189
      - fedora-stable
Packit b781189
    project: packit-stable
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit b781189
  - <<: *copr_build_pr_epel
Packit b781189
    trigger: commit
Packit b781189
    branch: stable
Packit b781189
    targets:
Packit b781189
      - epel-8
Packit b781189
    project: packit-stable
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit 39331bd
Packit 39331bd
  - job: copr_build
Packit 39331bd
    trigger: release
Packit b781189
    targets:
Packit b781189
      - fedora-all
Packit b781189
    project: packit-releases
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit 39331bd
  - <<: *copr_build_pr_epel
Packit 39331bd
    trigger: release
Packit b781189
    targets:
Packit b781189
      - epel-8
Packit b781189
    project: packit-releases
Packit b781189
    list_on_homepage: True
Packit b781189
    preserve_project: True
Packit 39331bd
Packit 39331bd
  # downstream automation:
Packit 39331bd
  - job: koji_build
Packit 39331bd
    trigger: commit
Packit 0c7f08a
    packit_instances: ["stg"]
Packit b781189
    dist_git_branches:
Packit b781189
      - fedora-all
Packit b781189
      - epel-8
Packit 39331bd
  - job: bodhi_update
Packit 39331bd
    trigger: commit
Packit 0c7f08a
    packit_instances: ["stg"]
Packit b781189
    dist_git_branches:
Packit 9a1bd64
      - fedora-stable # rawhide and branched updates are created automatically
Packit b781189
      - epel-8