Blob Blame History Raw
# See the documentation for more information:
# https://packit.dev/docs/configuration/
upstream_project_url: https://github.com/martinpitt/python-dbusmock
# HACK: should work without, but propose_downstream fails; https://github.com/packit/packit-service/issues/1511
specfile_path: packaging/python-dbusmock.spec
issue_repository: https://github.com/martinpitt/python-dbusmock
copy_upstream_release_description: true
upstream_package_name: python-dbusmock
downstream_package_name: python-dbusmock

actions:
  create-archive:
    - ./setup.py sdist
    # spec and tarball need to be in the same directory
    - sh -c 'mv dist/*.tar.* packaging; ls packaging/python-dbusmock-*.tar.*'

srpm_build_deps:
  - python3-setuptools

jobs:
  - job: tests
    trigger: pull_request
    metadata:
      targets:
        - fedora-development
        - fedora-stable

  - job: propose_downstream
    trigger: release
    metadata:
      dist_git_branches:
        - fedora-development
        - fedora-stable

  - job: koji_build
    trigger: commit
    metadata:
      dist_git_branches:
        - fedora-all

  - job: bodhi_update
    trigger: commit
    metadata:
      dist_git_branches:
        # rawhide updates are created automatically
        - fedora-branched