14
0
forked from pool/python-moban

- Add patch stop-using-jinja-extensions.patch

* Stop using a removed Jinja2 extension.
- Add patch remove-mock.patch
  * Switch to using unittest.mock.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban?expand=0&rev=19
This commit is contained in:
2022-05-20 06:45:53 +00:00
committed by Git OBS Bridge
parent 1390d2885f
commit 5bfb65c11f
4 changed files with 177 additions and 5 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -35,11 +35,12 @@ Version: 0.8.2
Release: 0
Summary: Yet another jinja2 CLI for static text generation
License: MIT
Group: Development/Languages/Python
URL: https://github.com/moremoban/moban
Source: https://files.pythonhosted.org/packages/source/m/moban/moban-%{version}.tar.gz
# https://github.com/moremoban/moban/pull/404
Patch0: remove_nose.patch
Patch1: stop-using-jinja-extensions.patch
Patch2: remove-mock.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: git-core
@@ -68,7 +69,6 @@ BuildRequires: %{python_module jinja2-fsloader >= 0.2.0}
BuildRequires: %{python_module jinja2-time}
BuildRequires: %{python_module lml >= 0.0.9}
BuildRequires: %{python_module moban-ansible}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module ruamel.yaml >= 0.15.98}
@@ -84,8 +84,7 @@ generation. It is used in the pyexcel project to keep documentation
consistent across the documentations of individual libraries.
%prep
%setup -q -n moban-%{version}
%autopatch -p1
%autosetup -p1 -n moban-%{version}
%if !%{with test}
%build