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