[Python-modules-commits] r23816 - in packages/flask-babel/trunk (17 files)

sramacher at users.alioth.debian.org sramacher at users.alioth.debian.org
Tue Apr 2 15:35:55 UTC 2013


    Date: Tuesday, April 2, 2013 @ 15:35:53
  Author: sramacher
Revision: 23816

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

Added:
  packages/flask-babel/trunk/debian/
  packages/flask-babel/trunk/debian/changelog
  packages/flask-babel/trunk/debian/clean
  packages/flask-babel/trunk/debian/compat
  packages/flask-babel/trunk/debian/control
  packages/flask-babel/trunk/debian/copyright
  packages/flask-babel/trunk/debian/patches/
  packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch
  packages/flask-babel/trunk/debian/patches/intersphinx-mapping.patch
  packages/flask-babel/trunk/debian/patches/series
  packages/flask-babel/trunk/debian/python-flask-babel-doc.doc-base
  packages/flask-babel/trunk/debian/python-flask-babel-doc.docs
  packages/flask-babel/trunk/debian/python-flask-babel.install
  packages/flask-babel/trunk/debian/rules
  packages/flask-babel/trunk/debian/source/
  packages/flask-babel/trunk/debian/source/format
  packages/flask-babel/trunk/debian/watch


Property changes on: packages/flask-babel/trunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/flask-babel/trunk/debian/changelog
===================================================================
--- packages/flask-babel/trunk/debian/changelog	                        (rev 0)
+++ packages/flask-babel/trunk/debian/changelog	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,5 @@
+flask-babel (0.8-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #703533)
+
+ -- Sebastian Ramacher <sramacher at debian.org>  Thu, 21 Mar 2013 15:35:52 +0100

Added: packages/flask-babel/trunk/debian/clean
===================================================================
--- packages/flask-babel/trunk/debian/clean	                        (rev 0)
+++ packages/flask-babel/trunk/debian/clean	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,3 @@
+html/*
+flask_babel.py
+Flask_Babel.egg-info/*

Added: packages/flask-babel/trunk/debian/compat
===================================================================
--- packages/flask-babel/trunk/debian/compat	                        (rev 0)
+++ packages/flask-babel/trunk/debian/compat	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1 @@
+9

Added: packages/flask-babel/trunk/debian/control
===================================================================
--- packages/flask-babel/trunk/debian/control	                        (rev 0)
+++ packages/flask-babel/trunk/debian/control	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,44 @@
+Source: flask-babel
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Sebastian Ramacher <sramacher at debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ python-all (>= 2.6.6-3~),
+ python-setuptools,
+ python-flask (>= 0.8),
+ python-babel,
+ python-tz,
+ python-jinja2 (>= 2.5),
+ python-speaklater (>= 1.2),
+ python-sphinx (>= 1.0.7+dfsg),
+ python-doc
+X-Python-Version: >= 2.6
+Standards-Version: 3.9.4
+Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/flask-babel/trunk/
+Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/flask-babel/trunk/
+Homepage: https://github.com/mitsuhiko/flask-babel
+
+Package: python-flask-babel
+Architecture: all
+Depends:
+ ${python:Depends},
+ ${misc:Depends},
+ python-flask (>= 0.8)
+Suggests: python-flask-babel-doc
+Description: i18n and l10n support for Flask applications
+ Flask-Babel is an extension to Flask that adds internationalization and
+ localization support. It also supports date formatting with timezones and
+ a very simple and friendly interface to gettext translations.
+
+Package: python-flask-babel-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: i18n and l10n support for Flask applications (documentation)
+ Flask-Babel is an extension to Flask that adds internationalization and
+ localization support. It also supports date formatting with timezones and
+ a very simple and friendly interface to gettext translations.
+ .
+ This package contains the documentation.

Added: packages/flask-babel/trunk/debian/copyright
===================================================================
--- packages/flask-babel/trunk/debian/copyright	                        (rev 0)
+++ packages/flask-babel/trunk/debian/copyright	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,36 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Flask-Babel
+Source: https://pypi.python.org/pypi/Flask-Babel
+
+Files: *
+Copyright: 2010 by Armin Ronacher <armin.ronacher at active-4.com>
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2013 Sebastian Ramacher <sramacher 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:
+ .
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. 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.
+  3. The name of the author may not be used to endorse or promote products
+     derived from this software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTOR 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/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch
===================================================================
--- packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch	                        (rev 0)
+++ packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,104 @@
+Description: Switch to new extension naming scheme
+ To reduce the size of the diff, the renaiming of flaskext/babel.py to
+ flask_babel.py is done in debian/rules.
+Author: Janne Vanhala <janne.vanhala at gmail.com>
+Origin: https://github.com/jpvanhal/flask-babel/commit/058d197f
+Last-Modified: 2013-04-02
+
+diff --git a/docs/index.rst b/docs/index.rst
+index 49db375..9465e0d 100644
+--- a/docs/index.rst
++++ b/docs/index.rst
+@@ -1,7 +1,7 @@
+ Flask-Babel
+ ===========
+ 
+-.. module:: flaskext.babel
++.. module:: flask.ext.babel
+ 
+ Flask-Babel is an extension to `Flask`_ that adds i18n and l10n support to
+ any Flask application with the help of `babel`_, `pytz`_ and
+@@ -31,7 +31,7 @@ To get started all you need to do is to instanciate a :class:`Babel`
+ object after configuring the application::
+ 
+     from flask import Flask
+-    from flaskext.babel import Babel
++    from flask.ext.babel import Babel
+ 
+     app = Flask(__name__)
+     app.config.from_pyfile('mysettings.cfg')
+@@ -106,7 +106,7 @@ To play with the date formatting from the console, you can use the
+ 
+ Here some examples:
+ 
+->>> from flaskext.babel import format_datetime
++>>> from flask.ext.babel import format_datetime
+ >>> from datetime import datetime
+ >>> format_datetime(datetime(1987, 3, 5, 17, 12))
+ u'Mar 5, 1987 5:12:00 PM'
+@@ -122,7 +122,7 @@ u'05 12 1987'
+ And again with a different language:
+ 
+ >>> app.config['BABEL_DEFAULT_LOCALE'] = 'de'
+->>> from flaskext.babel import refresh; refresh()
++>>> from flask.ext.babel import refresh; refresh()
+ >>> format_datetime(datetime(1987, 3, 5, 17, 12), 'EEEE, d. MMMM yyyy H:mm')
+ u'Donnerstag, 5. M\xe4rz 1987 17:12'
+ 
+@@ -142,7 +142,7 @@ There are two functions responsible for translating: :func:`gettext` and
+ :func:`ngettext`.  The first to translate singular strings and the second
+ to translate strings that might become plural.  Here some examples::
+ 
+-    from flaskext.babel import gettext, ngettext
++    from flask.ext.babel import gettext, ngettext
+ 
+     gettext(u'A simple string')
+     gettext(u'Value: %(value)s', value=42)
+@@ -153,7 +153,7 @@ application and define them outside of a request, you can use a lazy
+ strings.  Lazy strings will not be evaluated until they are actually used.
+ To use such a lazy string, use the :func:`lazy_gettext` function::
+ 
+-    from flaskext.babel import lazy_gettext
++    from flask.ext.babel import lazy_gettext
+ 
+     class MyForm(formlibrary.FormBase):
+         success_message = lazy_gettext(u'The form was successfully saved.')
+diff --git a/flaskext/__init__.py b/flaskext/__init__.py
+deleted file mode 100644
+index de40ea7..0000000
+--- a/flaskext/__init__.py
++++ /dev/null
+@@ -1 +0,0 @@
+-__import__('pkg_resources').declare_namespace(__name__)
+diff --git a/setup.py b/setup.py
+index 7d50657..0bbad8d 100644
+--- a/setup.py
++++ b/setup.py
+@@ -27,8 +27,7 @@
+     author_email='armin.ronacher at active-4.com',
+     description='Adds i18n/l10n support to Flask applications',
+     long_description=__doc__,
+-    packages=['flaskext'],
+-    namespace_packages=['flaskext'],
++    py_modules=['flask_babel'],
+     zip_safe=False,
+     platforms='any',
+     install_requires=[
+diff --git a/tests/tests.py b/tests/tests.py
+index 0de6592..76ace3d 100644
+--- a/tests/tests.py
++++ b/tests/tests.py
+@@ -9,8 +9,8 @@
+ from decimal import Decimal
+ import flask
+ from datetime import datetime
+-from flaskext import babel
+-from flaskext.babel import gettext, ngettext, lazy_gettext
++from flask.ext import babel
++from flask.ext.babel import gettext, ngettext, lazy_gettext
+ 
+ 
+ class DateFormattingTestCase(unittest.TestCase):
+-- 
+1.8.1.5
+

Added: packages/flask-babel/trunk/debian/patches/intersphinx-mapping.patch
===================================================================
--- packages/flask-babel/trunk/debian/patches/intersphinx-mapping.patch	                        (rev 0)
+++ packages/flask-babel/trunk/debian/patches/intersphinx-mapping.patch	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,29 @@
+Description: use local object inventory files for sphinx
+Author: Sebastian Ramacher <s.ramacher at debian.org>
+Forwarded: not-needed
+Last-Update: 2013-03-24
+
+--- a/docs/conf.py
++++ b/docs/conf.py
+@@ -219,5 +219,19 @@
+      [u'Armin Ronacher'], 1)
+ ]
+ 
+-intersphinx_mapping = {'http://docs.python.org/': None,
+-                       'http://flask.pocoo.org/docs/': None}
++intersphinx_mapping = {
++    'http://docs.python.org/dev': None,
++    'http://flask.pocoo.org/docs': None
++}
++def check_object_path(key, url, path):
++  if os.path.isfile(path):
++    return {key: (url, path)}
++  return {}
++
++intersphinx_mapping = {}
++intersphinx_mapping.update(
++    check_object_path('python',
++                      'http://docs.python.org/',
++                      '/usr/share/doc/python%d.%d/html/objects.inv' % \
++                        sys.version_info[:2]))
++

Added: packages/flask-babel/trunk/debian/patches/series
===================================================================
--- packages/flask-babel/trunk/debian/patches/series	                        (rev 0)
+++ packages/flask-babel/trunk/debian/patches/series	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,2 @@
+flask-0.8-extension-scheme.patch
+intersphinx-mapping.patch

Added: packages/flask-babel/trunk/debian/python-flask-babel-doc.doc-base
===================================================================
--- packages/flask-babel/trunk/debian/python-flask-babel-doc.doc-base	                        (rev 0)
+++ packages/flask-babel/trunk/debian/python-flask-babel-doc.doc-base	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,11 @@
+Document: python-flask-babel
+Title: Flask-Babel API Documentation
+Author: Armin Ronacher
+Abstract:
+ Flask-Babel adds internationalization and internationalization support to Flask
+ applications. This is its API documentation.
+Section: Programming/Python
+
+Format: HTML
+Index: /usr/share/doc/python-flask-babel-doc/html/index.html
+Files: /usr/share/doc/python-flask-babel-doc/html/*.html

Added: packages/flask-babel/trunk/debian/python-flask-babel-doc.docs
===================================================================
--- packages/flask-babel/trunk/debian/python-flask-babel-doc.docs	                        (rev 0)
+++ packages/flask-babel/trunk/debian/python-flask-babel-doc.docs	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1 @@
+docs/_build/html

Added: packages/flask-babel/trunk/debian/python-flask-babel.install
===================================================================
--- packages/flask-babel/trunk/debian/python-flask-babel.install	                        (rev 0)
+++ packages/flask-babel/trunk/debian/python-flask-babel.install	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1 @@
+usr/lib/python2.*

Added: packages/flask-babel/trunk/debian/rules
===================================================================
--- packages/flask-babel/trunk/debian/rules	                        (rev 0)
+++ packages/flask-babel/trunk/debian/rules	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,33 @@
+#!/usr/bin/make -f
+
+# Supported Python versions
+PYVERS = $(shell pyversions -vr)
+
+# Callable functions to determine the correct PYTHONPATH
+pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1))
+
+%:
+	dh $@ --with=python2,sphinxdoc --buildsystem=python_distutils
+
+override_dh_clean:
+	dh_clean
+	rm -rf docs/_build
+
+override_dh_auto_build:
+	# Rename flaskext/babel.py to flask_babel.py. This is done here to reduce the
+	# size of debian/patches/flask-0.8-extension-scheme.patch.
+	cp flaskext/babel.py flask_babel.py
+	dh_auto_build
+	python setup.py build_sphinx
+
+override_dh_auto_install:
+	dh_auto_install
+	rm debian/tmp/usr/lib/python*/*-packages/Flask_Babel-*.egg-info/SOURCES.txt
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+	set -ex && cd tests && for py in $(PYVERS); do \
+		PYTHONPATH=$(call pythonpath,$$py) python$$py tests.py ;\
+	done
+endif
+


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

Added: packages/flask-babel/trunk/debian/source/format
===================================================================
--- packages/flask-babel/trunk/debian/source/format	                        (rev 0)
+++ packages/flask-babel/trunk/debian/source/format	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/flask-babel/trunk/debian/watch
===================================================================
--- packages/flask-babel/trunk/debian/watch	                        (rev 0)
+++ packages/flask-babel/trunk/debian/watch	2013-04-02 15:35:53 UTC (rev 23816)
@@ -0,0 +1,3 @@
+version=3
+https://pypi.python.org/pypi/Flask-Babel \
+  .*/Flask-Babel-(.*)\.tar\.gz




More information about the Python-modules-commits mailing list