14
0

Accepting request 1108767 from home:mschreiner:branches:devel:languages:python

- Update to 0.22.0:
  - Changes from 0.22.0:
    * Macro definitions and tags gained a new valid attribute. A macro
      definition/tag is considered valid if it doesn't appear in a
      false branch of any condition appearing in the spec file.
  - Changes from 0.21.0:
    * specfile no longer tracebacks when some sources are missing and
      can't be emulated. In such case the spec file is parsed without
      them at the cost of %setup and %patch macros potentially
      expanding differently than with the sources present.
    * Specfile's license in RPM spec file is now confirmed to be SPDX
      compatible.
- Blacklist a new broken test on spec file: test_parse_texlive_spec.
- Add a new Python module dependency: typing_extensions.
- Apply spec-cleaner.

OBS-URL: https://build.opensuse.org/request/show/1108767
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-specfile?expand=0&rev=27
This commit is contained in:
2023-09-04 10:43:57 +00:00
committed by Git OBS Bridge
parent 96e67b60a5
commit 406e1981a2
4 changed files with 29 additions and 11 deletions

View File

@@ -17,7 +17,7 @@
Name: python-specfile
Version: 0.20.0
Version: 0.22.0
Release: 0
Summary: A library for parsing and manipulating RPM spec files
License: MIT
@@ -27,18 +27,17 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: %{python_module typing_extensions}
Requires: python-rpm
BuildArch: noarch
# SECTION test requirements
BuildRequires: git
BuildRequires: %{python_module flexmock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module rpm}
BuildRequires: git
# /SECTION
BuildRequires: fdupes
Requires: python-rpm
BuildArch: noarch
%python_subpackages
%description
@@ -56,7 +55,7 @@ sed -i '/rpm-py-installer/d' setup.cfg
# Following tests fail:
# * test_update_tag
# * test_macros_reinit
%pytest -k "not (test_update_tag or test_macros_reinit)"
%pytest -k "not (test_update_tag or test_macros_reinit or test_parse_texlive_spec)"
%install
%pyproject_install