From cb6dfde5f176540f0c7f9a783b01a7fe188b57c30667ca263f7fe71f211928d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 27 Sep 2019 07:49:22 +0000 Subject: [PATCH 1/2] - Format with spec-cleaner - Do not pull in devel python module as it is not needed OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-j2gen?expand=0&rev=2 --- python-j2gen.changes | 6 ++++++ python-j2gen.spec | 13 ++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/python-j2gen.changes b/python-j2gen.changes index 9da21b3..bdae31c 100644 --- a/python-j2gen.changes +++ b/python-j2gen.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Sep 27 07:48:59 UTC 2019 - Tomáš Chvátal + +- Format with spec-cleaner +- Do not pull in devel python module as it is not needed + ------------------------------------------------------------------- Fri Sep 27 03:41:03 UTC 2019 - Thomas Bechtold diff --git a/python-j2gen.spec b/python-j2gen.spec index b969629..bcd9951 100644 --- a/python-j2gen.spec +++ b/python-j2gen.spec @@ -24,12 +24,15 @@ Release: 0 Summary: Jinja2 template renderer with yaml input files License: Apache-2.0 Group: Development/Languages/Python -Url: https://github.com/toabctl/j2gen +URL: https://github.com/toabctl/j2gen Source: https://files.pythonhosted.org/packages/source/j/j2gen/j2gen-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module pbr} BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-Jinja2 +Requires: python-PyYAML +BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module Jinja2} BuildRequires: %{python_module PyYAML} @@ -37,11 +40,6 @@ BuildRequires: %{python_module ddt} BuildRequires: %{python_module flake8} BuildRequires: %{python_module pytest} # /SECTION -BuildRequires: fdupes -Requires: python-Jinja2 -Requires: python-PyYAML -BuildArch: noarch - %python_subpackages %description @@ -56,6 +54,7 @@ Jinja2 template renderer with yaml input files %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} + %check %python_exec setup.py test From 864b338919ff29ff8f5953e5025799daa224a8aa463e0ea14232dce5c231d3ff Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 30 Sep 2019 08:28:09 +0000 Subject: [PATCH 2/2] - update to 0.1.0: * Error out when template variables are not defined OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-j2gen?expand=0&rev=4 --- j2gen-0.0.1.tar.gz | 3 --- j2gen-0.1.0.tar.gz | 3 +++ python-j2gen.changes | 6 ++++++ python-j2gen.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 j2gen-0.0.1.tar.gz create mode 100644 j2gen-0.1.0.tar.gz diff --git a/j2gen-0.0.1.tar.gz b/j2gen-0.0.1.tar.gz deleted file mode 100644 index 64a02f3..0000000 --- a/j2gen-0.0.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94b307c77b77ed8d029754c70761e003a207ab7e9c3ff490ea5c37f408494b1e -size 8764 diff --git a/j2gen-0.1.0.tar.gz b/j2gen-0.1.0.tar.gz new file mode 100644 index 0000000..ce068e8 --- /dev/null +++ b/j2gen-0.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3205ee960660b5d7140341014e7cf7c1552af54de81645e312e0c8605cc8965b +size 8931 diff --git a/python-j2gen.changes b/python-j2gen.changes index bdae31c..efe807c 100644 --- a/python-j2gen.changes +++ b/python-j2gen.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 30 08:26:37 UTC 2019 - Thomas Bechtold + +- update to 0.1.0: +* Error out when template variables are not defined + ------------------------------------------------------------------- Fri Sep 27 07:48:59 UTC 2019 - Tomáš Chvátal diff --git a/python-j2gen.spec b/python-j2gen.spec index bcd9951..f5b6c85 100644 --- a/python-j2gen.spec +++ b/python-j2gen.spec @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-j2gen -Version: 0.0.1 +Version: 0.1.0 Release: 0 Summary: Jinja2 template renderer with yaml input files License: Apache-2.0