1
0

Compare commits

26 Commits

Author SHA256 Message Date
aaf0f16bec Accepting request 1315465 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1315465
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=37
2025-11-05 15:18:37 +00:00
95dc7b3c48 - Update to 0.37.1
* We have solved a FutureWarning in our codebase. (#485)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=74
2025-11-04 10:50:15 +00:00
a38ff5d999 Accepting request 1306750 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1306750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=36
2025-09-23 15:45:35 +00:00
94eacb1014 - Update to 0.37.0
* Added support for Elbrus E2K CPU architectures. (#484)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=72
2025-09-23 13:29:56 +00:00
f0d98764d0 Accepting request 1282332 from devel:languages:python
Forwarded request #1281832 from glaubitz

- Update to 0.36.0
    * 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)

OBS-URL: https://build.opensuse.org/request/show/1282332
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=35
2025-06-03 15:57:26 +00:00
8f064c075e - Update to 0.36.0
* 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=70
2025-06-03 13:15:04 +00:00
518e92df93 Accepting request 1281331 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1281331
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=34
2025-05-31 17:15:55 +00:00
c80d1de681 - Update to 0.35.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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=68
2025-05-30 09:20:44 +00:00
6c1e6b3234 Accepting request 1277416 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1277416
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=33
2025-05-14 15:02:10 +00:00
ca4adf347d - Update to 0.35.0
* 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)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=66
2025-05-14 12:24:42 +00:00
899799ddd9 Accepting request 1265374 from devel:languages:python
- update to 0.34.2:
  * 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.

OBS-URL: https://build.opensuse.org/request/show/1265374
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=32
2025-03-31 09:42:28 +00:00
79a15fa02c - update to 0.34.2:
* 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.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=64
2025-03-29 09:46:07 +00:00
109234cb17 Accepting request 1245856 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1245856
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=31
2025-02-14 18:23:01 +00:00
c09c35361e - Update to 0.34.1
* Removed the usage of a walrus operator for Python 3.6 compatibility.
- Use Python 3.11 on SLE-15 by default

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=62
2025-02-14 10:42:42 +00:00
0f1c60b51a Accepting request 1242154 from devel:languages:python
- Update to 0.34.0:
  - Added support for detached (open)SUSE style changelogs
- Update to 0.33.0:
  - 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"]

OBS-URL: https://build.opensuse.org/request/show/1242154
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=30
2025-02-03 20:44:00 +00:00
df964e5f7d - Update to 0.34.0:
- Added support for detached (open)SUSE style changelogs
- Update to 0.33.0:
  - 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"]

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=60
2025-02-01 22:19:13 +00:00
713c7a2170 Accepting request 1224079 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1224079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=29
2024-11-14 15:09:39 +00:00
a4d6511fd3 - Update to 0.32.6:
* New minor release for testing in CBS Koji
  * fix: assert existence of stderr

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=58
2024-11-14 07:14:13 +00:00
dfefedbf8c Accepting request 1219099 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1219099
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=28
2024-10-30 16:34:56 +00:00
94e9b9342e - Update to 0.32.5
* We have fixed our parser to take in account
    the deprecations introduced in Python 3.8

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=56
2024-10-29 17:05:56 +00:00
16bfad48fd Accepting request 1208564 from devel:languages:python
Forwarded request #1208293 from smolsheep

- Update to 0.32.4:
    * NEVR and NEVRA classes are now hashable

OBS-URL: https://build.opensuse.org/request/show/1208564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=27
2024-10-17 16:40:33 +00:00
3771047eb0 - Update to 0.32.4:
* NEVR and NEVRA classes are now hashable

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=54
2024-10-17 08:30:43 +00:00
7ea9480f00 Accepting request 1206169 from devel:languages:python
- update to 0.32.3:
  * specfile can now handle multi-line tag values (enclosed in a
    macro body, e.g. `%shrink`).

OBS-URL: https://build.opensuse.org/request/show/1206169
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=26
2024-10-08 15:24:07 +00:00
8c3edb87d6 - update to 0.32.3:
* specfile can now handle multi-line tag values (enclosed in a
    macro body, e.g. `%shrink`).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=52
2024-10-07 20:39:42 +00:00
b8a7ddef48 Accepting request 1202277 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1202277
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-specfile?expand=0&rev=25
2024-09-22 09:06:18 +00:00
c6b2bbfd80 - Update to 0.32.2:
* Explicitly invalidate the global parse hash when a SpecParser
    instance is created to prevent this issue.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=50
2024-09-20 22:34:57 +00:00
4 changed files with 107 additions and 7 deletions

View File

@@ -1,3 +1,104 @@
-------------------------------------------------------------------
Tue Nov 4 10:11:54 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.37.1
* We have solved a FutureWarning in our codebase. (#485)
-------------------------------------------------------------------
Tue Sep 23 10:22:50 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.37.0
* Added support for Elbrus E2K CPU architectures. (#484)
-------------------------------------------------------------------
Mon Jun 2 08:51:14 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.36.0
* 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)
-------------------------------------------------------------------
Fri May 30 08:43:58 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.35.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)
-------------------------------------------------------------------
Wed May 14 12:17:22 UTC 2025 - Nico Krapp <nico.krapp@suse.com>
- Update to 0.35.0
* 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)
-------------------------------------------------------------------
Sat Mar 29 09:45:14 UTC 2025 - Dirk Müller <dmueller@suse.com>
- update to 0.34.2:
* 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.
-------------------------------------------------------------------
Fri Feb 14 08:52:59 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.34.1
* Removed the usage of a walrus operator for Python 3.6 compatibility.
- Use Python 3.11 on SLE-15 by default
-------------------------------------------------------------------
Sat Feb 1 22:17:17 UTC 2025 - Matej Cepl <mcepl@cepl.eu>
- Update to 0.34.0:
- Added support for detached (open)SUSE style changelogs
- Update to 0.33.0:
- 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"]
-------------------------------------------------------------------
Thu Nov 14 05:42:51 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Update to 0.32.6:
* New minor release for testing in CBS Koji
* fix: assert existence of stderr
-------------------------------------------------------------------
Tue Oct 29 10:40:28 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.32.5
* We have fixed our parser to take in account
the deprecations introduced in Python 3.8
-------------------------------------------------------------------
Wed Oct 16 07:29:15 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Update to 0.32.4:
* NEVR and NEVRA classes are now hashable
-------------------------------------------------------------------
Mon Oct 7 20:38:33 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 0.32.3:
* specfile can now handle multi-line tag values (enclosed in a
macro body, e.g. `%shrink`).
-------------------------------------------------------------------
Fri Sep 20 22:05:27 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>
- Update to 0.32.2:
* Explicitly invalidate the global parse hash when a SpecParser
instance is created to prevent this issue.
-------------------------------------------------------------------
Mon Jul 29 16:25:38 UTC 2024 - Joshua Smith <smolsheep@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-specfile
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,8 +16,9 @@
#
%{?sle15_python_module_pythons}
Name: python-specfile
Version: 0.32.1
Version: 0.37.1
Release: 0
Summary: A library for parsing and manipulating RPM spec files
License: MIT
@@ -30,13 +31,11 @@ BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-rpm
Requires: python-typing_extensions
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module flexmock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rpm}
BuildRequires: %{python_module typing_extensions}
BuildRequires: git-core
# /SECTION
%python_subpackages

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f804bcedc534def41e24df5ec5b1bc31642e707542a281229e24c54f11e4fdb9
size 106216

3
specfile-0.37.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca61d9995026ab22694cc0032323bd071f93b44b9ed1a84522506c1ab4d0f146
size 113291