debian/0000755000000000000000000000000012262565631007176 5ustar debian/rules0000755000000000000000000000125112262565631010255 0ustar #!/usr/bin/make -f # -*- makefile -*- export PYBUILD_NAME=bottle export DH_VERBOSE=1 %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild --test-tox override_dh_auto_build: dh_auto_build PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml docs/ build/html PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bman docs/ build/man rm -rf ./build/html/.doctrees override_dh_installchangelogs: dh_installchangelogs docs/changelog.rst override_dh_auto_test: #PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="nosetests" dh_auto_test #PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS="{interpreter} test/testall.py" dh_auto_test python test/testall.py debian/NEWS.Debian0000644000000000000000000000270612262565631011063 0ustar python-bottle (0.8.1-1) unstable; urgency=low Bottle 0.8.1 has some API changes which may break compatibility with previous versions. - the built-in Key/Value database is not available anymore. It was marked as deprecated since 0.6.4 - the Route syntax and behaviour changed. + regular expressions must be encapsulated with #. In 0.6 all non-alphanumeric characters not present in the regular expression were allowed. + regular expressions not part of a route wildcard are escaped automatically. You don't have to escape dots or other regular control characters anymore. In 0.6 the whole URL was interpreted as a regular expression. You can use anonymous wildcards (/index:#(\.html)?#) to achieve a similar behaviour. - the BreakTheBottle exception is gone. Use HTTPResponse instead. - the SimpleTemplate engine escapes HTML special characters in {{bad_html}} expressions automatically. Use the new {{!good_html}} syntax to get old behaviour (no escaping). - the SimpleTemplate engine returns unicode strings instead of lists of byte strings. - bottle.optimize() and the automatic route optimization is obsolete. - Request._environ was renamed to Request.environ - the default redirect() code changed from 307 to 303. - removed support for @default. Use @error(404) instead. - default_app() is obsolete. Use app() instead. -- David Paleino Thu, 15 Jul 2010 18:37:46 +0200 debian/python-bottle-doc.manpages0000644000000000000000000000002312262565631014261 0ustar build/man/bottle.1 debian/watch0000644000000000000000000000011312262565631010222 0ustar version=3 https://github.com/defnull/bottle/tags .*/v?(\d[\d\.]+)\.tar\.gz debian/control0000644000000000000000000000432612262565631010606 0ustar Source: python-bottle Section: python Priority: optional Maintainer: David Paleino Uploaders: Federico Ceratto Build-Depends: debhelper (>= 9~) Build-Depends-Indep: python-all (>= 2.6.6-3~) , python3-all , python-doc , dh-python , python-sphinx # needed for build-time tests , python-cherrypy , python-eventlet , python-flup , python-gevent , python-jinja2 , python-mako , python-paste , python-simpletal , python-tornado , python-tox , python-twisted , python-werkzeug , gunicorn Standards-Version: 3.9.4 Homepage: http://bottlepy.org X-Python-Version: >= 2.5 X-Python3-Version: >= 3.2 Vcs-Git: git://anonscm.debian.org/collab-maint/python-bottle.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/python-bottle.git Package: python-bottle Architecture: all Depends: ${python:Depends} , ${misc:Depends} Provides: ${python:Provides} Description: fast and simple WSGI-framework for Python Bottle is a fast and simple WSGI-framework for the Python programming language. It offers request dispatching with url parameter support (routes), templates, key/value databases, a built-in HTTP server and adapters for many third party WSGI/HTTP-server and template engines. Package: python3-bottle Architecture: all Depends: ${python3:Depends} , ${misc:Depends} Provides: ${python3:Provides} Description: fast and simple WSGI-framework for Python3 Bottle is a fast and simple WSGI-framework for the Python3 programming language. It offers request dispatching with url parameter support (routes), templates, key/value databases, a built-in HTTP server and adapters for many third party WSGI/HTTP-server and template engines. Package: python-bottle-doc Architecture: all Section: doc Depends: ${misc:Depends} , ${sphinxdoc:Depends} , libjs-jquery , libjs-underscore Description: fast and simple WSGI-framework for Python - documentation Bottle is a fast and simple WSGI-framework for the Python programming language. It offers request dispatching with url parameter support (routes), templates, key/value databases, a built-in HTTP server and adapters for many third party WSGI/HTTP-server and template engines. . This package contains the Python module documentation. debian/changelog0000644000000000000000000001320112262565631011045 0ustar python-bottle (0.12.0-1) unstable; urgency=medium [ Federico Ceratto ] * New upstream version -- David Paleino Mon, 06 Jan 2014 18:44:50 +0100 python-bottle (0.11.6-1) unstable; urgency=low * d/changelog: New upstream release 0.11.6 -- Federico Ceratto Mon, 06 May 2013 21:05:51 +0100 python-bottle (0.11.3-1) experimental; urgency=low * New upstream version * Unit-testing enabled -- Federico Ceratto Fri, 02 Nov 2012 15:34:26 +0000 python-bottle (0.10.11-1) unstable; urgency=low * New upstream version * Homepage updated (Closes: #671230) * Standard-Version bumped to 3.9.3, debhelper version bumped to 9 -- Federico Ceratto Fri, 29 Jun 2012 22:38:13 +0100 python-bottle (0.10.9-1) unstable; urgency=low * New upstream version -- Federico Ceratto Fri, 17 Feb 2012 20:09:00 +0000 python-bottle (0.10.7-1) unstable; urgency=low * New upstream version -- Federico Ceratto Sat, 21 Jan 2012 19:08:19 +0000 python-bottle (0.10.6-1) unstable; urgency=low * New upstream version -- Federico Ceratto Thu, 22 Dec 2011 21:42:21 +0000 python-bottle (0.10.2-1) unstable; urgency=low * New upstream version -- David Paleino Sun, 04 Dec 2011 18:52:27 +0100 python-bottle (0.10.1-1) unstable; urgency=low * New upstream version -- Federico Ceratto Sat, 26 Nov 2011 18:27:31 +0000 python-bottle (0.9.7-1) unstable; urgency=low * New upstream version * debian/control: - bumped to debhelper 8 - dependency to python-all added * debian/copyright updated -- Federico Ceratto Fri, 18 Nov 2011 21:34:34 +0000 python-bottle (0.9.5-2) unstable; urgency=low * Testsuite disabled at build-time (Closes: #640266) * Use libjs-underscore in python-bottle-doc -- David Paleino Thu, 27 Oct 2011 23:04:15 +0200 python-bottle (0.9.5-1) unstable; urgency=low * New upstream version -- Federico Ceratto Sun, 03 Jul 2011 09:23:08 +0000 python-bottle (0.9.4-1) unstable; urgency=low [ David Paleino ] * Added python-{paste,eventlet} B-D to feed the testsuite [ Federico Ceratto ] * New upstream version * DM-Upload-Allowed added -- David Paleino Fri, 24 Jun 2011 11:17:34 +0200 python-bottle (0.9.1-1) unstable; urgency=low * New upstream version * Update debian/copyright * Standards-Version bump to 3.9.2, no changes needed * Patches refreshed * Fix docs generation (directory renamed upstream) * Fix testsuite * Adapt debian/rules to correctly run the testsuite and install the plugins -- David Paleino Fri, 13 May 2011 18:13:10 +0200 python-bottle (0.8.4-1) unstable; urgency=low * New upstream version * Uploading to unstable -- David Paleino Wed, 13 Oct 2010 09:46:03 +0200 python-bottle (0.8.3-1) experimental; urgency=low * New upstream version * Upload to experimental, since we're in hard Squeeze freeze now. -- David Paleino Sun, 05 Sep 2010 07:52:39 +0200 python-bottle (0.8.2-1) unstable; urgency=low * New upstream version * debian/patches/02-fix_autoserver_ordering.patch refreshed * debian/control: - Standards-Version bumped to 3.9.1, no changes needed -- David Paleino Mon, 02 Aug 2010 21:59:17 +0200 python-bottle (0.8.1-1) unstable; urgency=low * New upstream version * debian/patches/: - 01-fix_quiet_parsing.patch disabled, seems fixed in a different way upstream - 02-fix_autoserver_ordering.patch refreshed * debian/control: - Standards-Version bumped to 3.9.0, no changes needed * debian/README.source removed, since the package now contains the documentation * debian/watch fixed, only get versions made by digits and dots * debian/NEWS.Debian added, explain incompatible API changes with previous versions -- David Paleino Thu, 15 Jul 2010 19:22:37 +0200 python-bottle (0.8.0-3) unstable; urgency=low * debian/patches/02-fix_autoserver_ordering.patch added, moves CherryPyServer later in the list, since it does weird things on import even when people don't use it. (Closes: #586316) * debian/control: - added Provides to python-bottle -- David Paleino Fri, 18 Jun 2010 20:24:26 +0200 python-bottle (0.8.0-2) unstable; urgency=low * debian/patches/01-fix_quiet_parsing.patch added, thanks to Enrico Zini: only use "quiet" parameter inside run(), i.e. don't pass it to the server adapter (Closes: #584781) -- David Paleino Sun, 06 Jun 2010 17:04:28 +0200 python-bottle (0.8.0-1) unstable; urgency=low * New upstream version * debian/watch updated to point to github tags * debian/control: - added Build-Dependency on python-sphinx, to build documentation - bumped debhelper B-D to >= 7.0.50~ - Standards-Version bumped to 3.8.4 , no changes needed - added runtime Depends on libjs-jquery - new package python-bottle-doc added * debian/python-bottle-doc.docs added * debian/rules: - also install generated documentation * debian/source/format added, using 3.0 (quilt). * debian/python-bottle-doc.links added, use system-wide jQuery * debian/python-bottle-doc.doc-base added -- David Paleino Wed, 31 Mar 2010 18:30:31 +0200 python-bottle (0.6.4-1) unstable; urgency=low * Initial release (Closes: #555717) -- David Paleino Wed, 11 Nov 2009 13:48:02 +0100 debian/copyright0000644000000000000000000000242312262565631011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Files: debian/* Copyright: © 2009-2011, David Paleino License: MIT Files: * Copyright: © 2009-2011, Marcel Hellkamp License: MIT License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/python-bottle.install0000644000000000000000000000000012262565631013364 0ustar debian/source/0000755000000000000000000000000012262565631010476 5ustar debian/source/format0000644000000000000000000000001412262565631011704 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012262565631010625 5ustar debian/patches/0002-Add-CLI-manpage.patch0000644000000000000000000000525512262565631014737 0ustar From: Federico Ceratto Date: Sun, 15 Dec 2013 18:07:11 +0000 Subject: Add CLI manpage --- docs/cli.rst | 46 ++++++++++++++++++++++++++++++++++++++++++++++ docs/conf.py | 6 ++++++ 2 files changed, 52 insertions(+) create mode 100755 docs/cli.rst diff --git a/docs/cli.rst b/docs/cli.rst new file mode 100755 index 0000000..39e2d2c --- /dev/null +++ b/docs/cli.rst @@ -0,0 +1,46 @@ +Command Line Interface +-------------------------------------------------------------------------------- + +.. versionadded: 0.10 + +Starting with version 0.10 you can use bottle as a command-line tool: + +.. code-block:: console + + $ python -m bottle + + Usage: bottle.py [options] package.module:app + + Options: + -h, --help show this help message and exit + --version show version number. + -b ADDRESS, --bind=ADDRESS + bind socket to ADDRESS. + -s SERVER, --server=SERVER + use SERVER as backend. + -p PLUGIN, --plugin=PLUGIN + install additional plugin/s. + --debug start server in debug mode. + --reload auto-reload on file changes. + +The `ADDRESS` field takes an IP address or an IP:PORT pair and defaults to ``localhost:8080``. The other parameters should be self-explanatory. + +Both plugins and applications are specified via import expressions. These consist of an import path (e.g. ``package.module``) and an expression to be evaluated in the namespace of that module, separated by a colon. See :func:`load` for details. Here are some examples: + +.. code-block:: console + + # Grab the 'app' object from the 'myapp.controller' module and + # start a paste server on port 80 on all interfaces. + python -m bottle -server paste -bind 0.0.0.0:80 myapp.controller:app + + # Start a self-reloading development server and serve the global + # default application. The routes are defined in 'test.py' + python -m bottle --debug --reload test + + # Install a custom debug plugin with some parameters + python -m bottle --debug --reload --plugin 'utils:DebugPlugin(exc=True)'' test + + # Serve an application that is created with 'myapp.controller.make_app()' + # on demand. + python -m bottle 'myapp.controller:make_app()'' + diff --git a/docs/conf.py b/docs/conf.py index 4ede58a..ded2274 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -20,3 +20,9 @@ intersphinx_mapping = {'python': ('http://docs.python.org/', None), autodoc_member_order = 'bysource' +man_pages = [ + ('cli', 'bottle', u'command line interface', [ + u'Marcel Hellkamp', + u'Federico Ceratto', + ], 1) +] debian/patches/series0000644000000000000000000000010412262565631012035 0ustar 0001-Remove-bottle.py-from-scripts.patch 0002-Add-CLI-manpage.patch debian/patches/0001-Remove-bottle.py-from-scripts.patch0000644000000000000000000000104512262565631020025 0ustar From: Federico Ceratto Date: Sun, 15 Dec 2013 01:41:56 +0000 Subject: Remove bottle.py from scripts --- setup.py | 1 - 1 file changed, 1 deletion(-) diff --git a/setup.py b/setup.py index 8b83522..19392f8 100755 --- a/setup.py +++ b/setup.py @@ -17,7 +17,6 @@ setup(name='bottle', author_email='marc@gsites.de', url='http://bottlepy.org/', py_modules=['bottle'], - scripts=['bottle.py'], license='MIT', platforms = 'any', classifiers=['Development Status :: 4 - Beta', debian/python-bottle-doc.docs0000644000000000000000000000001312262565631013415 0ustar build/html debian/python-bottle-doc.doc-base0000644000000000000000000000035112262565631014147 0ustar Document: python-bottle Title: Bottle Web Framework Documentation Author: Marcel Hellkamp Section: Programming/Python Format: HTML Index: /usr/share/doc/python-bottle-doc/html/index.html Files: /usr/share/doc/python-bottle-doc/html debian/compat0000644000000000000000000000000212262565631010374 0ustar 9