-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.packit.yaml
51 lines (47 loc) · 1.76 KB
/
.packit.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
# We want to use both instances for all upstream jobs including the `propose-downstream` one.
# For downstream, we need to pick just one instance (`stg` in our case)
# and redefine it for the `koji_build` and `bodhi_update` jobs.
packit_instances: ["prod", "stg"]
specfile_path: fedora/python-ogr.spec
# https://packit.dev/docs/configuration/#top-level-keys
downstream_package_name: python-ogr
upstream_project_url: https://github.com/packit/ogr
issue_repository: https://github.com/packit/ogr
# we are setting this so we can use packit from ogr's dist-git
# packit can't know what's the upstream name when running from distgit
upstream_package_name: ogr
copy_upstream_release_description: true
actions:
# we need this b/c `git archive` doesn't put all the metadata in the tarball:
# LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'.
# Make sure you're either building from a fully intact git repository or PyPI tarballs.
create-archive:
- python3 setup.py sdist --dist-dir ./fedora/
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 setup.py --version
srpm_build_deps:
- python3-pip # "python3 setup.py --version" needs it
- python3-setuptools_scm
jobs:
- job: copr_build
trigger: pull_request
targets:
- fedora-37-x86_64
project: vm-image-ogr-demo
identifier: vm-image-demo
- job: vm_image_build
trigger: pull_request
copr_chroot: fedora-37-x86_64
owner: packit
project: vm-image-ogr-demo
image_customizations:
packages: [python3-ogr]
image_distribution: fedora-37
image_request:
architecture: x86_64
image_type: aws
upload_request:
type: aws
options:
share_with_accounts: ["727920394381"]