Skip to content

0.33.0

Latest
Compare
Choose a tag to compare
@usercont-release-bot usercont-release-bot released this 13 Dec 13:14
· 6 commits to main since this release
c0a98a8
  • 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"]