Skip to content

Commit 010ba2c

Browse files
authored
Fix Packit config (#261)
It turns out it's not possible to define certain keys at the top level, because they are not propagated to packages.
2 parents 799a1a2 + 90a7b59 commit 010ba2c

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.packit.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,15 @@
11
---
22
packit_instances: ["prod", "stg"]
33

4-
upstream_package_name: specfile
5-
downstream_package_name: python-specfile
6-
74
upstream_project_url: https://github.com/packit/specfile
85
issue_repository: https://github.com/packit/specfile
96

107
copy_upstream_release_description: true
118

12-
actions:
13-
pre-sync:
14-
- python3 plans/git_reference.py
15-
169
packages:
1710
specfile:
11+
upstream_package_name: specfile
12+
downstream_package_name: python-specfile
1813
specfile_path: &specfile_path fedora/python-specfile.spec
1914
files_to_sync:
2015
- *specfile_path
@@ -27,12 +22,16 @@ packages:
2722
- python3-build
2823
- python3-setuptools_scm
2924
actions:
25+
pre-sync:
26+
- python3 plans/git_reference.py
3027
create-archive:
3128
- python3 -m build --sdist --outdir ./fedora/
3229
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
3330
get-current-version: python3 -m setuptools_scm
3431

3532
specfile-epel8:
33+
upstream_package_name: specfile
34+
downstream_package_name: python-specfile
3635
specfile_path: &specfile_path_epel8 epel8/python-specfile.spec
3736
files_to_sync:
3837
- *specfile_path_epel8
@@ -44,6 +43,8 @@ packages:
4443
srpm_build_deps:
4544
- python3-setuptools_scm
4645
actions:
46+
pre-sync:
47+
- python3 plans/git_reference.py
4748
create-archive:
4849
- python3 setup.py sdist --dist-dir ./epel8/
4950
- bash -c "ls -1t ./epel8/*.tar.gz | head -n 1"

0 commit comments

Comments
 (0)