[Python-modules-commits] r25619 - in packages/cookiecutter/trunk (15 files)

bernat at users.alioth.debian.org bernat at users.alioth.debian.org
Sat Aug 17 22:01:15 UTC 2013


    Date: Saturday, August 17, 2013 @ 22:01:10
  Author: bernat
Revision: 25619

[svn-inject] Applying Debian modifications (0.6.1-1) to trunk

Added:
  packages/cookiecutter/trunk/debian/
  packages/cookiecutter/trunk/debian/changelog
  packages/cookiecutter/trunk/debian/compat
  packages/cookiecutter/trunk/debian/control
  packages/cookiecutter/trunk/debian/copyright
  packages/cookiecutter/trunk/debian/patches/
  packages/cookiecutter/trunk/debian/patches/dont-do-git-clone.patch
  packages/cookiecutter/trunk/debian/patches/fix-unicode-open-python-3.patch
  packages/cookiecutter/trunk/debian/patches/relax-jinja-dep.patch
  packages/cookiecutter/trunk/debian/patches/series
  packages/cookiecutter/trunk/debian/python-cookiecutter-doc.doc-base
  packages/cookiecutter/trunk/debian/rules
  packages/cookiecutter/trunk/debian/source/
  packages/cookiecutter/trunk/debian/source/format
  packages/cookiecutter/trunk/debian/watch


Property changes on: packages/cookiecutter/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/cookiecutter/trunk/debian/changelog
===================================================================
--- packages/cookiecutter/trunk/debian/changelog	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/changelog	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,5 @@
+cookiecutter (0.6.1-1) unstable; urgency=low
+
+  * Initial release. Closes: #720024.
+
+ -- Vincent Bernat <bernat at debian.org>  Sat, 17 Aug 2013 22:01:52 +0200

Added: packages/cookiecutter/trunk/debian/compat
===================================================================
--- packages/cookiecutter/trunk/debian/compat	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/compat	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1 @@
+7

Added: packages/cookiecutter/trunk/debian/control
===================================================================
--- packages/cookiecutter/trunk/debian/control	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/control	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,75 @@
+Source: cookiecutter
+Section: python
+Priority: optional
+Maintainer: Vincent Bernat <bernat at debian.org>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+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
+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.

Added: packages/cookiecutter/trunk/debian/copyright
===================================================================
--- packages/cookiecutter/trunk/debian/copyright	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/copyright	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,43 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Cookiecutter
+Upstream-Contact: Audrey Roy <audreyr at gmail.com>
+Source: https://github.com/audreyr/cookiecutter
+
+Files: *
+Copyright: 2013 Audrey Roy
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2013 Vincent Bernat <bernat at debian.org>
+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.

Added: packages/cookiecutter/trunk/debian/patches/dont-do-git-clone.patch
===================================================================
--- packages/cookiecutter/trunk/debian/patches/dont-do-git-clone.patch	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/patches/dont-do-git-clone.patch	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,16 @@
+Description: Builders don't have access to network, skip this test
+Author: Vincent Bernat <bernat at debian.org>
+Forwarded: no
+
+Index: cookiecutter-0.6.1/tests/test_vcs.py
+===================================================================
+--- cookiecutter-0.6.1.orig/tests/test_vcs.py	2013-08-12 14:57:35.000000000 +0200
++++ cookiecutter-0.6.1/tests/test_vcs.py	2013-08-17 22:36:17.415114975 +0200
+@@ -21,6 +21,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')
+         self.assertEqual(repo_dir, 'cookiecutter-pypackage')

Added: packages/cookiecutter/trunk/debian/patches/fix-unicode-open-python-3.patch
===================================================================
--- packages/cookiecutter/trunk/debian/patches/fix-unicode-open-python-3.patch	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/patches/fix-unicode-open-python-3.patch	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,18 @@
+Description: Fix a bug when opening UTF-8 files in Python3: encoding
+  needs to be specified.
+Author: Vincent Bernat <bernat at debian.org>
+Forwarded: https://github.com/audreyr/cookiecutter/issues/27
+
+Index: cookiecutter-0.6.1/cookiecutter/utils.py
+===================================================================
+--- cookiecutter-0.6.1.orig/cookiecutter/utils.py	2013-08-12 14:57:35.000000000 +0200
++++ cookiecutter-0.6.1/cookiecutter/utils.py	2013-08-17 23:44:29.835285535 +0200
+@@ -37,7 +37,7 @@
+     Opens a file as usual on Python 3, and with UTF-8 encoding on Python 2.
+     :param filename: Name of file to open.
+     """
++    kwargs['encoding'] = "utf-8"
+     if PY3:
+         return open(filename, *args, **kwargs)
+-    kwargs['encoding'] = "utf-8"
+     return codecs.open(filename, *args, **kwargs)

Added: packages/cookiecutter/trunk/debian/patches/relax-jinja-dep.patch
===================================================================
--- packages/cookiecutter/trunk/debian/patches/relax-jinja-dep.patch	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/patches/relax-jinja-dep.patch	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,17 @@
+Description: Relax dependency on Jinja2 for tests
+Author: Vincent Bernat <bernat at debian.org>
+Forwarded: no
+
+Index: cookiecutter-0.6.1/setup.py
+===================================================================
+--- cookiecutter-0.6.1.orig/setup.py	2013-08-12 14:57:35.000000000 +0200
++++ cookiecutter-0.6.1/setup.py	2013-08-17 22:24:45.267301311 +0200
+@@ -17,7 +17,7 @@
+ readme = open('README.rst').read()
+ history = open('HISTORY.rst').read().replace('.. :changelog:', '')
+ 
+-requirements = ['jinja2==2.7']
++requirements = ['jinja2>=2.7']
+ 
+ if sys.version_info[:2] < (2, 7):
+     requirements.append('argparse')

Added: packages/cookiecutter/trunk/debian/patches/series
===================================================================
--- packages/cookiecutter/trunk/debian/patches/series	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/patches/series	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,3 @@
+relax-jinja-dep.patch
+dont-do-git-clone.patch
+fix-unicode-open-python-3.patch

Added: packages/cookiecutter/trunk/debian/python-cookiecutter-doc.doc-base
===================================================================
--- packages/cookiecutter/trunk/debian/python-cookiecutter-doc.doc-base	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/python-cookiecutter-doc.doc-base	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,9 @@
+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

Added: packages/cookiecutter/trunk/debian/rules
===================================================================
--- packages/cookiecutter/trunk/debian/rules	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/rules	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,25 @@
+#!/usr/bin/make -f
+# -*- mode: makefile; coding: utf-8 -*-
+
+export PYBUILD_DESTDIR_python2=debian/python-cookiecutter/
+export PYBUILD_DESTDIR_python3=debian/python3-cookiecutter/
+
+%:
+	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


Property changes on: packages/cookiecutter/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/cookiecutter/trunk/debian/source/format
===================================================================
--- packages/cookiecutter/trunk/debian/source/format	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/source/format	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/cookiecutter/trunk/debian/watch
===================================================================
--- packages/cookiecutter/trunk/debian/watch	                        (rev 0)
+++ packages/cookiecutter/trunk/debian/watch	2013-08-17 22:01:10 UTC (rev 25619)
@@ -0,0 +1,3 @@
+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




More information about the Python-modules-commits mailing list