0b6d665
---
0b6d665
specfile_path: fedora/python-requre.spec
0b6d665
# https://packit.dev/docs/configuration/#top-level-keys
0b6d665
downstream_package_name: python-requre
0b6d665
upstream_project_url: https://github.com/packit/requre
0b6d665
# we are setting this so we can use packit from requre's dist-git
0b6d665
# packit can't know what's the upstream name when running from distgit
0b6d665
upstream_package_name: requre
76b928b
# Use release description from GitHub when updating the
76b928b
# changelog in Fedora.
76b928b
copy_upstream_release_description: true
0b6d665
actions:
0b6d665
  # we need this b/c `git archive` doesn't put all the metadata in the tarball:
0b6d665
  #   LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/requre-0.11.1'.
0b6d665
  #   Make sure you're either building from a fully intact git repository or PyPI tarballs.
0b6d665
  create-archive:
0b6d665
    - python3 setup.py sdist --dist-dir ./fedora/
0b6d665
    - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
0b6d665
  get-current-version: python3 setup.py --version
0b6d665
jobs:
0b6d665
  - job: sync_from_downstream
0b6d665
    trigger: commit
0b6d665
  - job: propose_downstream
0b6d665
    trigger: release
0b6d665
    metadata:
0b6d665
      dist_git_branches: fedora-all
0b6d665
  - job: copr_build
0b6d665
    trigger: pull_request
0b6d665
    metadata:
0b6d665
      targets:
0b6d665
        - fedora-all
76b928b
        - epel-8
0b6d665
  - job: copr_build
0b6d665
    trigger: commit
0b6d665
    metadata:
963c4ad
      branch: main
0b6d665
      targets:
Packit Service 17e6e4e
        - fedora-all
76b928b
        - epel-8
0b6d665
      list_on_homepage: True
0b6d665
      preserve_project: True
0b6d665
  - job: copr_build
0b6d665
    trigger: release
0b6d665
    metadata:
0b6d665
      targets:
Packit Service 17e6e4e
        - fedora-all
76b928b
        - epel-8
0b6d665
      list_on_homepage: True
0b6d665
      preserve_project: True