[Python-modules-commits] r26098 - in packages/flask-babel/trunk/debian (6 files)
sramacher at users.alioth.debian.org
sramacher at users.alioth.debian.org
Mon Oct 7 17:22:15 UTC 2013
Date: Monday, October 7, 2013 @ 17:22:12
Author: sramacher
Revision: 26098
* New upstream release.
* debian/patches:
- flask-0.8-extension-scheme.patch: Removed, no longer needed.
- sphinx-default-theme.patch: Use default sphinx theme since flask_small
is not contained in the tarball.
* debian/control:
- Bump python-babel in Build-Depends to (>= 1.0) and remove python-tz.
- Add versioned dependencies for python-babel, python-jinja2 and
python-speaklater.
* debian/copyright:
- Update copyright years.
- Add Daniel Neuh?\195?\164user.
Modified:
packages/flask-babel/trunk/debian/changelog
packages/flask-babel/trunk/debian/control
packages/flask-babel/trunk/debian/copyright
packages/flask-babel/trunk/debian/patches/series
packages/flask-babel/trunk/debian/rules
Deleted:
packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch
Modified: packages/flask-babel/trunk/debian/changelog
===================================================================
--- packages/flask-babel/trunk/debian/changelog 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/changelog 2013-10-07 17:22:12 UTC (rev 26098)
@@ -1,3 +1,20 @@
+flask-babel (0.9-1) UNRELEASED; urgency=low
+
+ * New upstream release.
+ * debian/patches:
+ - flask-0.8-extension-scheme.patch: Removed, no longer needed.
+ - sphinx-default-theme.patch: Use default sphinx theme since flask_small
+ is not contained in the tarball.
+ * debian/control:
+ - Bump python-babel in Build-Depends to (>= 1.0) and remove python-tz.
+ - Add versioned dependencies for python-babel, python-jinja2 and
+ python-speaklater.
+ * debian/copyright:
+ - Update copyright years.
+ - Add Daniel Neuhäuser.
+
+ -- Sebastian Ramacher <sramacher at debian.org> Mon, 07 Oct 2013 18:18:27 +0200
+
flask-babel (0.8-2) unstable; urgency=low
* Upload to unstable.
Modified: packages/flask-babel/trunk/debian/control
===================================================================
--- packages/flask-babel/trunk/debian/control 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/control 2013-10-07 17:22:12 UTC (rev 26098)
@@ -8,8 +8,7 @@
python-all (>= 2.6.6-3~),
python-setuptools,
python-flask (>= 0.8),
- python-babel,
- python-tz,
+ python-babel (>= 1.0),
python-jinja2 (>= 2.5),
python-speaklater (>= 1.2),
python-sphinx (>= 1.0.7+dfsg),
@@ -25,7 +24,10 @@
Depends:
${python:Depends},
${misc:Depends},
- python-flask (>= 0.8)
+ python-flask (>= 0.8),
+ python-babel (>= 1.0),
+ python-jinja2 (>= 2.5),
+ python-speaklater (>= 1.2)
Suggests: python-flask-babel-doc
Description: internationalization and localization support for Flask
Flask-Babel is an extension to Flask that adds internationalization and
@@ -35,7 +37,9 @@
Package: python-flask-babel-doc
Architecture: all
Section: doc
-Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Depends:
+ ${misc:Depends},
+ ${sphinxdoc:Depends}
Description: internationalization and localization support for Flask (documentation)
Flask-Babel is an extension to Flask that adds internationalization and
localization support. It has a friendly interface to gettext translations and
Modified: packages/flask-babel/trunk/debian/copyright
===================================================================
--- packages/flask-babel/trunk/debian/copyright 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/copyright 2013-10-07 17:22:12 UTC (rev 26098)
@@ -3,7 +3,8 @@
Source: https://pypi.python.org/pypi/Flask-Babel
Files: *
-Copyright: 2010 by Armin Ronacher <armin.ronacher at active-4.com>
+Copyright: 2010,2013 by Armin Ronacher <armin.ronacher at active-4.com>
+ 2013 Daniel Neuhäuser
License: BSD-3-clause
Files: debian/*
Deleted: packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch
===================================================================
--- packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/patches/flask-0.8-extension-scheme.patch 2013-10-07 17:22:12 UTC (rev 26098)
@@ -1,104 +0,0 @@
-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
-
Modified: packages/flask-babel/trunk/debian/patches/series
===================================================================
--- packages/flask-babel/trunk/debian/patches/series 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/patches/series 2013-10-07 17:22:12 UTC (rev 26098)
@@ -1,2 +1,2 @@
-flask-0.8-extension-scheme.patch
intersphinx-mapping.patch
+sphinx-default-theme.patch
Modified: packages/flask-babel/trunk/debian/rules
===================================================================
--- packages/flask-babel/trunk/debian/rules 2013-10-07 16:39:20 UTC (rev 26097)
+++ packages/flask-babel/trunk/debian/rules 2013-10-07 17:22:12 UTC (rev 26098)
@@ -14,9 +14,6 @@
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
More information about the Python-modules-commits
mailing list