|
1 | 1 | --- |
2 | | -# We want to use both instances for all upstream jobs including the `propose-downstream` one. |
3 | | -# For downstream, we need to pick just one instance (`stg` in our case) |
4 | | -# and redefine it for the `koji_build` and `bodhi_update` jobs. |
5 | 2 | packit_instances: ["prod", "stg"] |
6 | 3 |
|
7 | | -specfile_path: fedora/python-specfile.spec |
8 | | - |
9 | | -# add or remove files that should be synced |
10 | | -files_to_sync: |
11 | | - - fedora/python-specfile.spec |
12 | | - - .packit.yaml |
13 | | - - src: plans/ |
14 | | - dest: plans/ |
15 | | - - src: .fmf/ |
16 | | - dest: .fmf/ |
17 | | - |
18 | | -# name in upstream package repository or registry (e.g. in PyPI) |
19 | 4 | upstream_package_name: specfile |
20 | | -# downstream (Fedora) RPM package name |
21 | 5 | downstream_package_name: python-specfile |
22 | 6 |
|
23 | | -copy_upstream_release_description: true |
24 | | - |
25 | 7 | upstream_project_url: https://github.com/packit/specfile |
26 | 8 | issue_repository: https://github.com/packit/specfile |
27 | 9 |
|
| 10 | +copy_upstream_release_description: true |
| 11 | + |
28 | 12 | actions: |
29 | | - # we need this b/c `git archive` doesn't put all the metadata in the tarball: |
30 | | - # LookupError: setuptools-scm was unable to detect version for '/builddir/build/BUILD/ogr-0.11.1'. |
31 | | - # Make sure you're either building from a fully intact git repository or PyPI tarballs. |
32 | | - create-archive: |
33 | | - - python3 -m build --sdist --outdir ./fedora/ |
34 | | - - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" |
35 | | - get-current-version: python3 -m setuptools_scm |
36 | 13 | pre-sync: |
37 | | - # FMF has to be installed on system where you are calling this tool. |
38 | 14 | - python3 plans/git_reference.py |
39 | 15 |
|
40 | | -srpm_build_deps: |
41 | | - - python3-build |
42 | | - - python3-setuptools_scm |
| 16 | +packages: |
| 17 | + specfile: |
| 18 | + specfile_path: &specfile_path fedora/python-specfile.spec |
| 19 | + files_to_sync: |
| 20 | + - *specfile_path |
| 21 | + - .packit.yaml |
| 22 | + - src: plans/ |
| 23 | + dest: plans/ |
| 24 | + - src: .fmf/ |
| 25 | + dest: .fmf/ |
| 26 | + srpm_build_deps: |
| 27 | + - python3-build |
| 28 | + - python3-setuptools_scm |
| 29 | + actions: |
| 30 | + create-archive: |
| 31 | + - python3 -m build --sdist --outdir ./fedora/ |
| 32 | + - bash -c "ls -1t ./fedora/*.tar.gz | head -n 1" |
| 33 | + get-current-version: python3 -m setuptools_scm |
43 | 34 |
|
44 | | -jobs: |
45 | | - - job: propose_downstream |
46 | | - trigger: release |
47 | | - dist_git_branches: |
48 | | - - fedora-all |
49 | | - - epel-9 |
| 35 | + specfile-epel8: |
| 36 | + specfile_path: &specfile_path_epel8 epel8/python-specfile.spec |
| 37 | + files_to_sync: |
| 38 | + - *specfile_path_epel8 |
| 39 | + - .packit.yaml |
| 40 | + - src: plans/ |
| 41 | + dest: plans/ |
| 42 | + - src: .fmf/ |
| 43 | + dest: .fmf/ |
| 44 | + srpm_build_deps: |
| 45 | + - python3-setuptools_scm |
| 46 | + actions: |
| 47 | + create-archive: |
| 48 | + - python3 setup.py sdist --dist-dir ./epel8/ |
| 49 | + - bash -c "ls -1t ./epel8/*.tar.gz | head -n 1" |
| 50 | + get-current-version: python3 setup.py --version |
50 | 51 |
|
| 52 | +jobs: |
51 | 53 | - job: copr_build |
52 | 54 | trigger: pull_request |
| 55 | + packages: [specfile] |
53 | 56 | targets: |
54 | 57 | - fedora-all |
55 | 58 | - epel-9 |
56 | | - |
57 | | - - job: tests |
| 59 | + - job: copr_build |
58 | 60 | trigger: pull_request |
| 61 | + packages: [specfile-epel8] |
59 | 62 | targets: |
60 | | - - fedora-all |
61 | | - - epel-9 |
| 63 | + - epel-8 |
62 | 64 |
|
63 | 65 | - job: copr_build |
64 | 66 | trigger: commit |
65 | 67 | branch: main |
| 68 | + packages: [specfile] |
66 | 69 | targets: |
67 | 70 | - fedora-all |
68 | 71 | - epel-9 |
69 | 72 | project: packit-dev |
70 | 73 | list_on_homepage: True |
71 | 74 | preserve_project: True |
| 75 | + - job: copr_build |
| 76 | + trigger: commit |
| 77 | + branch: main |
| 78 | + packages: [specfile-epel8] |
| 79 | + targets: |
| 80 | + - epel-8 |
| 81 | + project: packit-dev |
| 82 | + list_on_homepage: True |
| 83 | + preserve_project: True |
72 | 84 |
|
73 | 85 | - job: copr_build |
74 | 86 | trigger: commit |
75 | 87 | branch: stable |
| 88 | + packages: [specfile] |
76 | 89 | targets: |
77 | 90 | - fedora-stable |
78 | 91 | - epel-9 |
79 | 92 | project: packit-stable |
80 | 93 | list_on_homepage: True |
81 | 94 | preserve_project: True |
| 95 | + - job: copr_build |
| 96 | + trigger: commit |
| 97 | + branch: stable |
| 98 | + packages: [specfile-epel8] |
| 99 | + targets: |
| 100 | + - epel-8 |
| 101 | + project: packit-stable |
| 102 | + list_on_homepage: True |
| 103 | + preserve_project: True |
82 | 104 |
|
83 | 105 | - job: copr_build |
84 | 106 | trigger: release |
| 107 | + packages: [specfile] |
85 | 108 | targets: |
86 | 109 | - fedora-all |
87 | 110 | - epel-9 |
88 | 111 | project: packit-releases |
89 | 112 | list_on_homepage: True |
90 | 113 | preserve_project: True |
| 114 | + - job: copr_build |
| 115 | + trigger: release |
| 116 | + packages: [specfile-epel8] |
| 117 | + targets: |
| 118 | + - epel-8 |
| 119 | + project: packit-releases |
| 120 | + list_on_homepage: True |
| 121 | + preserve_project: True |
| 122 | + |
| 123 | + - job: tests |
| 124 | + trigger: pull_request |
| 125 | + packages: [specfile] |
| 126 | + targets: |
| 127 | + - fedora-all |
| 128 | + - epel-9 |
| 129 | + - job: tests |
| 130 | + trigger: pull_request |
| 131 | + packages: [specfile-epel8] |
| 132 | + targets: |
| 133 | + - epel-8 |
| 134 | + |
| 135 | + - job: propose_downstream |
| 136 | + trigger: release |
| 137 | + packages: [specfile] |
| 138 | + dist_git_branches: |
| 139 | + - fedora-all |
| 140 | + - epel-9 |
| 141 | + - job: propose_downstream |
| 142 | + trigger: release |
| 143 | + packages: [specfile-epel8] |
| 144 | + dist_git_branches: |
| 145 | + - epel-8 |
91 | 146 |
|
92 | 147 | - job: pull_from_upstream |
93 | 148 | trigger: release |
| 149 | + packages: [specfile] |
94 | 150 | dist_git_branches: |
95 | 151 | - fedora-all |
96 | 152 | - epel-9 |
| 153 | + - job: pull_from_upstream |
| 154 | + trigger: release |
| 155 | + packages: [specfile-epel8] |
| 156 | + dist_git_branches: |
| 157 | + - epel-8 |
97 | 158 |
|
98 | | - # downstream automation: |
99 | 159 | - job: koji_build |
100 | 160 | trigger: commit |
101 | 161 | packit_instances: ["stg"] |
102 | 162 | allowed_pr_authors: ["packit-stg", "packit"] |
103 | 163 | dist_git_branches: |
104 | 164 | - fedora-all |
105 | 165 | - epel-9 |
| 166 | + - epel-8 |
| 167 | + |
106 | 168 | - job: bodhi_update |
107 | 169 | trigger: commit |
108 | 170 | packit_instances: ["stg"] |
109 | 171 | dist_git_branches: |
110 | 172 | - fedora-branched # rawhide updates are created automatically |
111 | 173 | - epel-9 |
| 174 | + - epel-8 |
0 commit comments