[Python-modules-commits] r16549 - in packages/python-mock/trunk (16 files)

fladi-guest at users.alioth.debian.org fladi-guest at users.alioth.debian.org
Sat Apr 16 08:50:01 UTC 2011


    Date: Saturday, April 16, 2011 @ 08:49:58
  Author: fladi-guest
Revision: 16549

New upstream release and new maintainer.

Added:
  packages/python-mock/trunk/debian/
  packages/python-mock/trunk/debian/changelog
  packages/python-mock/trunk/debian/compat
  packages/python-mock/trunk/debian/control
  packages/python-mock/trunk/debian/copyright
  packages/python-mock/trunk/debian/docs
  packages/python-mock/trunk/debian/patches/
  packages/python-mock/trunk/debian/patches/add_docs_conf.patch
  packages/python-mock/trunk/debian/patches/series
  packages/python-mock/trunk/debian/python-mock.doc-base
  packages/python-mock/trunk/debian/python-mock.links
  packages/python-mock/trunk/debian/rules
  packages/python-mock/trunk/debian/source/
  packages/python-mock/trunk/debian/source/format
  packages/python-mock/trunk/debian/source/local-options
  packages/python-mock/trunk/debian/watch


Property changes on: packages/python-mock/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/python-mock/trunk/debian/changelog
===================================================================
--- packages/python-mock/trunk/debian/changelog	                        (rev 0)
+++ packages/python-mock/trunk/debian/changelog	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,32 @@
+python-mock (0.7.0-1) unstable; urgency=low
+
+  * New upstream release.
+  * Set PMPT as maintainer and myself as uploader.
+  * Switch to source format 3.0 (quilt).
+  * Switch to dh_python2.
+  * Use pypi.python.org in d/watch.
+  * Use DEP5 for copyright file.
+  * Streamline packaging code with wrap-and-sort.
+  * Bumped Standards-Version to 3.9.1 (no change necessary).
+  * Add patch to allow building HTML documentation with sphinx.
+  * Move HTML documentation to u/s/d/python-mock/html/.
+  * Set 'abort-on-upstream-changes' and 'unapply-patches' in d/s/local-
+    options.
+  * Use dh_link to create the documentation symlinks.
+  * Set X-P-V to >= 2.4.
+
+ -- Fladischer Michael <FladischerMichael at fladi.at>  Sat, 16 Apr 2011 10:35:12 +0200
+
+python-mock (0.6.0-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix "doesn't depend on python" by applying patch to debian/control
+    by Jakub Wilk (Closes: #588586)
+
+ -- Marek Kubica <marek at xivilization.net>  Sat, 17 Jul 2010 12:27:08 +0200
+
+python-mock (0.6.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #540372)
+
+ -- David Watson <david at kutoken.com>  Fri, 21 Aug 2009 14:22:49 +0100

Added: packages/python-mock/trunk/debian/compat
===================================================================
--- packages/python-mock/trunk/debian/compat	                        (rev 0)
+++ packages/python-mock/trunk/debian/compat	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1 @@
+7

Added: packages/python-mock/trunk/debian/control
===================================================================
--- packages/python-mock/trunk/debian/control	                        (rev 0)
+++ packages/python-mock/trunk/debian/control	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,27 @@
+Source: python-mock
+Section: python
+Priority: extra
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: David Watson <david at kutoken.com>,
+           Fladischer Michael <FladischerMichael at fladi.at>
+Build-Depends: debhelper (>= 7.0.50~),
+               python-all (>= 2.6.6-3~),
+               python-setuptools
+Build-Depends-Indep: libjs-jquery, python-sphinx
+Standards-Version: 3.9.1
+X-Python-Version: >= 2.4
+Homepage: http://www.voidspace.org.uk/python/mock/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/python-mock/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/python-mock/trunk/
+
+Package: python-mock
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Recommends: libjs-jquery
+Description: Mocking and Testing Library
+ mock provides a core mock.Mock class that is intended to reduce the
+ need to create a host of trivial stubs throughout your test suite.
+ After performing an action, you can make assertions about which methods
+ / attributes were used and arguments they were called with. You can
+ also specify return values and set specific attributes in the normal
+ way.

Added: packages/python-mock/trunk/debian/copyright
===================================================================
--- packages/python-mock/trunk/debian/copyright	                        (rev 0)
+++ packages/python-mock/trunk/debian/copyright	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,40 @@
+Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=166
+Upstream-Name: anyjson
+Upstream-Contact: Rune Halvorsen <runefh at gmail.com>
+Source: http://www.voidspace.org.uk/python/mock/
+
+Files: *
+Copyright: 2003-2009, Michael Foord <fuzzyman at voidspace.org.uk>
+License: BSD
+
+Files: debian/*
+Copyright: 2011, Fladischer Michael <FladischerMichael at fladi.at>
+           2009, David Watson <david at kutoken.com>
+License: BSD
+
+License: BSD
+ 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 Michael Foord nor the name of Voidspace
+     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
+ OWNER 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/python-mock/trunk/debian/docs
===================================================================
--- packages/python-mock/trunk/debian/docs	                        (rev 0)
+++ packages/python-mock/trunk/debian/docs	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1 @@
+.build/html

Added: packages/python-mock/trunk/debian/patches/add_docs_conf.patch
===================================================================
--- packages/python-mock/trunk/debian/patches/add_docs_conf.patch	                        (rev 0)
+++ packages/python-mock/trunk/debian/patches/add_docs_conf.patch	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,192 @@
+Description: Add missing configuration for sphinx
+ Upstream is missing the configuration for building the package documentation with sphinx.
+Origin: http://mock.googlecode.com/hg/docs/conf.py
+Last-Update: 2011-04-16
+Bug: http://code.google.com/p/mock/issues/detail?id=87
+
+--- /dev/null
++++ b/docs/conf.py
+@@ -0,0 +1,183 @@
++# -*- coding: utf-8 -*-
++#
++# Mock documentation build configuration file, created by
++# sphinx-quickstart on Mon Nov 17 18:12:00 2008.
++#
++# This file is execfile()d with the current directory set to its containing dir.
++#
++# The contents of this file are pickled, so don't put values in the namespace
++# that aren't pickleable (module imports are okay, they're removed automatically).
++#
++# All configuration values have a default value; values that are commented out
++# serve to show the default value.
++
++import sys, os
++from mock import __version__
++
++# If your extensions are in another directory, add it here. If the directory
++# is relative to the documentation root, use os.path.abspath to make it
++# absolute, like shown here.
++#sys.path.append(os.path.abspath('some/directory'))
++
++# General configuration
++# ---------------------
++
++# Add any Sphinx extension module names here, as strings. They can be extensions
++# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
++extensions = ['sphinx.ext.doctest', 'sphinx.ext.autodoc']
++
++html_theme = 'basic'
++html_theme_options = {}
++
++# Add any paths that contain templates here, relative to this directory.
++templates_path = ['_templates']
++
++# The suffix of source filenames.
++source_suffix = '.txt'
++
++# The master toctree document.
++master_doc = 'index'
++
++# General substitutions.
++project = u'Mock'
++copyright = u'2007-2011, Michael Foord & the mock team'
++
++# The default replacements for |version| and |release|, also used in various
++# other places throughout the built documents.
++#
++# The short X.Y version.
++version = __version__[:3]
++# The full version, including alpha/beta/rc tags.
++release = __version__
++
++# There are two options for replacing |today|: either, you set today to some
++# non-false value, then it is used:
++#today = ''
++# Else, today_fmt is used as the format for a strftime call.
++today_fmt = '%B %d, %Y'
++
++# List of documents that shouldn't be included in the build.
++#unused_docs = []
++
++# List of directories, relative to source directories, that shouldn't be searched
++# for source files.
++exclude_trees = []
++
++# The reST default role (used for this markup: `text`) to use for all documents.
++#default_role = None
++
++# If true, '()' will be appended to :func: etc. cross-reference text.
++#add_function_parentheses = True
++
++# If true, the current module name will be prepended to all description
++# unit titles (such as .. function::).
++add_module_names = False
++
++# If true, sectionauthor and moduleauthor directives will be shown in the
++# output. They are ignored by default.
++#show_authors = False
++
++# The name of the Pygments (syntax highlighting) style to use.
++pygments_style = 'friendly'
++
++
++# Options for HTML output
++# -----------------------
++
++# The style sheet to use for HTML and HTML Help pages. A file of that name
++# must exist either in Sphinx' static/ path, or in one of the custom paths
++# given in html_static_path.
++html_style = 'adctheme.css'
++
++# The name for this set of Sphinx documents.  If None, it defaults to
++# "<project> v<release> documentation".
++#html_title = None
++
++# A shorter title for the navigation bar.  Default is the same as html_title.
++#html_short_title = None
++
++# The name of an image file (relative to this directory) to place at the top
++# of the sidebar.
++#html_logo = None
++
++# The name of an image file (within the static path) to use as favicon of the
++# docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
++# pixels large.
++#html_favicon = None
++
++# Add any paths that contain custom static files (such as style sheets) here,
++# relative to this directory. They are copied after the builtin static files,
++# so a file named "default.css" will overwrite the builtin "default.css".
++html_static_path = ['_static']
++
++# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
++# using the given strftime format.
++html_last_updated_fmt = '%b %d, %Y'
++
++# If true, SmartyPants will be used to convert quotes and dashes to
++# typographically correct entities.
++#html_use_smartypants = True
++
++# Custom sidebar templates, maps document names to template names.
++#html_sidebars = {}
++
++# Additional templates that should be rendered to pages, maps page names to
++# template names.
++#html_additional_pages = {}
++
++# If false, no module index is generated.
++html_use_modindex = False
++
++# If false, no index is generated.
++#html_use_index = True
++
++# If true, the index is split into individual pages for each letter.
++#html_split_index = False
++
++# If true, the reST sources are included in the HTML build as _sources/<name>.
++#html_copy_source = True
++
++# If true, an OpenSearch description file will be output, and all pages will
++# contain a <link> tag referring to it.  The value of this option must be the
++# base URL from which the finished HTML is served.
++#html_use_opensearch = ''
++
++# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
++#html_file_suffix = ''
++
++# Output file base name for HTML help builder.
++htmlhelp_basename = 'Mockdoc'
++
++
++# Options for LaTeX output
++# ------------------------
++
++# The paper size ('letter' or 'a4').
++#latex_paper_size = 'letter'
++
++# The font size ('10pt', '11pt' or '12pt').
++latex_font_size = '12pt'
++
++# Grouping the document tree into LaTeX files. List of tuples
++# (source start file, target name, title, author, document class [howto/manual]).
++latex_documents = [
++  ('index', 'Mock.tex', u'Mock Documentation',
++   u'Michael Foord', 'manual'),
++]
++
++# The name of an image file (relative to this directory) to place at the top of
++# the title page.
++#latex_logo = None
++
++# For "manual" documents, if this is true, then toplevel headings are parts,
++# not chapters.
++#latex_use_parts = False
++
++# Additional stuff for the LaTeX preamble.
++#latex_preamble = ''
++
++# Documents to append as an appendix to all manuals.
++#latex_appendices = []
++
++# If false, no module index is generated.
++latex_use_modindex = False

Added: packages/python-mock/trunk/debian/patches/series
===================================================================
--- packages/python-mock/trunk/debian/patches/series	                        (rev 0)
+++ packages/python-mock/trunk/debian/patches/series	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1 @@
+add_docs_conf.patch

Added: packages/python-mock/trunk/debian/python-mock.doc-base
===================================================================
--- packages/python-mock/trunk/debian/python-mock.doc-base	                        (rev 0)
+++ packages/python-mock/trunk/debian/python-mock.doc-base	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,9 @@
+Document: python-mock
+Title: Python Mock Documentation
+Author: Michael Foord
+Abstract: This documentation gives an introduction to Python Mock.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-mock/html/index.html
+Files: /usr/share/doc/python-mock/html/*.html

Added: packages/python-mock/trunk/debian/python-mock.links
===================================================================
--- packages/python-mock/trunk/debian/python-mock.links	                        (rev 0)
+++ packages/python-mock/trunk/debian/python-mock.links	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,2 @@
+usr/share/doc/python-mock/html/_sources usr/share/doc/python-mock/rst
+usr/share/javascript/jquery/jquery.js usr/share/doc/python-mock/html/_static/jquery.js

Added: packages/python-mock/trunk/debian/rules
===================================================================
--- packages/python-mock/trunk/debian/rules	                        (rev 0)
+++ packages/python-mock/trunk/debian/rules	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@ --with=python2
+	
+.PHONY: override_dh_installchangelogs
+override_dh_installchangelogs:
+	dh_installchangelogs -k docs/changelog.txt
+
+.PHONY: override_dh_installdocs
+override_dh_installdocs:
+	PYTHONPATH=. sphinx-build -b html -d .build/.doctrees -N docs .build/html
+	dh_installdocs
+	# Remove embedded copy of libjs-jquery
+	rm debian/python-mock/usr/share/doc/python-mock/html/_static/jquery.js
+
+.PHONY: override_dh_compress
+override_dh_compress:
+	dh_compress -X.js -X.html
+
+.PHONY: override_dh_clean
+override_dh_clean:
+	rm -rf .build html
+	dh_clean
+


Property changes on: packages/python-mock/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/python-mock/trunk/debian/source/format
===================================================================
--- packages/python-mock/trunk/debian/source/format	                        (rev 0)
+++ packages/python-mock/trunk/debian/source/format	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/python-mock/trunk/debian/source/local-options
===================================================================
--- packages/python-mock/trunk/debian/source/local-options	                        (rev 0)
+++ packages/python-mock/trunk/debian/source/local-options	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,2 @@
+abort-on-upstream-changes
+unapply-patches

Added: packages/python-mock/trunk/debian/watch
===================================================================
--- packages/python-mock/trunk/debian/watch	                        (rev 0)
+++ packages/python-mock/trunk/debian/watch	2011-04-16 08:49:58 UTC (rev 16549)
@@ -0,0 +1,2 @@
+version=3
+http://pypi.python.org/packages/source/m/mock/mock-([\d\.]+)\.tar\.gz




More information about the Python-modules-commits mailing list