Specfile

Latest version: v0.34.2

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 10

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. (457)

0.34.1

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

0.34.0

- Added support for detached (open)SUSE style changelogs (444)

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

0.32.6

- New minor release for testing in CBS Koji

0.32.5

- We have fixed our parser to take in account the deprecations introduced in Python 3.8 (420)

Page 1 of 10

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.