debian/0000755000000000000000000000000012201673362007170 5ustar debian/python-flask-autoindex-doc.docs0000644000000000000000000000002112126644753015223 0ustar docs/_build/html debian/clean0000644000000000000000000000003312126644753010201 0ustar Flask_AutoIndex.egg-info/* debian/watch0000644000000000000000000000013412126644753010227 0ustar version=3 https://pypi.python.org/pypi/Flask-AutoIndex \ .*/Flask-AutoIndex-(.*)\.tar\.gz debian/patches/0000755000000000000000000000000012201673362010617 5ustar debian/patches/doc-silk-license.patch0000644000000000000000000000271312126644753015000 0ustar Description: add a note about Silk's license Author: Sebastian Ramacher Origin: upstream, https://github.com/sebastinas/flask-autoindex/commit/968354e3, https://github.com/sebastinas/flask-autoindex/commit/fb4ea7f7 Last-Update: 2013-03-31 --- flask-autoindex-0.5.orig/docs/index.rst +++ flask-autoindex-0.5/docs/index.rst @@ -13,8 +13,18 @@ awesome! Look at this: This module contains pre-designed template and css file. It is default style, but you can make your own style. +.. note:: + Flask-AutoIndex uses `Flask-Silk`_ to serve icons. Per default, the icons + from Mark James's `Silk`_ icon set are used. These icons are licensed + under `Creative Commons Attribution 2.5 License `_ or + `3.0 License `_. Before using the icons, read the license. + .. _Flask: http://flask.pocoo.org/ .. _mod_autoindex: http://httpd.apache.org/docs/current/mod/mod_autoindex.html +.. _Flask-Silk: http://packages.python.org/Flask-Silk +.. _Silk: http://www.famfamfam.com/lab/icons/silk/ +.. _CC-BY-2.5: http://creativecommons.org/licenses/by/2.5 +.. _CC-BY-3.0: http://creativecommons.org/licenses/by/3.0 Installation ============ @@ -112,7 +122,7 @@ Now you can get a silk icon from ``http: ``http://localhost/__icons__/folder.png``. .. seealso:: - The documentation for `Flask-Silk `_ + The documentation for `Flask-Silk`_ Redesigning the template ```````````````````````` debian/patches/flask-0.10.patch0000644000000000000000000000252612201673334013320 0ustar Description: Pass tests with Flask 0.10.1 Origin: upsteam, https://github.com/sublee/flask-autoindex/commit/5e920c5c7ea675f7cae2f6e83b44209136f9b68d Last-Update: 2013-08-11 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -133,16 +133,17 @@ self.app = Flask(__name__) self.app2 = Flask(__name__) self.idx = AutoIndex(self.app, browse_root, add_url_rules=True) - self.idx2 = AutoIndex(self.app2, silk_path='/myicons') + self.idx2 = AutoIndex(self.app2, browse_root, silk_path='/myicons') @self.app2.route('/') @self.app2.route('/') - def autoindex(path='.'): + def autoindex_test(path='.'): return self.idx2.render_autoindex(path, browse_root) def get(self, path): return self.app.test_client().get(path) def get2(self, path): + self.app2.config['TESTING'] = True return self.app2.test_client().get(path) def test_css(self): @@ -157,9 +158,8 @@ assert rv.data == rv2.data def test_autoindex(self): - for get in self.get, self.get2: - rv = get('/') - assert '__init__.py' in rv.data + assert '__init__.py' in self.get('/').data + assert '__init__.py' in self.get2('/').data def test_own_static_file(self): rv = self.get('/static/helloworld.txt') debian/patches/series0000644000000000000000000000005012201672264012027 0ustar doc-silk-license.patch flask-0.10.patch debian/source/0000755000000000000000000000000012201673362010470 5ustar debian/source/format0000644000000000000000000000001412126644753011706 0ustar 3.0 (quilt) debian/copyright0000644000000000000000000000412712133511501011115 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Flask-AutoIndex Source: https://pypi.python.org/pypi/Flask-AutoIndex Comment: Flask-AutoIndex uses Flask-Silk (available from python-flask-silk) to serve icons. Per default, the icons from the Silk icon set by Mark James are used. These icons are released under CC-BY-3.0. Before using the icons, read their license which can be found in /usr/share/doc/python-flask-silk/copyright. Files: * Copyright: 2010-2013 Heungsub Lee License: BSD-3-clause Files: docs/_themes/* Copyright: 2010 Armin Ronacher License: BSD-3-clause Files: debian/* Copyright: 2013 Sebastian Ramacher 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. debian/compat0000644000000000000000000000000212126644753010376 0ustar 9 debian/rules0000755000000000000000000000122412126644753010257 0ustar #!/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 override_dh_clean: dh_clean rm -rf docs/_build override_dh_auto_build: dh_auto_build python setup.py build_sphinx override_dh_auto_install: dh_auto_install rm debian/tmp/usr/lib/python*/*-packages/Flask_AutoIndex-*.egg-info/SOURCES.txt override_dh_auto_test: ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS))) set -ex && for py in $(PYVERS); do \ PYTHONPATH=$(call pythonpath,$$py) python$$py setup.py test ;\ done endif debian/python-flask-autoindex-doc.doc-base0000644000000000000000000000066312126644753015764 0ustar Document: python-flask-autoindex Title: Flask-AutoIndex API Documentation Author: Heungsub Lee Abstract: Flask-AutoIndex adds automatically generated index pages to Flask applications. The result is similar to Apache's mod_autoindex. This is its API documentation. Section: Programming/Python Format: HTML Index: /usr/share/doc/python-flask-autoindex-doc/html/index.html Files: /usr/share/doc/python-flask-autoindex-doc/html/*.html debian/control0000644000000000000000000000265012133513403010567 0ustar Source: flask-autoindex Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Sebastian Ramacher Build-Depends: debhelper (>= 9), python-all (>= 2.6.6-3~), python-setuptools, python-sphinx (>= 1.0.7+dfsg), python-flask (>= 0.8), python-flask-silk X-Python-Version: >= 2.6 Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/flask-autoindex/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/flask-autoindex/trunk/ Homepage: https://github.com/sublee/flask-autoindex Package: python-flask-autoindex Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-flask (>= 0.8) Suggests: python-flask-autoindex-doc Description: automatically generated index pages for Flask applications Flask-AutoIndex is a Flask extension that generates index pages for directories automatically. The result is similar to the pages generated by Apache's mod_autoindex. Package: python-flask-autoindex-doc Architecture: all Section: doc Depends: ${misc:Depends}, ${sphinxdoc:Depends} Description: automatically generated index pages for Flask applications (documentation) Flask-AutoIndex is a Flask extension that generates index pages for directories automatically. The result is similar to the pages generated by Apache's mod_autoindex. . This package contains the documentation. debian/changelog0000644000000000000000000000105712201673353011045 0ustar flask-autoindex (0.5-3) unstable; urgency=low * debian/patches/flask-0.10.patch: Upstream patch to fix test suite with flask 0.10. (Closes: #719302) -- Sebastian Ramacher Sun, 11 Aug 2013 13:35:05 +0200 flask-autoindex (0.5-2) unstable; urgency=low * Upload to unstable. -- Sebastian Ramacher Thu, 09 May 2013 15:01:32 +0200 flask-autoindex (0.5-1) experimental; urgency=low * Initial release. (Closes: #703531) -- Sebastian Ramacher Wed, 17 Apr 2013 14:34:53 +0200 debian/python-flask-autoindex.install0000644000000000000000000000002212126644753015177 0ustar usr/lib/python2.*