Compare commits

...
Sign in to create a new pull request.

85 commits

Author SHA1 Message Date
Packit
a2c0837687 Update to 0.38.0 upstream release
Upstream tag: 0.38.0
Upstream commit: a07560dd

Commit authored by Packit automation (https://packit.dev/)
2026-01-08 13:46:30 +00:00
Packit
c27acf482d Update to 0.37.1 upstream release
Upstream tag: 0.37.1
Upstream commit: 21a45baa

Commit authored by Packit automation (https://packit.dev/)
2025-10-03 12:53:39 +00:00
Python Maint
37fc4cce30 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 14:28:43 +02:00
Packit
6a2e99d0cd Update to 0.37.0 upstream release
Upstream tag: 0.37.0
Upstream commit: aafca33c

Commit authored by Packit automation (https://packit.dev/)
2025-09-05 11:36:57 +00:00
Python Maint
255850c4d0 Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 14:53:44 +02:00
Fedora Release Engineering
95dd7cbb35 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 10:29:09 +00:00
Python Maint
6ab91659ee Rebuilt for Python 3.14 2025-06-06 09:34:05 +02:00
Packit
cbec9f2d89 Update to 0.36.0 upstream release
Upstream tag: 0.36.0
Upstream commit: 24206539

Commit authored by Packit automation (https://packit.dev/)
2025-06-04 10:13:11 +02:00
Python Maint
8d528abc1a Rebuilt for Python 3.14 2025-06-04 01:04:24 +02:00
Packit
4a9bf54ee5 Update to 0.35.1 upstream release
Upstream tag: 0.35.1
Upstream commit: 81569906

Commit authored by Packit automation (https://packit.dev/)
2025-05-16 10:16:20 +00:00
Packit
6fd040e968 Update to 0.35.0 upstream release
Upstream tag: 0.35.0
Upstream commit: e059c302

Commit authored by Packit automation (https://packit.dev/)
2025-04-13 19:50:14 +00:00
Packit
cd2734eafa Update to 0.34.2 upstream release
Upstream tag: 0.34.2
Upstream commit: 875f03ed

Commit authored by Packit automation (https://packit.dev/)
2025-03-18 07:25:26 +00:00
Packit
b5d526fe90 Update to 0.34.1 upstream release
Upstream tag: 0.34.1
Upstream commit: 192a081a

Commit authored by Packit automation (https://packit.dev/)
2025-02-07 14:32:37 +00:00
Packit
029e441ef5 Update to 0.34.0 upstream release
- Resolves: rhbz#2342178

Upstream tag: 0.34.0
Upstream commit: 84d6f3b4

Commit authored by Packit automation (https://packit.dev/)
2025-01-27 10:41:56 +00:00
Fedora Release Engineering
009f0dbe92 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 19:29:23 +00:00
Packit
796658fb51 Update to 0.33.0 upstream release
- Resolves: rhbz#2332288

Upstream tag: 0.33.0
Upstream commit: c0a98a85

Commit authored by Packit automation (https://packit.dev/)
2024-12-16 08:22:08 +00:00
Packit
8bf9b9ebc7 Update to 0.32.6 upstream release
Upstream tag: 0.32.6
Upstream commit: 442e2a97

Commit authored by Packit automation (https://packit.dev/)
2024-11-13 13:14:12 +00:00
Packit
4fe6dde7b1 Update to 0.32.5 upstream release
Upstream tag: 0.32.5
Upstream commit: c38cfaad

Commit authored by Packit automation (https://packit.dev/)
2024-10-26 21:35:20 +00:00
Packit
417cf36f94 Update to 0.32.4 upstream release
Upstream tag: 0.32.4
Upstream commit: 4ab43365

Commit authored by Packit automation (https://packit.dev/)
2024-10-11 11:03:25 +00:00
Packit
08da0e9239 Update to 0.32.3 upstream release
- Resolves: rhbz#2299289

Upstream tag: 0.32.3
Upstream commit: c2be0297

Commit authored by Packit automation (https://packit.dev/)
2024-09-30 12:52:50 +02:00
7c31289bd2 Open sync_release PRs from rawhide to non-rawhide branches
Signed-off-by: Nikola Forró <nforro@redhat.com>
2024-09-26 17:44:30 +02:00
6a3e7b0ab1 Merge branch 'f41' into rawhide 2024-09-26 17:43:25 +02:00
9a0937122c Merge branch 'f40' into rawhide 2024-09-26 17:43:04 +02:00
753fdb8705 Merge branch 'f39' into rawhide 2024-09-26 17:42:06 +02:00
Packit
78b06433a0 Update to 0.32.2 upstream release
Upstream tag: 0.32.2
Upstream commit: 514fbded

Commit authored by Packit automation (https://packit.dev/)
2024-09-15 20:56:47 +00:00
Packit
fa08354702 Update to 0.32.2 upstream release
Upstream tag: 0.32.2
Upstream commit: 514fbded

Commit authored by Packit automation (https://packit.dev/)
2024-09-15 20:56:25 +00:00
Packit
beb1fdcc26 Update to 0.32.2 upstream release
Upstream tag: 0.32.2
Upstream commit: 514fbded

Commit authored by Packit automation (https://packit.dev/)
2024-09-15 20:56:03 +00:00
Packit
1896184d4a Update to 0.32.2 upstream release
Upstream tag: 0.32.2
Upstream commit: 514fbded

Commit authored by Packit automation (https://packit.dev/)
2024-09-15 20:55:36 +00:00
Packit
9e1797be7f Update to 0.32.1 upstream release
Upstream tag: 0.32.1
Upstream commit: 8aac26db

Commit authored by Packit automation (https://packit.dev/)
2024-07-29 15:27:38 +00:00
Packit
bd441be526 Update to 0.32.1 upstream release
Upstream tag: 0.32.1
Upstream commit: 8aac26db

Commit authored by Packit automation (https://packit.dev/)
2024-07-29 15:27:07 +00:00
Packit
96a665be97 Update to 0.32.1 upstream release
Upstream tag: 0.32.1
Upstream commit: 8aac26db

Commit authored by Packit automation (https://packit.dev/)
2024-07-29 15:26:34 +00:00
Packit
bf3ff3d38a Update to 0.32.0 upstream release
Upstream tag: 0.32.0
Upstream commit: 122eefa5

Commit authored by Packit automation (https://packit.dev/)
2024-07-22 07:13:55 +00:00
Packit
64054ae04f Update to 0.32.0 upstream release
Upstream tag: 0.32.0
Upstream commit: 122eefa5

Commit authored by Packit automation (https://packit.dev/)
2024-07-22 07:13:07 +00:00
Packit
44fc619f7b Update to 0.32.0 upstream release
Upstream tag: 0.32.0
Upstream commit: 122eefa5

Commit authored by Packit automation (https://packit.dev/)
2024-07-22 07:12:42 +00:00
Fedora Release Engineering
0ad558f4a4 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 15:58:22 +00:00
Packit
3be0cbabdd Update to 0.31.0 upstream release
- Resolves: rhbz#2294393

Upstream tag: 0.31.0
Upstream commit: 8aba712b

Commit authored by Packit automation (https://packit.dev/)
2024-07-09 10:25:40 +00:00
Packit
dc7e815c32 Update to 0.31.0 upstream release
- Resolves: rhbz#2294393

Upstream tag: 0.31.0
Upstream commit: 8aba712b

Commit authored by Packit automation (https://packit.dev/)
2024-07-09 10:25:16 +00:00
Packit
e977d66193 Update to 0.31.0 upstream release
- Resolves: rhbz#2294393

Upstream tag: 0.31.0
Upstream commit: 8aba712b

Commit authored by Packit automation (https://packit.dev/)
2024-07-09 10:24:26 +00:00
Packit
267989c885 Update to 0.30.0 upstream release
Upstream tag: 0.30.0
Upstream commit: 85a0b40d

Commit authored by Packit automation (https://packit.dev/)
2024-06-26 12:26:49 +00:00
Packit
6fbc47a40c Update to 0.30.0 upstream release
Upstream tag: 0.30.0
Upstream commit: 85a0b40d

Commit authored by Packit automation (https://packit.dev/)
2024-06-26 12:25:35 +00:00
Packit
660d416f29 Update to 0.30.0 upstream release
Upstream tag: 0.30.0
Upstream commit: 85a0b40d

Commit authored by Packit automation (https://packit.dev/)
2024-06-26 12:25:00 +00:00
Packit
615b75b738 Update to 0.29.0 upstream release
- Resolves: rhbz#2282962

Upstream tag: 0.29.0
Upstream commit: 0ba5f9ff

Commit authored by Packit automation (https://packit.dev/)
2024-06-17 10:11:21 +00:00
Python Maint
04974d08cc Rebuilt for Python 3.13 2024-06-09 12:03:16 +02:00
Packit
7ea300ef27 Update to 0.29.0 upstream release
Upstream tag: 0.29.0
Upstream commit: 0ba5f9ff

Commit authored by Packit automation (https://packit.dev/)
2024-06-06 13:56:05 +00:00
Packit
1926c35895 Update to 0.29.0 upstream release
Upstream tag: 0.29.0
Upstream commit: 0ba5f9ff

Commit authored by Packit automation (https://packit.dev/)
2024-06-06 13:55:01 +00:00
Packit
c369062a7d Update to 0.28.3 upstream release
Upstream tag: 0.28.3
Upstream commit: 557c33bd

Commit authored by Packit automation (https://packit.dev/)
2024-05-23 11:22:49 +00:00
Packit
b5fdf1b896 Update to 0.28.3 upstream release
Upstream tag: 0.28.3
Upstream commit: 557c33bd

Commit authored by Packit automation (https://packit.dev/)
2024-05-23 11:22:21 +00:00
Packit
dfa7de4a8f Update to 0.28.3 upstream release
Upstream tag: 0.28.3
Upstream commit: 557c33bd

Commit authored by Packit automation (https://packit.dev/)
2024-05-23 11:21:51 +00:00
Packit
f2d2ef1a7d Update to 0.28.2 upstream release
- Resolves: rhbz#2271583

Upstream tag: 0.28.2
Upstream commit: 904cb3b5

Commit authored by Packit automation (https://packit.dev/)
2024-04-08 13:58:53 +00:00
Packit
e1ede09317 Update to 0.28.2 upstream release
- Resolves: rhbz#2271583

Upstream tag: 0.28.2
Upstream commit: 904cb3b5

Commit authored by Packit automation (https://packit.dev/)
2024-04-08 13:57:25 +00:00
Packit
6aecb6e05d Update to 0.28.2 upstream release
- Resolves: rhbz#2271583

Upstream tag: 0.28.2
Upstream commit: 904cb3b5

Commit authored by Packit automation (https://packit.dev/)
2024-04-08 13:56:53 +00:00
Packit
832c1bfa03 [packit] 0.28.1 upstream release
Upstream tag: 0.28.1
Upstream commit: a14e6887
2024-03-26 11:35:00 +00:00
Packit
0d3925f069 [packit] 0.28.1 upstream release
Upstream tag: 0.28.1
Upstream commit: a14e6887
2024-03-26 11:34:21 +00:00
Packit
9cd47e49b2 [packit] 0.28.1 upstream release
Upstream tag: 0.28.1
Upstream commit: a14e6887
2024-03-26 11:33:41 +00:00
Packit
ad6f042da8 [packit] 0.28.0 upstream release
Upstream tag: 0.28.0
Upstream commit: cdf06f20
2024-03-17 15:09:29 +00:00
Packit
c9176b90a7 [packit] 0.28.0 upstream release
Upstream tag: 0.28.0
Upstream commit: cdf06f20
2024-03-17 15:08:49 +00:00
Packit
e21192d12d [packit] 0.28.0 upstream release
Upstream tag: 0.28.0
Upstream commit: cdf06f20
2024-03-17 15:07:28 +00:00
Fedora Release Engineering
abdf0dedd7 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 10:56:43 +00:00
Packit
b208824aae [packit] 0.27.0 upstream release
Upstream tag: 0.27.0
Upstream commit: 1789f9c6
2024-01-19 13:30:39 +00:00
Packit
e487254215 [packit] 0.27.0 upstream release
Upstream tag: 0.27.0
Upstream commit: 1789f9c6
2024-01-19 13:29:53 +00:00
Packit
5ab305f83f [packit] 0.25.0 upstream release
Upstream tag: 0.25.0
Upstream commit: 78f50b4a
2023-11-20 15:01:56 +00:00
Packit
3e8c28f541 [packit] 0.25.0 upstream release
Upstream tag: 0.25.0
Upstream commit: 78f50b4a
2023-11-20 15:01:13 +00:00
Packit
13cddbfab7 [packit] 0.24.0 upstream release
Upstream tag: 0.24.0
Upstream commit: 2efbd9ce
2023-11-06 17:19:23 +00:00
Packit
ce94f144fe [packit] 0.24.0 upstream release
Upstream tag: 0.24.0
Upstream commit: 2efbd9ce
2023-11-06 17:18:59 +00:00
Packit
088a8f0610 [packit] 0.23.0 upstream release
Upstream tag: 0.23.0
Upstream commit: 0e110df4
2023-10-30 09:15:09 +00:00
Packit
d2f67697c0 [packit] 0.23.0 upstream release
Upstream tag: 0.23.0
Upstream commit: 0e110df4
2023-10-30 09:14:15 +00:00
Packit
a1df8b299f [packit] 0.22.1 upstream release
Upstream tag: 0.22.1
Upstream commit: 0af08c92
2023-10-06 13:13:33 +00:00
Packit
43d842225a [packit] 0.22.1 upstream release
Upstream tag: 0.22.1
Upstream commit: 0af08c92
2023-10-06 13:12:58 +00:00
Packit
a16986d5c5 [packit] 0.22.0 upstream release
Upstream tag: 0.22.0
Upstream commit: e49e5e3f

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit-stg/rpms/python-specfile.git refs/heads/*:refs/remotes/packit-stg/*
git checkout packit-stg/0.22.0-f39-update-propose_downstream
```
2023-09-01 13:41:18 +00:00
Packit
9cdf40188f [packit] 0.22.0 upstream release
Upstream tag: 0.22.0
Upstream commit: e49e5e3f

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit-stg/rpms/python-specfile.git refs/heads/*:refs/remotes/packit-stg/*
git checkout packit-stg/0.22.0-rawhide-update-propose_downstream
```
2023-09-01 13:40:14 +00:00
a54a607ee4 [packit] 0.21.0 upstream release
Upstream tag: 0.21.0
Upstream commit: 56360c0a
2023-08-11 15:27:49 +02:00
d5184c2cd6 [packit] 0.21.0 upstream release
Upstream tag: 0.21.0
Upstream commit: 56360c0a
2023-08-11 15:26:16 +02:00
Matej Focko
478a834385
chore: be explicit about GPG keys in Packit config
Signed-off-by: Matej Focko <mfocko@redhat.com>
(cherry picked from commit 4c376af84d)
2023-08-11 14:45:58 +02:00
Matej Focko
4c376af84d
chore: be explicit about GPG keys in Packit config
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-08-11 14:44:30 +02:00
Matej Focko
2b1f7a5adc
chore: add GitHub's GPG key to Packit config
Signed-off-by: Matej Focko <mfocko@redhat.com>
(cherry picked from commit c90a1932f9)
2023-08-11 14:29:15 +02:00
Matej Focko
c90a1932f9
chore: add GitHub's GPG key to Packit config
Signed-off-by: Matej Focko <mfocko@redhat.com>
2023-08-11 14:26:00 +02:00
Packit
45a5cfd616 [packit] 0.20.2 upstream release
Upstream tag: 0.20.2
Upstream commit: 4486a88c

If you need to do any change in this pull request, you need to locally fetch the source branch of it and push it (with a fix) to your fork (as it is not possible to push to the branch created in the Packit’s fork):
```
git fetch https://src.fedoraproject.org/forks/packit/rpms/python-specfile.git refs/heads/*:refs/remotes/packit/*
git checkout packit/0.20.2-rawhide-update-propose_downstream
```
2023-07-31 13:17:21 +00:00
Fedora Release Engineering
e72e665d3d Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 14:12:59 +00:00
Packit
e5153229aa [packit] 0.20.0 upstream release
Upstream tag: 0.20.0
Upstream commit: 8aae0b14
2023-07-13 15:30:04 +00:00
Python Maint
8bf8a618d5 Rebuilt for Python 3.12 2023-06-28 18:10:33 +02:00
Packit
e951aef0c2 [packit] 0.19.0 upstream release
Upstream tag: 0.19.0
Upstream commit: bad19f0c
2023-06-22 13:07:50 +00:00
Packit
4dd1a288d9 [packit] 0.18.0 upstream release
Upstream tag: 0.18.0
Upstream commit: e5615bf6
2023-05-26 09:55:31 +00:00
Packit
e665bf8831 [packit] 0.17.0 upstream release
Upstream tag: 0.17.0
Upstream commit: bc4fbbdd
2023-05-11 09:50:37 +00:00
Packit
aa77763efd [packit] 0.16.0 upstream release
Upstream tag: 0.16.0
Upstream commit: 15be0aba
2023-04-20 17:02:38 +00:00
Packit
364ead10dd [packit] 0.15.0 upstream release
Upstream tag: 0.15.0
Upstream commit: efb94f1d

Signed-off-by: Packit <hello@packit.dev>
2023-03-10 12:47:12 +00:00
10 changed files with 478 additions and 81 deletions

View file

@ -1,111 +1,287 @@
---
# 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-specfile.spec
# add or remove files that should be synced
files_to_sync:
- fedora/python-specfile.spec
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: specfile
# downstream (Fedora) RPM package name
downstream_package_name: python-specfile
copy_upstream_release_description: true
upstream_project_url: https://github.com/packit/specfile
issue_repository: https://github.com/packit/specfile
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 -m build --sdist --outdir ./fedora/
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 -m setuptools_scm
pre-sync:
# FMF has to be installed on system where you are calling this tool.
- python3 plans/git_reference.py
# PEP440
prerelease_suffix_pattern: "([.\\-_]?)(a(lpha)?|b(eta)?|r?c|pre(view)?)([.\\-_]?\\d+)?"
prerelease_suffix_macro: prerelease
srpm_build_deps:
- python3-build
- python3-setuptools_scm
copy_upstream_release_description: true
packages:
specfile: &specfile
upstream_package_name: specfile
downstream_package_name: python-specfile
specfile_path: &specfile_path fedora/python-specfile.spec
files_to_sync:
- *specfile_path
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
srpm_build_deps:
- python3-build
- python3-setuptools_scm
actions: &actions
pre-sync:
- python3 plans/git_reference.py
create-archive:
- python3 -m build --sdist --outdir ./fedora/
- bash -c "ls -1t ./fedora/*.tar.gz | head -n 1"
get-current-version: python3 -m setuptools_scm
specfile-epel8:
<<: *specfile
specfile_path: &specfile_path_epel8 epel8/python-specfile.spec
files_to_sync:
- *specfile_path_epel8
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
actions:
<<: *actions
create-archive:
- python3 setup.py sdist --dist-dir ./epel8/
- bash -c "ls -1t ./epel8/*.tar.gz | head -n 1"
specfile-epel10:
<<: *specfile
specfile_path: &specfile_path_epel10 epel10/python-specfile.spec
files_to_sync:
- *specfile_path_epel10
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
actions:
<<: *actions
create-archive:
- python3 setup.py sdist --dist-dir ./epel10/
- bash -c "ls -1t ./epel10/*.tar.gz | head -n 1"
# docs: https://gitlab.com/CentOS/Integration/packit-cbs/docs
specfile-centos-integration-sig:
<<: *specfile
specfile_path: &specfile_path_centos_sig centos-integration-sig/python-specfile.spec
files_to_sync:
- *specfile_path_centos_sig
- .packit.yaml
- src: plans/
dest: plans/
- src: .fmf/
dest: .fmf/
actions:
<<: *actions
create-archive:
- python3 -m build --sdist --outdir ./centos-integration-sig/
- bash -c "ls -1t ./centos-integration-sig/*.tar.gz | head -n 1"
dist_git_base_url: https://gitlab.com
dist_git_namespace: CentOS/Integration/packit-cbs/rpms
sig: Integration/packit-cbs
pkg_tool: centpkg-sig
jobs:
- job: propose_downstream
trigger: release
dist_git_branches:
- fedora-all
- epel-9
- job: copr_build
- &copr_build_pr
job: copr_build
trigger: pull_request
packages: [specfile]
targets:
- fedora-all
- fedora-all-aarch64
- epel-9
- job: tests
trigger: pull_request
- <<: *copr_build_pr
packages: [specfile-epel8]
targets:
- fedora-all
- epel-9
- epel-8
- <<: *copr_build_pr
packages: [specfile-epel10]
targets:
- epel-10-all
- job: copr_build
- &copr_build_commit_main
job: copr_build
trigger: commit
branch: main
packages: [specfile]
targets:
- fedora-all
- fedora-all-aarch64
- epel-9
project: packit-dev
list_on_homepage: True
preserve_project: True
- <<: *copr_build_commit_main
packages: [specfile-epel8]
targets:
- epel-8
- <<: *copr_build_commit_main
packages: [specfile-epel10]
targets:
- epel-10-all
- job: copr_build
- &copr_build_commit_stable
job: copr_build
trigger: commit
branch: stable
packages: [specfile]
targets:
- fedora-stable
- epel-9
- fedora-stable-aarch64
project: packit-stable
list_on_homepage: True
preserve_project: True
- job: copr_build
- &copr_build_release
job: copr_build
trigger: release
packages: [specfile]
targets:
- fedora-all
- fedora-all-aarch64
- epel-9
project: packit-releases
list_on_homepage: True
preserve_project: True
- <<: *copr_build_release
packages: [specfile-epel8]
targets:
- epel-8
- <<: *copr_build_release
packages: [specfile-epel10]
targets:
- epel-10-all
- job: pull_from_upstream
trigger: release
dist_git_branches:
- &tests
job: tests
trigger: pull_request
packages: [specfile]
tmt_plan: "smoke|full|packit-integration"
targets:
- fedora-all
- epel-9
- <<: *tests
identifier: performance
tmt_plan: performance
targets:
- fedora-rawhide
- <<: *tests
packages: [specfile-epel8]
tmt_plan: "smoke|full"
use_internal_tf: true
targets:
epel-8-x86_64:
distros: [RHEL-8.10.0-Nightly]
# enable EPEL
tf_extra_params:
environments:
- kickstart:
post-install: |
%post --log=/dev/console
set -x
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
%end
- <<: *tests
packages: [specfile-epel10]
tmt_plan: "smoke|full"
targets:
- epel-10-all
# downstream automation:
- job: koji_build
- &propose_downstream
job: propose_downstream
trigger: release
packages: [specfile]
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- eln
epel-9: {}
- <<: *propose_downstream
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- <<: *propose_downstream
packages: [specfile-epel10]
dist_git_branches:
epel-10:
fast_forward_merge_into:
- epel-10-branched
- <<: *propose_downstream
packages: [specfile-centos-integration-sig]
dist_git_branches:
- c9-sig-integration
- &pull_from_upstream
job: pull_from_upstream
trigger: release
packages: [specfile]
dist_git_branches:
rawhide:
fast_forward_merge_into:
- fedora-branched
- eln
epel-9: {}
- <<: *pull_from_upstream
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- <<: *pull_from_upstream
packages: [specfile-epel10]
dist_git_branches:
epel-10:
fast_forward_merge_into:
- epel-10-branched
- <<: *pull_from_upstream
packages: [specfile-centos-integration-sig]
dist_git_branches:
- c9-sig-integration
- &koji_build
job: koji_build
trigger: commit
packages: [specfile]
packit_instances: ["stg"]
allowed_pr_authors: ["packit-stg", "packit"]
dist_git_branches:
- fedora-all
- epel-9
- job: bodhi_update
trigger: commit
packit_instances: ["stg"]
- <<: *koji_build
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- <<: *koji_build
packages: [specfile-epel10]
dist_git_branches:
- epel-10-all
- <<: *koji_build
packages: [specfile-centos-integration-sig]
dist_git_branches:
- c9-sig-integration
- <<: *koji_build
sidetag_group: packit-specfile-ogr-releases
dependents:
- packit
dist_git_branches:
- fedora-all
- &bodhi_update
job: bodhi_update
trigger: commit
packages: [specfile]
packit_instances: ["stg"]
allowed_builders: ["packit-stg", "packit"]
dist_git_branches:
- fedora-branched # rawhide updates are created automatically
- epel-9
- <<: *bodhi_update
packages: [specfile-epel8]
dist_git_branches:
- epel-8
- <<: *bodhi_update
packages: [specfile-epel10]
dist_git_branches:
- epel-10-all

View file

@ -1,3 +1,3 @@
This repository is maintained by packit.
https://packit.dev/
The file was generated using packit 0.68.0.post11+gf18369e.
The file was generated using packit 1.13.0.post1.dev2+g84134016c.

View file

@ -3,9 +3,15 @@ summary:
discover+:
filter: tier:1
adjust:
- when: "distro == rhel-9 or distro == centos-9 or distro == centos-stream-9"
because: "flexmock is not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251"
prepare:
- when: "distro == rhel-8"
because: "only platform-python is installed on RHEL 8 by default"
prepare+:
- how: install
package: python3
- when: "distro == rhel-10 or distro == centos-10 or distro == centos-stream-10"
because: "flexmock is not in EPEL 10: https://bugzilla.redhat.com/show_bug.cgi?id=2351835"
prepare+:
- how: install
package: python3-pip
- how: shell

View file

@ -1,5 +1,8 @@
#!/usr/bin/python
# Copyright Contributors to the Packit project.
# SPDX-License-Identifier: MIT
import subprocess
from pathlib import Path

View file

@ -1,6 +1,6 @@
discover:
how: fmf
url: https://github.com/packit/specfile.git
ref: 78e2e8b30abd9e67e934f87c2aac0854f5a4b204
ref: a07560dd2609cf23add5deeadc103033611b7b22
execute:
how: tmt

View file

@ -1,8 +1,14 @@
discover:
how: fmf
url: https://github.com/packit/packit
filter: tier:0 | tier:1
ref: f18369ebcfbf9207f771fb1e9ec8e6c4b4467318
filter: tag:full
ref: 87042fcac49435dd55a1b989ed0c6ead290e703d
prepare:
- how: install
copr: packit/packit-dev
- how: shell
script: sed -i -n '/^priority=/!p;$apriority=5'
/etc/yum.repos.d/*:packit:packit-dev.repo
adjust:
- when: how == integration
because: provide latest python-specfile rpm when running locally
@ -11,9 +17,13 @@ adjust:
how: install
directory: noarch/
- when: distro == rhel-9 or distro == centos-9 or distro == centos-stream-9
because: 'flexmock and deepdiff are not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251'
because: 'build and deepdiff are not in EPEL 9: https://bugzilla.redhat.com/show_bug.cgi?id=2120251'
prepare+:
- how: install
package: python3-pip
- how: shell
script: pip3 install flexmock deepdiff
script: pip3 install build 'deepdiff < 8.0.0'
- when: |
distro == rhel-8 or distro == centos-8 or distro == centos-stream-8 or distro == rhel-9 or distro == centos-9 or distro == centos-stream-9
because: packit doesn't support EL 8
enabled: false

15
plans/performance.fmf Normal file
View file

@ -0,0 +1,15 @@
summary:
Performance tests
discover+:
filter: tier:3
prepare:
- how: install
package: python3-pip
- how: shell
script: pip3 install pytest-fail-slow
- how: shell
script: curl --output-dir /tmp -O https://src.fedoraproject.org/rpms/texlive/raw/rawhide/f/texlive.spec
adjust:
- when: "initiator != packit"
because: "skip this plan on dist-git pull requests"
enabled: false

View file

@ -2,3 +2,9 @@ summary:
Basic smoke test
discover+:
filter: tier:0
adjust:
- when: "distro == rhel-8"
because: "only platform-python is installed on RHEL 8 by default"
prepare+:
- how: install
package: python3

View file

@ -1,9 +1,4 @@
%if 0%{?rhel} == 9
# RHEL 9 is missing python-flexmock
%bcond_with tests
%else
%bcond_without tests
%endif
%global desc %{expand:
@ -12,19 +7,30 @@ Main focus is on modifying existing spec files, any change should result
in a minimal diff.}
%global base_version 0.38.0
#global prerelease rc1
%global package_version %{base_version}%{?prerelease:~%{prerelease}}
%global pypi_version %{base_version}%{?prerelease}
Name: python-specfile
Version: 0.14.0
Version: %{package_version}
Release: 1%{?dist}
Summary: A library for parsing and manipulating RPM spec files
License: MIT
URL: https://github.com/packit/specfile
Source0: %{pypi_source specfile}
Source0: %{pypi_source specfile %{pypi_version}}
BuildArch: noarch
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python3-devel
%if %{with tests}
# tests/unit/test_guess_packager.py
BuildRequires: git-core
%endif
%description
@ -40,7 +46,11 @@ Summary: %{summary}
%prep
%autosetup -p1 -n specfile-%{version}
%autosetup -p1 -n specfile-%{pypi_version}
# since we are building from PyPI source, we don't need git-archive
# support in setuptools_scm
sed -i 's/setuptools_scm\[toml\]>=7/setuptools_scm[toml]/' pyproject.toml
%generate_buildrequires
@ -58,7 +68,7 @@ Summary: %{summary}
%if %{with tests}
%check
%pytest
%pytest --verbose tests/unit tests/integration
%endif
@ -67,6 +77,177 @@ Summary: %{summary}
%changelog
* Thu Jan 08 2026 Packit <hello@packit.dev> - 0.38.0-1
- A bug leading to incorrect EVR expansion has been fixed. (#492)
- Prevented side-effects during condition evaluation that could occur when expanding macros that manipulate other macros, leading to misinterpreted validity of condition branches. (#499)
* Fri Oct 03 2025 Packit <hello@packit.dev> - 0.37.1-1
- We have solved a FutureWarning in our codebase. (#485)
* Fri Sep 19 2025 Python Maint <python-maint@redhat.com> - 0.37.0-2
- Rebuilt for Python 3.14.0rc3 bytecode
* Fri Sep 05 2025 Packit <hello@packit.dev> - 0.37.0-1
- Added support for Elbrus E2K CPU architectures. (#484)
* Fri Aug 15 2025 Python Maint <python-maint@redhat.com> - 0.36.0-5
- Rebuilt for Python 3.14.0rc2 bytecode
* Fri Jul 25 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.36.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
* Fri Jun 06 2025 Python Maint <python-maint@redhat.com> - 0.36.0-3
- Rebuilt for Python 3.14
* Fri May 30 2025 Packit <hello@packit.dev> - 0.36.0-1
- We have fixed a bug that caused specfile to traceback when section names with conditional macro expansions containing spaces were present in the spec file. (#476)
* Tue Jun 03 2025 Python Maint <python-maint@redhat.com> - 0.35.1-2
- Rebuilt for Python 3.14
* Fri May 16 2025 Packit <hello@packit.dev> - 0.35.1-1
- We have fixed a bug that caused changes to get lost when a spec file passed as a path was replaced or deleted. (#470)
* Sun Apr 13 2025 Packit <hello@packit.dev> - 0.35.0-1
- Added support for creating Specfile instances from file objects and strings. (#458)
- The `context_management` type stubs now use `ParamSpec` from `typing_extensions` to support Python < 3.10. (#466)
* Tue Mar 18 2025 Packit <hello@packit.dev> - 0.34.2-1
- context_management: add a type stub override to fix typing. Type checkers like mypy and pyright can now correctly determine the types for `.sources()`, `.sections()`, and the other `Specfile` methods that return context managers. (#457)
* Fri Feb 07 2025 Packit <hello@packit.dev> - 0.34.1-1
- Removed the usage of a walrus operator for Python 3.6 compatibility. (#450)
* Mon Jan 27 2025 Packit <hello@packit.dev> - 0.34.0-1
- Added support for detached (open)SUSE style changelogs (#444)
- Resolves: rhbz#2342178
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.33.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
* Mon Dec 16 2024 Packit <hello@packit.dev> - 0.33.0-1
- There is a new convenience method `Sections.get_or_create()` that allows you to manipulate a section
without checking if it exists first. If a section doesn't exist, it will be appended to the end. (#441)
For example, this will work properly even on spec files without `%%changelog`:
```
with spec.sections() as sections:
changelog = sections.get_or_create("changelog")
changelog[:] = ["%%autochangelog"]
```
- Resolves: rhbz#2332288
* Wed Nov 13 2024 Packit <hello@packit.dev> - 0.32.6-1
- New minor release for testing in CBS Koji
* Sat Oct 26 2024 Packit <hello@packit.dev> - 0.32.5-1
- We have fixed our parser to take in account the deprecations introduced in Python 3.8 (#420)
* Fri Oct 11 2024 Packit <hello@packit.dev> - 0.32.4-1
- NEVR and NEVRA classes are now hashable (#416)
* Mon Sep 30 2024 Packit <hello@packit.dev> - 0.32.3-1
- specfile can now handle multi-line tag values (enclosed in a macro body, e.g. `%%shrink`). (#412)
- Resolves: rhbz#2299289
* Sun Sep 15 2024 Packit <hello@packit.dev> - 0.32.2-1
- Explicitly invalidate the global parse hash when a SpecParser instance is created to prevent this issue. (#409)
* Mon Jul 29 2024 Packit <hello@packit.dev> - 0.32.1-1
- Fixed two issues related to condition parsing. (#405)
* Mon Jul 22 2024 Packit <hello@packit.dev> - 0.32.0-1
- It is now possible to bump a release in a manner similar to `rpmdev-bumpspec` using `Specfile.bump_release()` method. (#399)
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Jul 09 2024 Packit <hello@packit.dev> - 0.31.0-1
- Value of a `Tag` no longer includes trailing whitespace (if any). (#393)
- specfile now tries to expand macros before processing conditions to be able to resolve conditional expressions defined by macros, for example OpenSUSE Tumbleweed defines `%%ifpython3` macro as `%%if "%%{python_flavor}" == "python3"`. (#394)
- Resolves: rhbz#2294393
* Wed Jun 26 2024 Packit <hello@packit.dev> - 0.30.0-1
- Fixed an exception that occured when accessing the `Specfile.has_autochangelog` property while having unparseable lines (e.g. lines ending with unescaped `%`) in `%%changelog`. (#387)
* Mon Jun 17 2024 Packit <hello@packit.dev> - 0.29.0-1
- Improved compatibility with RPM 4.20 (alpha version is currently in Fedora Rawhide). (#380)
- Resolves: rhbz#2282962
* Sun Jun 09 2024 Python Maint <python-maint@redhat.com> - 0.28.3-2
- Rebuilt for Python 3.13
* Thu May 23 2024 Packit <hello@packit.dev> - 0.28.3-1
- Fixed several minor issues such as processing seemingly commented-out macro definitions (e.g. `#%%global prerel rc1`) and treating `SourceLicense` tag as a source. (#374, #376)
- Made `EVR`, `NEVR` and `NEVRA` objects comparable. (#379)
* Mon Apr 08 2024 Packit <hello@packit.dev> - 0.28.2-1
- Handling of trailing newlines in the macro defintions has been improved. (#361)
- Resolves: rhbz#2271583
* Tue Mar 26 2024 Packit <hello@packit.dev> - 0.28.1-1
- We have fixed an issue in `%%prep` section processing. For instance, if the `%%patches` macro appeared there, it would have been converted to `%%patch es`, causing failure when executing `%%prep` later. (#356)
* Sun Mar 17 2024 Packit <hello@packit.dev> - 0.28.0-1
- A trailing newline is no longer added to spec files without one upon saving. (#353)
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Packit <hello@packit.dev> - 0.27.0-1
- Improved handling of commented-out macro definitions and fixed related logic in `Specfile.update_value()`. (#338)
* Mon Nov 20 2023 Packit <hello@packit.dev> - 0.25.0-1
- There is a new method, `Specfile.update_version()`, that allows updating spec file version even if it is a pre-release. (#317)
* Mon Nov 06 2023 Packit <hello@packit.dev> - 0.24.0-1
- Improved type annotations for `UserList` subclasses. (#299)
- Macro definitions gained a new `commented_out` property indicating that a macro definition is commented out. Another new property, `comment_out_style`, determines if it is achieved by using a `%%dnl` (discard next line) directive (e.g. `%%dnl %%global prerelease beta2`) or by replacing the starting `%` with `#` (e.g. `#global prerelease beta2`). (#298)
* Mon Oct 30 2023 Packit <hello@packit.dev> - 0.23.0-1
- Sources now have a `valid` property that indicates whether a source is valid in the current context, meaning it is not present in a false branch of any condition. (#295)
* Fri Oct 06 2023 Packit <hello@packit.dev> - 0.22.1-1
- Removed dependency on setuptools-scm-git-archive. (#290)
* Fri Sep 01 2023 Packit <hello@packit.dev> - 0.22.0-1
- Macro definitions and tags gained a new `valid` attribute. A macro definition/tag is considered valid if it doesn't appear in a false branch of any condition appearing in the spec file. (#276)
* Fri Aug 11 2023 Nikola Forró <nforro@redhat.com> - 0.21.0-1
- `specfile` no longer tracebacks when some sources are missing and can't be _emulated_. In such case the spec file is parsed without them at the cost of `%%setup` and `%%patch` macros potentially expanding differently than with the sources present. (#271)
- Specfile's license in RPM spec file is now confirmed to be SPDX compatible. (#269)
* Mon Jul 31 2023 Packit <hello@packit.dev> - 0.20.2-1
- Fixed Packit config to work properly with `propose-downstream` and `pull-from-upstream` jobs. (#261)
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.20.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jul 13 2023 Packit <hello@packit.dev> - 0.20.0-1
- Fixed infinite loop when removing macros with `%` in the name. (#244)
- Added a possibility to undefine system macros by setting a macro value to `None` in the `macros` argument of the `Specfile` constructor. (#244)
- Fixed a bug in processing options of `%%prep` macros. For instance, when a quoted string appeared inside an expression expansion, it could lead to improper parsing, rendering the spec file invalid after accessing the options. (#253)
* Wed Jun 28 2023 Python Maint <python-maint@redhat.com> - 0.19.0-2
- Rebuilt for Python 3.12
* Thu Jun 22 2023 Packit <hello@packit.dev> - 0.19.0-1
- Parsing has been optimized so that even spec files with hundreds of thousands of lines can be processed in reasonable time. (#240)
* Fri May 26 2023 Packit <hello@packit.dev> - 0.18.0-1
- Specfile library now handles multiple `%%changelog` sections. (#230)
* Thu May 11 2023 Packit <hello@packit.dev> - 0.17.0-1
- Added a new `guess_packager()` function that uses similar heuristics as `rpmdev-packager`, meaning that the `Specfile.add_changelog_entry()` method no longer requires `rpmdev-packager` to guess the changelog entry author. (#220)
- The `Specfile.add_changelog_entry()` method now uses dates based on UTC instead of the local timezone. (#223)
* Thu Apr 20 2023 Packit <hello@packit.dev> - 0.16.0-1
- Added `Specfile.has_autorelease` property to detect if a spec file uses the `%%autorelease` macro. (#221)
* Fri Mar 10 2023 Packit <hello@packit.dev> - 0.15.0-1
- Parsing the spec file by RPM is now performed only if really necessary, greatly improving performance in certain scenarios. (#212)
- Checked that license is a valid SPDX license.
* Thu Feb 23 2023 Packit <hello@packit.dev> - 0.14.0-1
- Fixed a bug that broke parsing in case spec file contained conditionalized macro definitions or similar constructs. (#209)
- Specfile no longer depends on rpm-py-installer, it now depends directly on rpm. (#207)

View file

@ -1 +1 @@
SHA512 (specfile-0.14.0.tar.gz) = 4e9a34d77f3d6eb5704253607bb5c3afeb66b0a2224ad76762dbd9c8de6ef2b9aacb581258323456861ee348ed1251b8b93aa485c79d0de67407c74ae12bfd9f
SHA512 (specfile-0.38.0.tar.gz) = bfd60434b868fd191fb68d5b2fa319db45df80397b6c1000a63d9fe947e998a8a86fcf6a76c0ae9b6ef3321d2b04d4dd9bc565a610bfb117faa64180342fda4d