debian/0000755000000000000000000000000012222005063007156 5ustar debian/source/0000755000000000000000000000000012222004772010464 5ustar debian/source/format0000644000000000000000000000001412203771246011700 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012222004772010613 5ustar debian/patches/series0000644000000000000000000000007212222004762012026 0ustar dont-do-git-clone.patch dont-test-with-dstore-files.patch debian/patches/dont-test-with-dstore-files.patch0000644000000000000000000000225312222004762017125 0ustar Description: .DS_Store files are stripped out by dh_clean. Author: Vincent Bernat Forwarded: no Index: cookiecutter-0.6.4/tests/test_generate.py =================================================================== --- cookiecutter-0.6.4.orig/tests/test_generate.py 2013-08-21 12:33:41.000000000 +0200 +++ cookiecutter-0.6.4/tests/test_generate.py 2013-09-29 13:05:13.552869050 +0200 @@ -67,7 +67,6 @@ template_dir='tests/input{{binary_test}}' ) self.assertTrue(os.path.isfile('tests/inputbinary_files/logo.png')) - self.assertTrue(os.path.isfile('tests/inputbinary_files/.DS_Store')) self.assertTrue(os.path.isfile('tests/inputbinary_files/readme.txt')) self.assertTrue( os.path.isfile('tests/inputbinary_files/some_font.otf') @@ -79,7 +78,6 @@ template_dir='tests/input{{binary_test}}' ) expected = ['tests/inputbinary_files/binary_files/logo.png', - "tests/inputbinary_files/binary_files/.DS_Store", "tests/inputbinary_files/binary_files/readme.txt"] for each in expected: self.assertTrue(os.path.isfile(each)) debian/patches/dont-do-git-clone.patch0000644000000000000000000000321612222004762015060 0ustar Description: Builders don't have access to network, skip this test Author: Vincent Bernat Forwarded: no Index: cookiecutter-0.6.4/tests/test_vcs.py =================================================================== --- cookiecutter-0.6.4.orig/tests/test_vcs.py 2013-09-29 13:00:09.586944734 +0200 +++ cookiecutter-0.6.4/tests/test_vcs.py 2013-09-29 13:01:05.696038267 +0200 @@ -33,6 +33,7 @@ class TestVCS(unittest.TestCase): + @unittest.skip("disabled, no network") def test_git_clone(self): repo_dir = vcs.git_clone( 'https://github.com/audreyr/cookiecutter-pypackage.git' @@ -50,6 +51,7 @@ shutil.rmtree('cookiecutter-pypackage') os.mkdir('cookiecutter-pypackage/') + @unittest.skip("disabled, no network") @patch(input_str, lambda: 'y') def test_git_clone_overwrite(self): if not PY3: @@ -60,6 +62,7 @@ self.assertEqual(repo_dir, 'cookiecutter-pypackage') self.assertTrue(os.path.isfile('cookiecutter-pypackage/README.rst')) + @unittest.skip("disabled, no network") @patch(input_str, lambda: 'n') def test_git_clone_cancel(self): if not PY3: Index: cookiecutter-0.6.4/tests/test_main.py =================================================================== --- cookiecutter-0.6.4.orig/tests/test_main.py 2013-08-21 12:33:41.000000000 +0200 +++ cookiecutter-0.6.4/tests/test_main.py 2013-09-29 13:01:55.521009341 +0200 @@ -66,6 +66,7 @@ class TestCookiecutterRepoArg(unittest.TestCase): + @unittest.skip("disabled, no network") @patch(input_str, lambda x: '') def test_cookiecutter_git(self): if not PY3: debian/copyright0000644000000000000000000000342712203771246011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Cookiecutter Upstream-Contact: Audrey Roy Source: https://github.com/audreyr/cookiecutter Files: * Copyright: 2013 Audrey Roy License: BSD-3-clause Files: debian/* Copyright: 2013 Vincent Bernat License: BSD-3-clause License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of border nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/python-cookiecutter-doc.doc-base0000644000000000000000000000043512203771246015355 0ustar Document: cookiecutter Title: Cookiecutter Documentation Author: Audrey Roy Abstract: This document describes Cookiecutter Section: Programming/Python Format: HTML Index: /usr/share/doc/python-cookiecutter-doc/html/index.html Files: /usr/share/doc/python-cookiecutter-doc/html/*.html debian/rules0000755000000000000000000000147712213420224010247 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- export PYBUILD_DESTDIR_python2=debian/python-cookiecutter/ export PYBUILD_DESTDIR_python3=debian/python3-cookiecutter/ export LC_ALL=C.UTF-8 %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild override_dh_installdocs: dh_installdocs PYTHONPATH=. sphinx-build -N -q -E -b html docs/ \ debian/python-cookiecutter-doc/usr/share/doc/python-cookiecutter-doc/html/ override_dh_auto_clean: dh_auto_clean find . \( -name '*.py[co]' -or -name '\._*' -or -name '\.DS_Store' \) -delete override_dh_install: dh_install # Move cookiecutter executable in its dedicated package mkdir debian/cookiecutter/usr mv debian/python-cookiecutter/usr/bin debian/cookiecutter/usr/. rm -rf debian/python-cookiecutter/usr/bin rm -rf debian/python3-cookiecutter/usr/bin debian/compat0000644000000000000000000000000212203771246010370 0ustar 7 debian/cookiecutter.10000644000000000000000000000105712203772732011760 0ustar .Dd $Mdocdate: August 18 2013 $ .Dt COOKIECUTTER 1 .Os .Sh NAME .Nm cookiecutter .Nd create projects from project templates .Sh SYNOPSIS .Nm .Op Fl h .Ar input .Sh DESCRIPTION .Nm is a command-line tool to create projects from project templates. It takes as input a template which is either a local directory or an URL to a repository. .Nm will then generate the project from the template. It may ask questions to fill in some values. .Sh SEE ALSO For more documentation about .Nm , have a look at .Pa /usr/share/doc/python-cookiecutter-doc/html/index.html . debian/cookiecutter.manpages0000644000000000000000000000002612203772732013406 0ustar debian/cookiecutter.1 debian/watch0000644000000000000000000000023212203771246010220 0ustar version=3 opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/cookiecutter-$1.tar.gz/ \ https://github.com/audreyr/cookiecutter/releases .*/v?(\d\S*)\.tar\.gz debian/changelog0000644000000000000000000000067312222002156011036 0ustar cookiecutter (0.6.4-1) unstable; urgency=low * New upstream version. + Drop patch fixing jinja2 requirement. + Drop patch fixing unicode open with Python3. * Add python-binaryornot as a build-dep. -- Vincent Bernat Sun, 08 Sep 2013 16:25:50 +0200 cookiecutter (0.6.1-1) unstable; urgency=low * Initial release. Closes: #720024. -- Vincent Bernat Sat, 17 Aug 2013 22:01:52 +0200 debian/control0000644000000000000000000000626112213105172010570 0ustar Source: cookiecutter Section: python Priority: optional Maintainer: Vincent Bernat Uploaders: Debian Python Modules Team Build-Depends: debhelper (>= 7.0.50~), dh-python, python-all, python3-all, python-sphinx (>= 1.0.7+dfsg), python-setuptools, python3-setuptools, python-jinja2, python3-jinja2, python-mock, python3-mock, python-binaryornot, python3-binaryornot Standards-Version: 3.9.4 Homepage: https://github.com/audreyr/cookiecutter Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/cookiecutter/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/cookiecutter/trunk/ Package: cookiecutter Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-cookiecutter (= ${binary:Version}) Description: create projects from project templates Cookiecutter is command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template. . It can also be used as a Python module. It supports local and remote templates. The templating is done with Jinja2 and there is no limitation on the language used by the templated projects (Python, Ruby, Javascript, C, HTML, Postscript...). Package: python-cookiecutter Architecture: all Depends: ${python:Depends}, ${misc:Depends} Description: create projects from project templates (Python 2 module) Cookiecutter is command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template. . It can also be used as a Python module. It supports local and remote templates. The templating is done with Jinja2 and there is no limitation on the language used by the templated projects (Python, Ruby, Javascript, C, HTML, Postscript...). . This package contains the Python 2 module. Package: python3-cookiecutter Architecture: all Depends: ${python3:Depends}, ${misc:Depends} Description: create projects from project templates (Python 3 module) Cookiecutter is command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template. . It can also be used as a Python module. It supports local and remote templates. The templating is done with Jinja2 and there is no limitation on the language used by the templated projects (Python, Ruby, Javascript, C, HTML, Postscript...). . This package contains the Python 3 module. Package: python-cookiecutter-doc Section: doc Architecture: all Depends: ${sphinxdoc:Depends}, ${misc:Depends} Description: create projects from project templates (documentation) Cookiecutter is command-line utility that creates projects from project templates, e.g. creating a Python package project from a Python package project template. . It can also be used as a Python module. It supports local and remote templates. The templating is done with Jinja2 and there is no limitation on the language used by the templated projects (Python, Ruby, Javascript, C, HTML, Postscript...). . This package contains the documentation.