[Python-modules-commits] [flask-autoindex] 03/04: New upstream version 0.6+0git20160725-02b454
Jonathan Cristopher Carter
jcc at moszumanska.debian.org
Tue Sep 5 10:15:03 UTC 2017
This is an automated email from the git hooks/post-receive script.
jcc pushed a commit to branch master
in repository flask-autoindex.
commit 25d6c59535053ec31d4bfebf89f7786cc82942ce
Author: Jonathan Carter <jcarter at linux.com>
Date: Tue Sep 5 12:12:04 2017 +0200
New upstream version 0.6+0git20160725-02b454
---
.gitignore | 11 ++
.gitmodules | 3 +
Flask_AutoIndex.egg-info/PKG-INFO | 36 ------
Flask_AutoIndex.egg-info/SOURCES.txt | 127 ---------------------
Flask_AutoIndex.egg-info/dependency_links.txt | 1 -
Flask_AutoIndex.egg-info/entry_points.txt | 3 -
Flask_AutoIndex.egg-info/not-zip-safe | 1 -
Flask_AutoIndex.egg-info/requires.txt | 3 -
Flask_AutoIndex.egg-info/top_level.txt | 1 -
PKG-INFO | 36 ------
docs/Makefile | 130 +++++++++++++++++++++
docs/index.rst | 2 +-
docs/make.bat | 155 ++++++++++++++++++++++++++
flask_autoindex/__init__.py | 4 +-
flask_autoindex/run.py | 2 +-
setup.cfg | 6 -
setup.py | 2 +-
tests/__init__.py | 2 +-
18 files changed, 305 insertions(+), 220 deletions(-)
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..278ef71
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Compiled sources
+*.pyc
+
+# Temporary files
+*.swp
+
+# Distribution
+*egg-info
+build
+dist
+docs/_build
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..3d7df14
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "docs/_themes"]
+ path = docs/_themes
+ url = https://github.com/mitsuhiko/flask-sphinx-themes.git
diff --git a/Flask_AutoIndex.egg-info/PKG-INFO b/Flask_AutoIndex.egg-info/PKG-INFO
deleted file mode 100644
index 19122f3..0000000
--- a/Flask_AutoIndex.egg-info/PKG-INFO
+++ /dev/null
@@ -1,36 +0,0 @@
-Metadata-Version: 1.1
-Name: Flask-AutoIndex
-Version: 0.6
-Summary: The mod_autoindex for Flask
-Home-page: http://pythonhosted.org/Flask-AutoIndex
-Author: Heungsub Lee
-Author-email: sub at subl.ee
-License: BSD
-Description:
- Flask-AutoIndex
- ---------------
-
- Flask-AutoIndex generates an index page for your `Flask`_ application
- automatically. The result just like `mod_autoindex`_, but the look is more
- awesome! Look at this:
-
- .. _Flask: http://flask.pocoo.org/
- .. _mod_autoindex: http://httpd.apache.org/docs/current/mod/mod_autoindex.html
-
- Links
- `````
-
- * `documentation <http://packages.python.org/Flask-AutoIndex/>`_
- * `development version
- <http://github.com/sublee/flask-autoindex/zipball/master#egg=flask-autoindex-dev>`_
-
-
-Platform: any
-Classifier: Development Status :: 4 - Beta
-Classifier: Environment :: Web Environment
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python
-Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
-Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff --git a/Flask_AutoIndex.egg-info/SOURCES.txt b/Flask_AutoIndex.egg-info/SOURCES.txt
deleted file mode 100644
index 8c5ff9b..0000000
--- a/Flask_AutoIndex.egg-info/SOURCES.txt
+++ /dev/null
@@ -1,127 +0,0 @@
-LICENSE
-MANIFEST.in
-README
-setup.cfg
-setup.py
-Flask_AutoIndex.egg-info/PKG-INFO
-Flask_AutoIndex.egg-info/SOURCES.txt
-Flask_AutoIndex.egg-info/dependency_links.txt
-Flask_AutoIndex.egg-info/entry_points.txt
-Flask_AutoIndex.egg-info/not-zip-safe
-Flask_AutoIndex.egg-info/requires.txt
-Flask_AutoIndex.egg-info/top_level.txt
-docs/conf.py
-docs/index.rst
-docs/_static/example.png
-docs/_static/flask-autoindex.png
-flask_autoindex/__init__.py
-flask_autoindex/entry.py
-flask_autoindex/icons.py
-flask_autoindex/run.py
-flask_autoindex/static/asc.gif
-flask_autoindex/static/autoindex.css
-flask_autoindex/static/desc.gif
-flask_autoindex/templates/__autoindex__/autoindex.html
-flask_autoindex/templates/__autoindex__/macros.html
-tests/__init__.py
-tests/blueprinttest/__init__.py
-tests/static/helloworld.txt
-tests/static/test.7z
-tests/static/test.ai
-tests/static/test.alz
-tests/static/test.app
-tests/static/test.applescript
-tests/static/test.asp
-tests/static/test.avi
-tests/static/test.bak
-tests/static/test.bat
-tests/static/test.bin
-tests/static/test.bmp
-tests/static/test.bup
-tests/static/test.c
-tests/static/test.cab
-tests/static/test.cer
-tests/static/test.cfg
-tests/static/test.cgi
-tests/static/test.com
-tests/static/test.conf
-tests/static/test.cpl
-tests/static/test.cpp
-tests/static/test.css
-tests/static/test.csv
-tests/static/test.cur
-tests/static/test.db
-tests/static/test.dll
-tests/static/test.dmg
-tests/static/test.doc
-tests/static/test.docx
-tests/static/test.eps
-tests/static/test.exe
-tests/static/test.fla
-tests/static/test.flv
-tests/static/test.gif
-tests/static/test.h
-tests/static/test.htm
-tests/static/test.html
-tests/static/test.hwp
-tests/static/test.ico
-tests/static/test.ics
-tests/static/test.ini
-tests/static/test.iso
-tests/static/test.jar
-tests/static/test.java
-tests/static/test.jpeg
-tests/static/test.jpg
-tests/static/test.js
-tests/static/test.json
-tests/static/test.jsp
-tests/static/test.less
-tests/static/test.log
-tests/static/test.markdown
-tests/static/test.md
-tests/static/test.mid
-tests/static/test.mov
-tests/static/test.mp3
-tests/static/test.mp4
-tests/static/test.mpa
-tests/static/test.mpeg
-tests/static/test.mpg
-tests/static/test.pdf
-tests/static/test.php
-tests/static/test.pkg
-tests/static/test.png
-tests/static/test.ppt
-tests/static/test.pptx
-tests/static/test.psd
-tests/static/test.py
-tests/static/test.rar
-tests/static/test.rb
-tests/static/test.rss
-tests/static/test.rtf
-tests/static/test.sh
-tests/static/test.smi
-tests/static/test.sql
-tests/static/test.svg
-tests/static/test.swf
-tests/static/test.sys
-tests/static/test.tar
-tests/static/test.tar.gz
-tests/static/test.tgz
-tests/static/test.tif
-tests/static/test.tmp
-tests/static/test.toast
-tests/static/test.torrent
-tests/static/test.ttf
-tests/static/test.txt
-tests/static/test.vb
-tests/static/test.vcd
-tests/static/test.vcf
-tests/static/test.wav
-tests/static/test.wmv
-tests/static/test.xhtml
-tests/static/test.xls
-tests/static/test.xlsx
-tests/static/test.xml
-tests/static/test.xsl
-tests/static/test.yml
-tests/static/test.zip
\ No newline at end of file
diff --git a/Flask_AutoIndex.egg-info/dependency_links.txt b/Flask_AutoIndex.egg-info/dependency_links.txt
deleted file mode 100644
index 8b13789..0000000
--- a/Flask_AutoIndex.egg-info/dependency_links.txt
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/Flask_AutoIndex.egg-info/entry_points.txt b/Flask_AutoIndex.egg-info/entry_points.txt
deleted file mode 100644
index 8f71799..0000000
--- a/Flask_AutoIndex.egg-info/entry_points.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-[console_scripts]
-fai = flask_autoindex.run:run
-
diff --git a/Flask_AutoIndex.egg-info/not-zip-safe b/Flask_AutoIndex.egg-info/not-zip-safe
deleted file mode 100644
index 8b13789..0000000
--- a/Flask_AutoIndex.egg-info/not-zip-safe
+++ /dev/null
@@ -1 +0,0 @@
-
diff --git a/Flask_AutoIndex.egg-info/requires.txt b/Flask_AutoIndex.egg-info/requires.txt
deleted file mode 100644
index db13900..0000000
--- a/Flask_AutoIndex.egg-info/requires.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-Flask>=0.8
-Flask-Silk>=0.2
-future>=0.13.0
diff --git a/Flask_AutoIndex.egg-info/top_level.txt b/Flask_AutoIndex.egg-info/top_level.txt
deleted file mode 100644
index 64aa19d..0000000
--- a/Flask_AutoIndex.egg-info/top_level.txt
+++ /dev/null
@@ -1 +0,0 @@
-flask_autoindex
diff --git a/PKG-INFO b/PKG-INFO
deleted file mode 100644
index 19122f3..0000000
--- a/PKG-INFO
+++ /dev/null
@@ -1,36 +0,0 @@
-Metadata-Version: 1.1
-Name: Flask-AutoIndex
-Version: 0.6
-Summary: The mod_autoindex for Flask
-Home-page: http://pythonhosted.org/Flask-AutoIndex
-Author: Heungsub Lee
-Author-email: sub at subl.ee
-License: BSD
-Description:
- Flask-AutoIndex
- ---------------
-
- Flask-AutoIndex generates an index page for your `Flask`_ application
- automatically. The result just like `mod_autoindex`_, but the look is more
- awesome! Look at this:
-
- .. _Flask: http://flask.pocoo.org/
- .. _mod_autoindex: http://httpd.apache.org/docs/current/mod/mod_autoindex.html
-
- Links
- `````
-
- * `documentation <http://packages.python.org/Flask-AutoIndex/>`_
- * `development version
- <http://github.com/sublee/flask-autoindex/zipball/master#egg=flask-autoindex-dev>`_
-
-
-Platform: any
-Classifier: Development Status :: 4 - Beta
-Classifier: Environment :: Web Environment
-Classifier: Intended Audience :: Developers
-Classifier: License :: OSI Approved :: BSD License
-Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python
-Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
-Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff --git a/docs/Makefile b/docs/Makefile
new file mode 100644
index 0000000..338838b
--- /dev/null
+++ b/docs/Makefile
@@ -0,0 +1,130 @@
+# Makefile for Sphinx documentation
+#
+
+# You can set these variables from the command line.
+SPHINXOPTS =
+SPHINXBUILD = sphinx-build
+PAPER =
+BUILDDIR = _build
+
+# Internal variables.
+PAPEROPT_a4 = -D latex_paper_size=a4
+PAPEROPT_letter = -D latex_paper_size=letter
+ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
+
+.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
+
+help:
+ @echo "Please use \`make <target>' where <target> is one of"
+ @echo " html to make standalone HTML files"
+ @echo " dirhtml to make HTML files named index.html in directories"
+ @echo " singlehtml to make a single large HTML file"
+ @echo " pickle to make pickle files"
+ @echo " json to make JSON files"
+ @echo " htmlhelp to make HTML files and a HTML help project"
+ @echo " qthelp to make HTML files and a qthelp project"
+ @echo " devhelp to make HTML files and a Devhelp project"
+ @echo " epub to make an epub"
+ @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter"
+ @echo " latexpdf to make LaTeX files and run them through pdflatex"
+ @echo " text to make text files"
+ @echo " man to make manual pages"
+ @echo " changes to make an overview of all changed/added/deprecated items"
+ @echo " linkcheck to check all external links for integrity"
+ @echo " doctest to run all doctests embedded in the documentation (if enabled)"
+
+clean:
+ -rm -rf $(BUILDDIR)/*
+
+html:
+ $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
+
+dirhtml:
+ $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml
+ @echo
+ @echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
+
+singlehtml:
+ $(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
+ @echo
+ @echo "Build finished. The HTML page is in $(BUILDDIR)/singlehtml."
+
+pickle:
+ $(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) $(BUILDDIR)/pickle
+ @echo
+ @echo "Build finished; now you can process the pickle files."
+
+json:
+ $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json
+ @echo
+ @echo "Build finished; now you can process the JSON files."
+
+htmlhelp:
+ $(SPHINXBUILD) -b htmlhelp $(ALLSPHINXOPTS) $(BUILDDIR)/htmlhelp
+ @echo
+ @echo "Build finished; now you can run HTML Help Workshop with the" \
+ ".hhp project file in $(BUILDDIR)/htmlhelp."
+
+qthelp:
+ $(SPHINXBUILD) -b qthelp $(ALLSPHINXOPTS) $(BUILDDIR)/qthelp
+ @echo
+ @echo "Build finished; now you can run "qcollectiongenerator" with the" \
+ ".qhcp project file in $(BUILDDIR)/qthelp, like this:"
+ @echo "# qcollectiongenerator $(BUILDDIR)/qthelp/Flask-AutoIndex.qhcp"
+ @echo "To view the help file:"
+ @echo "# assistant -collectionFile $(BUILDDIR)/qthelp/Flask-AutoIndex.qhc"
+
+devhelp:
+ $(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp
+ @echo
+ @echo "Build finished."
+ @echo "To view the help file:"
+ @echo "# mkdir -p $$HOME/.local/share/devhelp/Flask-AutoIndex"
+ @echo "# ln -s $(BUILDDIR)/devhelp $$HOME/.local/share/devhelp/Flask-AutoIndex"
+ @echo "# devhelp"
+
+epub:
+ $(SPHINXBUILD) -b epub $(ALLSPHINXOPTS) $(BUILDDIR)/epub
+ @echo
+ @echo "Build finished. The epub file is in $(BUILDDIR)/epub."
+
+latex:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo
+ @echo "Build finished; the LaTeX files are in $(BUILDDIR)/latex."
+ @echo "Run \`make' in that directory to run these through (pdf)latex" \
+ "(use \`make latexpdf' here to do that automatically)."
+
+latexpdf:
+ $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) $(BUILDDIR)/latex
+ @echo "Running LaTeX files through pdflatex..."
+ make -C $(BUILDDIR)/latex all-pdf
+ @echo "pdflatex finished; the PDF files are in $(BUILDDIR)/latex."
+
+text:
+ $(SPHINXBUILD) -b text $(ALLSPHINXOPTS) $(BUILDDIR)/text
+ @echo
+ @echo "Build finished. The text files are in $(BUILDDIR)/text."
+
+man:
+ $(SPHINXBUILD) -b man $(ALLSPHINXOPTS) $(BUILDDIR)/man
+ @echo
+ @echo "Build finished. The manual pages are in $(BUILDDIR)/man."
+
+changes:
+ $(SPHINXBUILD) -b changes $(ALLSPHINXOPTS) $(BUILDDIR)/changes
+ @echo
+ @echo "The overview file is in $(BUILDDIR)/changes."
+
+linkcheck:
+ $(SPHINXBUILD) -b linkcheck $(ALLSPHINXOPTS) $(BUILDDIR)/linkcheck
+ @echo
+ @echo "Link check complete; look for any errors in the above output " \
+ "or in $(BUILDDIR)/linkcheck/output.txt."
+
+doctest:
+ $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+ @echo "Testing of doctests in the sources finished, look at the " \
+ "results in $(BUILDDIR)/doctest/output.txt."
diff --git a/docs/index.rst b/docs/index.rst
index 42020ca..8469085 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -51,7 +51,7 @@ We will make the application in flask application. There is a basic usage::
import os.path
from flask import Flask
- from flask.ext.autoindex import AutoIndex
+ from flask_autoindex import AutoIndex
app = Flask(__name__)
AutoIndex(app, browse_root=os.path.curdir)
diff --git a/docs/make.bat b/docs/make.bat
new file mode 100644
index 0000000..1588a76
--- /dev/null
+++ b/docs/make.bat
@@ -0,0 +1,155 @@
+ at ECHO OFF
+
+REM Command file for Sphinx documentation
+
+if "%SPHINXBUILD%" == "" (
+ set SPHINXBUILD=sphinx-build
+)
+set BUILDDIR=_build
+set ALLSPHINXOPTS=-d %BUILDDIR%/doctrees %SPHINXOPTS% .
+if NOT "%PAPER%" == "" (
+ set ALLSPHINXOPTS=-D latex_paper_size=%PAPER% %ALLSPHINXOPTS%
+)
+
+if "%1" == "" goto help
+
+if "%1" == "help" (
+ :help
+ echo.Please use `make ^<target^>` where ^<target^> is one of
+ echo. html to make standalone HTML files
+ echo. dirhtml to make HTML files named index.html in directories
+ echo. singlehtml to make a single large HTML file
+ echo. pickle to make pickle files
+ echo. json to make JSON files
+ echo. htmlhelp to make HTML files and a HTML help project
+ echo. qthelp to make HTML files and a qthelp project
+ echo. devhelp to make HTML files and a Devhelp project
+ echo. epub to make an epub
+ echo. latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter
+ echo. text to make text files
+ echo. man to make manual pages
+ echo. changes to make an overview over all changed/added/deprecated items
+ echo. linkcheck to check all external links for integrity
+ echo. doctest to run all doctests embedded in the documentation if enabled
+ goto end
+)
+
+if "%1" == "clean" (
+ for /d %%i in (%BUILDDIR%\*) do rmdir /q /s %%i
+ del /q /s %BUILDDIR%\*
+ goto end
+)
+
+if "%1" == "html" (
+ %SPHINXBUILD% -b html %ALLSPHINXOPTS% %BUILDDIR%/html
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/html.
+ goto end
+)
+
+if "%1" == "dirhtml" (
+ %SPHINXBUILD% -b dirhtml %ALLSPHINXOPTS% %BUILDDIR%/dirhtml
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/dirhtml.
+ goto end
+)
+
+if "%1" == "singlehtml" (
+ %SPHINXBUILD% -b singlehtml %ALLSPHINXOPTS% %BUILDDIR%/singlehtml
+ echo.
+ echo.Build finished. The HTML pages are in %BUILDDIR%/singlehtml.
+ goto end
+)
+
+if "%1" == "pickle" (
+ %SPHINXBUILD% -b pickle %ALLSPHINXOPTS% %BUILDDIR%/pickle
+ echo.
+ echo.Build finished; now you can process the pickle files.
+ goto end
+)
+
+if "%1" == "json" (
+ %SPHINXBUILD% -b json %ALLSPHINXOPTS% %BUILDDIR%/json
+ echo.
+ echo.Build finished; now you can process the JSON files.
+ goto end
+)
+
+if "%1" == "htmlhelp" (
+ %SPHINXBUILD% -b htmlhelp %ALLSPHINXOPTS% %BUILDDIR%/htmlhelp
+ echo.
+ echo.Build finished; now you can run HTML Help Workshop with the ^
+.hhp project file in %BUILDDIR%/htmlhelp.
+ goto end
+)
+
+if "%1" == "qthelp" (
+ %SPHINXBUILD% -b qthelp %ALLSPHINXOPTS% %BUILDDIR%/qthelp
+ echo.
+ echo.Build finished; now you can run "qcollectiongenerator" with the ^
+.qhcp project file in %BUILDDIR%/qthelp, like this:
+ echo.^> qcollectiongenerator %BUILDDIR%\qthelp\Flask-AutoIndex.qhcp
+ echo.To view the help file:
+ echo.^> assistant -collectionFile %BUILDDIR%\qthelp\Flask-AutoIndex.ghc
+ goto end
+)
+
+if "%1" == "devhelp" (
+ %SPHINXBUILD% -b devhelp %ALLSPHINXOPTS% %BUILDDIR%/devhelp
+ echo.
+ echo.Build finished.
+ goto end
+)
+
+if "%1" == "epub" (
+ %SPHINXBUILD% -b epub %ALLSPHINXOPTS% %BUILDDIR%/epub
+ echo.
+ echo.Build finished. The epub file is in %BUILDDIR%/epub.
+ goto end
+)
+
+if "%1" == "latex" (
+ %SPHINXBUILD% -b latex %ALLSPHINXOPTS% %BUILDDIR%/latex
+ echo.
+ echo.Build finished; the LaTeX files are in %BUILDDIR%/latex.
+ goto end
+)
+
+if "%1" == "text" (
+ %SPHINXBUILD% -b text %ALLSPHINXOPTS% %BUILDDIR%/text
+ echo.
+ echo.Build finished. The text files are in %BUILDDIR%/text.
+ goto end
+)
+
+if "%1" == "man" (
+ %SPHINXBUILD% -b man %ALLSPHINXOPTS% %BUILDDIR%/man
+ echo.
+ echo.Build finished. The manual pages are in %BUILDDIR%/man.
+ goto end
+)
+
+if "%1" == "changes" (
+ %SPHINXBUILD% -b changes %ALLSPHINXOPTS% %BUILDDIR%/changes
+ echo.
+ echo.The overview file is in %BUILDDIR%/changes.
+ goto end
+)
+
+if "%1" == "linkcheck" (
+ %SPHINXBUILD% -b linkcheck %ALLSPHINXOPTS% %BUILDDIR%/linkcheck
+ echo.
+ echo.Link check complete; look for any errors in the above output ^
+or in %BUILDDIR%/linkcheck/output.txt.
+ goto end
+)
+
+if "%1" == "doctest" (
+ %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
+ echo.
+ echo.Testing of doctests in the sources finished, look at the ^
+results in %BUILDDIR%/doctest/output.txt.
+ goto end
+)
+
+:end
diff --git a/flask_autoindex/__init__.py b/flask_autoindex/__init__.py
index e1c2a2e..136fd61 100644
--- a/flask_autoindex/__init__.py
+++ b/flask_autoindex/__init__.py
@@ -15,7 +15,7 @@ import os
import re
from flask import *
-from flask.ext.silk import Silk
+from flask_silk import Silk
from jinja2 import FileSystemLoader, TemplateNotFound
from werkzeug import cached_property
@@ -45,7 +45,7 @@ class AutoIndex(object):
is ``True``.
:param template_context: would be passed to the Jinja2 template when
rendering an AutoIndex page.
- :param silk_options: keyword options for :class:`flask.ext.silk.Silk`.
+ :param silk_options: keyword options for :class:`flask_silk.Silk`.
"""
shared = None
diff --git a/flask_autoindex/run.py b/flask_autoindex/run.py
index f79f554..11e8e42 100644
--- a/flask_autoindex/run.py
+++ b/flask_autoindex/run.py
@@ -1,6 +1,6 @@
import os.path
from flask import Flask
-from flask.ext.autoindex import AutoIndex
+from flask_autoindex import AutoIndex
app = Flask(__name__)
diff --git a/setup.cfg b/setup.cfg
index 0b06d9f..269a021 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -2,9 +2,3 @@
source-dir = docs/
build-dir = docs/_build
all_files = 1
-
-[egg_info]
-tag_build =
-tag_date = 0
-tag_svn_revision = 0
-
diff --git a/setup.py b/setup.py
index 27ac1a7..d6db3ba 100644
--- a/setup.py
+++ b/setup.py
@@ -55,7 +55,7 @@ setup(
],
entry_points={
'console_scripts': [
- 'fai = flask_autoindex.run:run',
+ 'fai = flask_autoindex.run:app.run',
],
},
)
diff --git a/tests/__init__.py b/tests/__init__.py
index 47c38dc..c84edfe 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -6,7 +6,7 @@ import sys
import unittest
from flask import *
-from flask.ext.autoindex import *
+from flask_autoindex import *
__file__ = __file__.replace('.pyc', '.py')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/flask-autoindex.git
More information about the Python-modules-commits
mailing list