From 615bb73d4cfc2dd170df7af5b37b21de1db6d97b8c50492e9e48d74649ec313c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 16 Jan 2019 14:10:44 +0000 Subject: [PATCH] Accepting request 666487 from home:jayvdb:soe Replaced dependency on git with git-core OBS-URL: https://build.opensuse.org/request/show/666487 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-moban?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + moban-0.3.8.tar.gz | 3 ++ python-moban.changes | 45 +++++++++++++++++++++++++ python-moban.spec | 79 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 moban-0.3.8.tar.gz create mode 100644 python-moban.changes create mode 100644 python-moban.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/moban-0.3.8.tar.gz b/moban-0.3.8.tar.gz new file mode 100644 index 0000000..9f5a2b7 --- /dev/null +++ b/moban-0.3.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83428b6a293c54cd6c08912973bf502f1aaab7c178d43777fbacf396fcc24540 +size 67913 diff --git a/python-moban.changes b/python-moban.changes new file mode 100644 index 0000000..74a9587 --- /dev/null +++ b/python-moban.changes @@ -0,0 +1,45 @@ +------------------------------------------------------------------- +Mon Jan 14 00:12:54 UTC 2019 - John Vandenberg + +- Remove base_engine.py workaround +- Removed build dependency on moban-handlebars +- Update to v0.3.8 + - Allow template literals as positional arguments + - Report changes in non-zero exit code only with --exit-code + - Disables file permissions copy feature on Windows + +------------------------------------------------------------------- +Wed Jan 9 15:58:32 UTC 2019 - John Vandenberg + +- Fill base_engine.py instead of deleting it. + +------------------------------------------------------------------- +Tue Jan 8 04:19:21 UTC 2019 - John Vandenberg + +- Trim description and add %check + +------------------------------------------------------------------- +Mon Jan 7 04:02:49 UTC 2019 - John Vandenberg + +- Update to v0.3.7 + - Simplified CLI usage + - Source tarball includes docs and tests + +------------------------------------------------------------------- +Tue Jan 01 09:53:13 UTC 2019 - John Vandenberg + +- Update to v0.3.6 + - Improved Windows support + - Gracefully skip entries encountering write permission errors. + +------------------------------------------------------------------- +Mon Dec 17 09:53:13 UTC 2018 - John Vandenberg + +- Update to v0.3.5 + - Switched from PyYAML to ruamel.yaml + - Improved error reporting for YAML syntax errors. + +------------------------------------------------------------------- +Tue Nov 27 11:00:01 UTC 2018 - John Vandenberg + +- Initial revision for v0.3.4 diff --git a/python-moban.spec b/python-moban.spec new file mode 100644 index 0000000..28071cc --- /dev/null +++ b/python-moban.spec @@ -0,0 +1,79 @@ +# +# spec file for package python-moban +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-moban +Version: 0.3.8 +Release: 0 +License: MIT +Summary: Yet another jinja2 cli command for static text generation +Url: https://github.com/moremoban/moban +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/m/moban/moban-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +# SECTION test requirements +BuildRequires: git-core +BuildRequires: %{python_module pip} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module mock} +# Package dependencies +BuildRequires: %{python_module ruamel.yaml >= 0.15.80} +BuildRequires: %{python_module Jinja2 >= 2.8} +BuildRequires: %{python_module crayons >= 0.1.2} +BuildRequires: %{python_module lml >= 0.0.7} +# /SECTION +BuildRequires: fdupes +BuildArch: noarch +Requires: git-core +Requires: python-ruamel.yaml >= 0.15.80 +Requires: python-Jinja2 >= 2.8 +Requires: python-crayons >= 0.1.2 +Requires: python-lml >= 0.0.7 + +%python_subpackages + +%description +moban - 模板 Yet another jinja2 cli command for static text generation. + +moban brings the high performance template engine (JINJA2) for web into +static text generation. It is used in pyexcel project to keep documentation +consistent across the documentations of individual libraries. + +%prep +%setup -q -n moban-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# test_level_9 depends on package pypi-mobans-pkg +# test_level_10 depends on access to github.com +# test_level_11 depends on moban-handlebars +%python_exec %{_bindir}/nosetests --with-doctest --doctest-extension=.rst -e 'test_level_(9|10|11)' README.rst tests docs moban + +%files %{python_files} +%{python_sitelib}/* +%license LICENSE +%doc README.rst CHANGELOG.rst +%python3_only %{_bindir}/moban + +%changelog