16 Commits

Author SHA1 Message Date
Jeff Widman
010206298e Release 0.10.1 2017-02-12 03:04:07 -08:00
Jeff Widman
678ec31229 Revert "Change docs to pull version from setup.py"
This reverts commit 45b70c952f.
This commit broke the readthedocs build because RTD is building the docs
without running setup.py. So there is no package metadata.
2017-02-12 02:48:44 -08:00
Jeff Widman
23d52703fd Make copyright string track current year 2017-02-12 02:33:47 -08:00
Jeff Widman
45b70c952f Change docs to pull version from setup.py 2017-02-12 02:32:47 -08:00
Jeff Widman
9f2c353e86 Trivial imports cleanup 2017-02-12 02:31:26 -08:00
Jeff Widman
cfe142b285 Point Flask-SQLAlchemy docs at ‘latest’ 2017-02-12 00:21:20 -08:00
Jeff Widman
19a25fd895 Add universal wheel support
Let’s roll!
2017-02-10 01:09:59 -08:00
Jeff Widman
8dcb97c05a Travis should use python 3.6 interpreter 2017-02-10 00:50:38 -08:00
Jeff Widman
b49af327cf Use containers for travis tests 2017-02-10 00:44:27 -08:00
Jeff Widman
38ab3a49c1 Test using modern python 2017-02-10 00:42:00 -08:00
Jeff Widman
9f901e34ae Remove deprecated tox arg —use-mirrors 2017-02-10 00:36:19 -08:00
Jeff Widman
f050a6b0de Use latest for flask-sqlalchemy docs rather than pinning version 2017-02-10 00:28:45 -08:00
Jeff Widman
e33f3e1c85 Update RTD links w/https & .io 2017-02-09 23:54:16 -08:00
Peter M. Landwehr
02ff95acde Add LICENSE file to MANIFEST.in / source bundle (#102) 2016-09-18 23:13:08 -07:00
Iuri de Silvio
2436239964 Additional cleanup of deprecated flask.ext.* magic imports. (#97) 2016-06-29 16:52:23 -07:00
Michael Lenzen
18a0030354 Fix deprecated import from flask.ext.sqlalchemy (#94) 2016-06-29 13:33:02 -07:00
15 changed files with 45 additions and 25 deletions

View File

@@ -1,9 +1,9 @@
sudo: false
language: python
python: "2.7"
python: "3.6"
env:
- TOXENV=py26
- TOXENV=py27
- TOXENV=py33
- TOXENV=py36
install:
- pip install tox --use-mirrors
- pip install tox
script: tox

View File

@@ -1,6 +1,17 @@
Changes
=======
0.10.1 (2017-02-12)
-------------------
Enhancements:
- Add support for Python wheels
Fixes:
- Switch imports from deprecated flask.ext.* to flask_* syntax (#94, thanks
Michael Lenzen & #97 thanks Iuri de Silvio)
0.10.0 (2015-04-17)
-------------------

View File

@@ -1,2 +1,3 @@
include LICENSE
recursive-include flask_debugtoolbar/templates *.html
recursive-include flask_debugtoolbar/static *

View File

@@ -40,4 +40,4 @@ In production, setting ``app.debug = False`` will disable the toolbar.
See the `documentation`_ for more information.
.. _documentation: http://flask-debugtoolbar.readthedocs.org
.. _documentation: https://flask-debugtoolbar.readthedocs.io/

View File

@@ -11,7 +11,13 @@
# All configuration values have a default; values that are commented out
# serve to show the default.
import sys, os
import datetime
import os
import sys
import time
BUILD_DATE = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -44,7 +50,7 @@ master_doc = 'index'
# General information about the project.
project = u'Flask-DebugToolbar'
copyright = u'2012-2015'
copyright = u'2012-{0}'.format(BUILD_DATE.year)
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
@@ -53,7 +59,7 @@ copyright = u'2012-2015'
# The short X.Y version.
version = '0.10'
# The full version, including alpha/beta/rc tags.
release = '0.10.0'
release = '0.10.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
@@ -90,7 +96,7 @@ pygments_style = 'sphinx'
#modindex_common_prefix = []
intersphinx_mapping = {
'flasksqlalchemy': ('http://flask-sqlalchemy.pocoo.org/2.0/', None)
'flasksqlalchemy': ('http://flask-sqlalchemy.pocoo.org/latest/', None)
}

View File

@@ -70,7 +70,7 @@ Shows SQL queries run during the current request.
:ref:`flasksqlalchemy:quickstart` section to configure it.
For additional details on query recording see the
:py:func:`~flask.ext.sqlalchemy.get_debug_queries` documentation.
:py:func:`~flask_sqlalchemy.get_debug_queries` documentation.
.. image:: _static/screenshot-sqlalchemy-panel.png

View File

@@ -2,8 +2,8 @@ import sys
sys.path.insert(0, '.')
from flask import Flask, render_template, redirect, url_for
from flask.ext.script import Manager
from flask.ext.sqlalchemy import SQLAlchemy
from flask_script import Manager
from flask_sqlalchemy import SQLAlchemy
from flask_debugtoolbar import DebugToolbarExtension

View File

@@ -1,5 +1,5 @@
try:
from flask.ext.sqlalchemy import get_debug_queries, SQLAlchemy
from flask_sqlalchemy import get_debug_queries, SQLAlchemy
except ImportError:
sqlalchemy_available = False
get_debug_queries = SQLAlchemy = None

View File

@@ -25,7 +25,7 @@
<h5>Configure Flask-SQLAlchemy:</h5>
<p>
The Flask-SQLAlchemy extension needs to be configured for this application.
Please see the <a href="http://flask-sqlalchemy.pocoo.org/2.0/quickstart/">
Please see the <a href="http://flask-sqlalchemy.pocoo.org/latest/quickstart/">
Flask-SQLAlchemy documentation</a> for details.
</p>
</li>
@@ -40,10 +40,10 @@
<pre>app.config['SQLALCHEMY_RECORD_QUERIES'] = True</pre>
<p>
See the
<a href="http://flask-sqlalchemy.pocoo.org/2.0/api/#flask.ext.sqlalchemy.get_debug_queries">
<a href="http://flask-sqlalchemy.pocoo.org/latest/api/#flask.ext.sqlalchemy.get_debug_queries">
documention of Flask-SQLAlchemy's <code>get_debug_queries()</code></a>
for additional details.
</p>
</li>
{% endif %}
</ol>
</ol>

View File

@@ -18,7 +18,6 @@ try:
except ImportError:
HAVE_SQLPARSE = False
from flask import current_app, Markup

2
setup.cfg Normal file
View File

@@ -0,0 +1,2 @@
[bdist_wheel]
universal=1

View File

@@ -1,5 +1,5 @@
import os
from setuptools import setup, find_packages
from setuptools import setup
here = os.path.abspath(os.path.dirname(__file__))
@@ -14,8 +14,8 @@ except:
setup(
name='Flask-DebugToolbar',
version='0.10.0',
url='http://flask-debugtoolbar.rtfd.org/',
version='0.10.1',
url='https://flask-debugtoolbar.readthedocs.io/',
license='BSD',
author='Michael van Tellingen',
author_email='michaelvantellingen@gmail.com',

View File

@@ -1,7 +1,9 @@
from flask import Flask, render_template
from flask_debugtoolbar import DebugToolbarExtension
from flask_sqlalchemy import SQLAlchemy
from flask_debugtoolbar import DebugToolbarExtension
app = Flask('basic_app')
app.debug = True
app.config['SECRET_KEY'] = 'abc123'

View File

@@ -1,9 +1,8 @@
import pytest
import posixpath
import ntpath
import posixpath
from flask import Markup
import pytest
from flask_debugtoolbar.utils import (_relative_paths, _shortest_relative_path,
format_sql, decode_text, HAVE_PYGMENTS)

View File

@@ -1,5 +1,5 @@
[tox]
envlist = py26,py27,py34,stylecheck
envlist = py27,py36,stylecheck
[testenv]
deps =