Python-rpm-spec

Latest version: v0.16.0

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

Scan your dependencies

Page 2 of 2

0.11

Changes:

- Add type annotations for tools like mypy, your IDE, and your brain. Thanks
[KOLANICH](https://github.com/KOLANICH).
- `replace_macros()` function now always expects a Spec instance as second
argument. Does not make much sense without.
- Add support for parsing %description and %changelog (see PR
[42](https://github.com/bkircher/python-rpm-spec/pull/42)). Thanks
[BrunoVernay](https://github.com/BrunoVernay).
- Add support for ExcludeArch and ExclusiveArch
([45](https://github.com/bkircher/python-rpm-spec/pull/45)). Thanks
[tonsh](https://github.com/tonsh).
- Add `warnings_enabled` knob to issue
[warnings](https://docs.python.org/3/library/warnings.html#module-warnings) of
type `UserWarning` during spec file parsing.

0.10

Changes:

- Ignore spaces before ':' separator (see PR
[32](https://github.com/bkircher/python-rpm-spec/pull/32))
- Fix behavior of replace_macro function when macro is a tag, too (see issue
[33](https://github.com/bkircher/python-rpm-spec/issues/33)).

0.9

Changes:

- Ignore case when parsing directives

0.8

New Features:

- Enable parsing versions in `BuildRequires:` and `Requires:`
- Add support for conditional macros, e.g. `%{?test_macro:expression}`
- Use flit for packaging

0.7

New Features:

- Add `Spec.sources_dict` and `Spec.patches_dict`

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.