Add a Packit configuration for Fedora packaging (#1086)

* Add Packit configuration for Fedora packaging

 - all pull requests are build-tested in https://copr.fedorainfracloud.org
 - new releases will create pull requests in https://src.fedoraproject.org/rpms/httpie

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
This commit is contained in:
Miro Hrončok 2021-06-09 17:18:27 +02:00 committed by GitHub
parent 61f1ffd0eb
commit da03a0656e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

5
.gitignore vendored
View File

@ -139,3 +139,8 @@ dmypy.json
# Pyre type checker # Pyre type checker
.pyre/ .pyre/
# Packit
/httpie.spec
/httpie-*.rpm
/httpie-*.tar.gz

19
.packit.yaml Normal file
View File

@ -0,0 +1,19 @@
# See the documentation for more information:
# https://packit.dev/docs/configuration/
specfile_path: httpie.spec
actions:
# the current Fedora Rawhide specfile has some patches
# so we get it from @hroncok's (= churchyard in Fedora) fork for now
# once we have a new release, we'll use: https://src.fedoraproject.org/rpms/httpie/raw/rawhide/f/httpie.spec
post-upstream-clone: "wget https://src.fedoraproject.org/fork/churchyard/rpms/httpie/raw/packit/f/httpie.spec -O httpie.spec"
jobs:
- job: copr_build
trigger: pull_request
metadata:
targets:
- fedora-all
- job: propose_downstream
trigger: release
metadata:
dist_git_branches:
- rawhide