debian/0000775000000000000000000000000012314146644007175 5ustar debian/docs0000664000000000000000000000005112314131115010027 0ustar README.md HISTORY.md TODO.md MANIFEST.in debian/changelog0000664000000000000000000000231012314146616011042 0ustar pystache (0.5.3-2ubuntu1) trusty; urgency=medium * d/rules: `$python3 setup.py build` already runs 2to3, so don't run it twice. Doing so breaks a test (since a raw string is produced where a normal string is needed). -- Barry Warsaw Mon, 24 Mar 2014 20:22:23 -0400 pystache (0.5.3-2build2) trusty; urgency=medium * No-change rebuild to drop Python 3.3 support. -- Matthias Klose Sun, 23 Mar 2014 15:28:10 +0000 pystache (0.5.3-2build1) trusty; urgency=medium * Rebuild for Python 3.4. -- Matthias Klose Wed, 19 Feb 2014 20:57:18 +0100 pystache (0.5.3-2) unstable; urgency=low * Fixes depends on python3.2 which is going away (Closes: #722151) - debian/control: Change >= 3.2 to >= 3.3 of X-Python-Version. - debian/rules: Modified to python2.7, python3.2 to the valiable. -- Kouhei Maeda Tue, 10 Sep 2013 11:52:51 +0900 pystache (0.5.3-1) unstable; urgency=low * Initial release (Closes: #653862) * debian/patches: - exception_arguments: Append try/except to main() - update_egg-info: Append setup.cfg to SOURCES.txt -- Kouhei Maeda Thu, 01 Aug 2013 10:05:53 +0900 debian/rules0000775000000000000000000000302412314145573010254 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 PYVERS := $(shell pyversions -d) PY3VERS := $(shell py3versions -d) %: dh $@ --with python2,python3 override_dh_auto_build: $(PYVERS) setup.py build --build-base=build2 && \ $(PY3VERS) setup.py build --build-base=build3 override_dh_auto_test: nosetests -d build2 && \ nosetests3 -d build3 override_dh_auto_install: $(PYVERS) setup.py install --no-compile -O0 --install-layout=deb \ --root $(CURDIR)/debian/python-pystache && \ $(PY3VERS) setup.py install --no-compile -O0 --install-layout=deb \ --root $(CURDIR)/debian/python3-pystache && \ 2to3 -w $(CURDIR)/debian/python3-pystache override_dh_python2: dh_python2 && \ rm -f $(CURDIR)/debian/python-pystache/usr/bin/pystache-test && \ rm -rf $(CURDIR)/debian/python-pystache/usr/share/pyshared/pystache/tests && \ rm -rf $(CURDIR)/debian/python-pystache/usr/lib/$(PYVERS)/dist-packages/pystache/tests override_dh_python3: dh_python3 && \ mv -f $(CURDIR)/debian/python3-pystache/usr/bin/pystache $(CURDIR)/debian/python3-pystache/usr/bin/pystache3 && \ rm -rf $(CURDIR)/debian/python3-pystache/usr/bin/pystache-test && \ rm -rf $(CURDIR)/debian/python3-pystache/usr/share/pyshared/pystache/tests && \ rm -rf $(CURDIR)/debian/python3-pystache/usr/lib/python3/dist-packages/pystache/tests/ override_dh_auto_clean: $(PYVERS) setup.py clean --build-temp=build && \ $(PYVERS) setup.py clean --build-temp=build2 && \ $(PY3VERS) setup.py clean --build-temp=build3 && \ dh_clean debian/python3-pystache.manpages0000664000000000000000000000002312314131115014112 0ustar debian/pystache3.1 debian/patches/0000775000000000000000000000000012314146642010622 5ustar debian/patches/series0000664000000000000000000000004412314145547012040 0ustar exception_arguments update_egg-info debian/patches/exception_arguments0000664000000000000000000000132712314131115014620 0ustar * Add try/except at main function of commands.render module. Index: pystache-0.5.2/pystache/commands/render.py =================================================================== --- pystache-0.5.2.orig/pystache/commands/render.py 2012-08-13 13:52:49.409755422 +0900 +++ pystache-0.5.2/pystache/commands/render.py 2012-08-13 13:59:52.460436956 +0900 @@ -59,7 +59,14 @@ parser = OptionParser(usage=usage) options, args = parser.parse_args(args) - template, context = args + try: + template, context = args + except ValueError as e: + print('ERROR: %s' % e) + exit(1) + except UnboundLocalError as e: + print('ERROR: %s' % e) + exit(1) return template, context debian/patches/update_egg-info0000664000000000000000000000067012314131115013572 0ustar * Add setup.cfg to "SOURCES.txt". Index: pystache-0.5.3/pystache.egg-info/SOURCES.txt =================================================================== --- pystache-0.5.3.orig/pystache.egg-info/SOURCES.txt 2013-07-28 22:51:12.204831446 +0900 +++ pystache-0.5.3/pystache.egg-info/SOURCES.txt 2013-07-28 22:51:21.388715989 +0900 @@ -3,6 +3,7 @@ MANIFEST.in README.md TODO.md +setup.cfg setup.py setup_description.rst test_pystache.py debian/compat0000664000000000000000000000000212314131115010356 0ustar 8 debian/copyright0000664000000000000000000000251212314131115011113 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: pystache Source: https://github.com/defunkt/pystache Files: * Copyright: 2009 Chris Wanstrath License: The MIT License Files: debian/* Copyright: 2011 Kouhei Maeda License: The MIT License License: The MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000664000000000000000000000243712314146232010577 0ustar Source: pystache Section: python Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Kouhei Maeda Build-Depends: debhelper (>= 8.0.0), python-all, python-setuptools, python-nose, python3-all, python3-setuptools, python3-nose Standards-Version: 3.9.4 X-Python-Version: 2.7, >= 3.3 Homepage: http://github.com/defunkt/pystache Package: python-pystache Architecture: all Depends: ${misc:Depends}, ${python:Depends} Provides: ${python:Provides} Description: Python implementation of Mustache Pystache is Python implementation of Mustache. Original Mustache is a framework-agnostic, logic-free templating system inspired by ctemplate and et. Like ctemplate, Mustache "emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." Package: python3-pystache Architecture: all Depends: ${misc:Depends}, ${python3:Depends} Description: Python3 implementation of Mustache Pystache is Python3 implementation of Mustache. Original Mustache is a framework-agnostic, logic-free templating system inspired by ctemplate and et. Like ctemplate, Mustache "emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." debian/source/0000775000000000000000000000000012314146642010473 5ustar debian/source/format0000664000000000000000000000001412314131115011666 0ustar 3.0 (quilt) debian/pystache.10000664000000000000000000000403512314131115011064 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH PYSTACHE 1 "August 13, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME pystache \- Render a mustache template with the given context. .SH SYNOPSIS .B pystache .RI [ options ] " sub-command" .RI [ sub-cmd-options ] " [infile]" .br .SH DESCRIPTION This manual page documents briefly the .B pystache commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBPystache\fP is a Python implementation of Mustache. Mustache is a framework\-agnostic, logic\-free templating system inspired by ctemplate and et. Like ctemplate, Mustache "emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. .TP .B \-h, \-\-help Show summary of options. .SH POSITIONAL ARGUMENTS .TP .B template A filename or template string. .TP .B context A filename or JSON string. .SH SEE ALSO .br The programs are documented by .IR "README.rst.gz" , available via the Info system, and http://pypi.python.org/pypi/pystache/ .SH AUTHOR pystache was written by Chris Jerdonek. .PP This manual page was written by Kouhei Maeda . for the Debian project (and may be used by others). debian/python-pystache.manpages0000664000000000000000000000002212314131115014026 0ustar debian/pystache.1 debian/watch0000664000000000000000000000012312314131115010205 0ustar version=3 http://pypi.python.org/packages/source/p/pystache/pystache-(.*)\.tar\.gz debian/pystache3.10000664000000000000000000000404312314131115011146 0ustar .\" Hey, EMACS: -*- nroff -*- .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) .TH PYSTACHE3 1 "August 13, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: .\" .nh disable hyphenation .\" .hy enable hyphenation .\" .ad l left justify .\" .ad b justify to both left and right margins .\" .nf disable filling .\" .fi enable filling .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NAME pystache3 \- Render a mustache template with the given context. .SH SYNOPSIS .B pystache3 .RI [ options ] " sub-command" .RI [ sub-cmd-options ] " [infile]" .br .SH DESCRIPTION This manual page documents briefly the .B pystache3 commands. .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBPystache3\fP is a Python3 implementation of Mustache. Mustache is a framework\-agnostic, logic\-free templating system inspired by ctemplate and et. Like ctemplate, Mustache "emphasizes separating logic from presentation: it is impossible to embed application logic in this template language." .SH OPTIONS These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the Info files. .TP .B \-h, \-\-help Show summary of options. .SH POSITIONAL ARGUMENTS .TP .B template A filename or template string. .TP .B context A filename or JSON string. .SH SEE ALSO .br The programs are documented by .IR "README.rst.gz" , available via the Info system, and http://pypi.python.org/pypi/pystache/ .SH AUTHOR pystache was written by Chris Jerdonek. .PP This manual page was written by Kouhei Maeda . for the Debian project (and may be used by others).