Skip to content

Releases: packit/specfile

0.37.1

03 Oct 12:46
21a45ba

Choose a tag to compare

  • We have solved a FutureWarning in our codebase. (#485)

0.37.0

05 Sep 11:35
aafca33

Choose a tag to compare

  • Added support for Elbrus E2K CPU architectures. (#484)

0.36.0

30 May 13:09
2420653

Choose a tag to compare

  • 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)

0.35.1

16 May 10:10
8156990

Choose a tag to compare

  • We have fixed a bug that caused changes to get lost when a spec file passed as a path was replaced or deleted. (#470)

0.35.0

13 Apr 19:43
e059c30

Choose a tag to compare

  • 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)

0.34.2

18 Mar 07:23
875f03e

Choose a tag to compare

  • 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)

0.34.1

07 Feb 14:31
192a081

Choose a tag to compare

  • Removed the usage of a walrus operator for Python 3.6 compatibility. (#450)

0.34.0

26 Jan 21:21
84d6f3b

Choose a tag to compare

  • Added support for detached (open)SUSE style changelogs (#444)

0.33.0

13 Dec 13:14
c0a98a8

Choose a tag to compare

  • 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"]
    

0.32.6

13 Nov 13:12
442e2a9

Choose a tag to compare

  • New minor release for testing in CBS Koji