Hello community,
here is the log from the commit of package python-pyramid-debugtoolbar for
openSUSE:Factory checked in at 2020-03-27 21:56:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyramid-debugtoolbar (Old)
and /work/SRC/openSUSE:Factory/.python-pyramid-debugtoolbar.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyramid-debugtoolbar"
Fri Mar 27 21:56:52 2020 rev:3 rq:789085 version:4.6.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pyramid-debugtoolbar/python-pyramid-debugtoolbar.changes
2019-11-01 15:13:49.880731057 +0100
+++
/work/SRC/openSUSE:Factory/.python-pyramid-debugtoolbar.new.3160/python-pyramid-debugtoolbar.changes
2020-03-27 21:57:22.510795466 +0100
@@ -1,0 +2,13 @@
+Mon Mar 23 13:02:43 UTC 2020 - [email protected]
+
+- version update to 4.6.1
+ - Fix parser errors when injecting the toolbar into XHTML formatted pages.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/360
+ - Show the full URL in the tooltip on the requests panel.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/358
+ - Stop accessing ``request.unauthenticated_userid`` in preparation for
+ Pyramid 2.0 where it is deprecated.
+ - Catch a ``ValueError`` when JSON-serializing SQLA objects for display.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/357
+
+-------------------------------------------------------------------
Old:
----
pyramid_debugtoolbar-4.5.tar.gz
New:
----
pyramid_debugtoolbar-4.6.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyramid-debugtoolbar.spec ++++++
--- /var/tmp/diff_new_pack.GKHUed/_old 2020-03-27 21:57:23.062795787 +0100
+++ /var/tmp/diff_new_pack.GKHUed/_new 2020-03-27 21:57:23.066795789 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-pyramid-debugtoolbar
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2015 LISA GmbH, Bingen, Germany.
#
# All modifications and additions to the file contributed by third parties
@@ -18,8 +18,10 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+# nothing provides python2-pyramid needed by python2-pyramid-mako
+%define skip_python2 1
Name: python-pyramid-debugtoolbar
-Version: 4.5
+Version: 4.6.1
Release: 0
Summary: An interactive HTML debugger for Pyramid application
development
License: BSD-4-Clause AND ZPL-2.1 AND MIT
@@ -29,11 +31,11 @@
BuildRequires: %{python_module WebTest}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module hupper}
-BuildRequires: %{python_module nose}
BuildRequires: %{python_module plaster-pastedeploy}
BuildRequires: %{python_module plaster}
BuildRequires: %{python_module pyramid >= 1.2}
BuildRequires: %{python_module pyramid-mako >= 0.3.1}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module repoze.lru}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -57,7 +59,6 @@
%package -n %{name}-doc
Summary: Documentation files for %{name}
-Requires: %{name} = %{version}
%description -n %{name}-doc
Documentation and examples for %{name}.
@@ -76,7 +77,7 @@
%python_expand find %{buildroot}%{$python_sitelib} -type f -exec chmod 0644 {}
\;
%check
-%python_exec -m nose
+%pytest
%files %{python_files}
%license LICENSE.txt
++++++ pyramid_debugtoolbar-4.5.tar.gz -> pyramid_debugtoolbar-4.6.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/.gitignore
new/pyramid_debugtoolbar-4.6.1/.gitignore
--- old/pyramid_debugtoolbar-4.5/.gitignore 1970-01-01 01:00:00.000000000
+0100
+++ new/pyramid_debugtoolbar-4.6.1/.gitignore 2015-05-21 22:00:46.000000000
+0200
@@ -0,0 +1,15 @@
+*.egg
+*.egg-info
+*.pyc
+*$py.class
+*.pt.py
+*.txt.py
+*~
+.*.swp
+.coverage*
+build/
+dist/
+.tox/
+nosetests*.xml
+coverage*.xml
+env*/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/.travis.yml
new/pyramid_debugtoolbar-4.6.1/.travis.yml
--- old/pyramid_debugtoolbar-4.5/.travis.yml 2018-09-10 04:19:57.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/.travis.yml 2020-01-06 17:59:55.000000000
+0100
@@ -16,7 +16,7 @@
env: TOXENV=py37
dist: xenial
sudo: true
- - python: 3.8-dev
+ - python: 3.8
env: TOXENV=py38
dist: xenial
sudo: true
@@ -25,15 +25,13 @@
- python: pypy3
env: TOXENV=pypy3
- python: 3.5
- env: TOXENV=py2-cover,py3-cover,coverage
+ env: TOXENV=py27-cover,py35-cover,coverage
- python: 3.5
env: TOXENV=docs
- python: 2.7
env: TOXENV=py27-pyramid14
- python: 3.5
env: TOXENV=py35-pyramid19
- allow_failures:
- - env: TOXENV=py38
install:
- travis_retry pip install -U setuptools
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/CHANGES.txt
new/pyramid_debugtoolbar-4.6.1/CHANGES.txt
--- old/pyramid_debugtoolbar-4.5/CHANGES.txt 2018-09-10 04:11:38.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/CHANGES.txt 2020-02-11 01:36:51.000000000
+0100
@@ -1,3 +1,31 @@
+4.6.1 (2020-02-10)
+------------------
+
+- Fix parser errors when injecting the toolbar into XHTML formatted pages.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/360
+
+4.6 (2020-01-20)
+----------------
+
+- Show the full URL in the tooltip on the requests panel.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/358
+
+4.5.2 (2020-01-06)
+------------------
+
+- Stop accessing ``request.unauthenticated_userid`` in preparation for
+ Pyramid 2.0 where it is deprecated.
+
+- Catch a ``ValueError`` when JSON-serializing SQLA objects for display.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/357
+
+4.5.1 (2019-11-08)
+------------------
+
+- Add Python 3.8 support.
+
+- Fix internal deprecation warnings on Python 3.7.
+
4.5 (2018-09-09)
----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/CONTRIBUTORS.txt
new/pyramid_debugtoolbar-4.6.1/CONTRIBUTORS.txt
--- old/pyramid_debugtoolbar-4.5/CONTRIBUTORS.txt 2018-02-20
04:16:03.000000000 +0100
+++ new/pyramid_debugtoolbar-4.6.1/CONTRIBUTORS.txt 2020-02-11
01:35:49.000000000 +0100
@@ -123,3 +123,5 @@
- Jens Carl, 2017-05-22
- Andrey Tretyakov, 2017-05-27
- Marcin Lulek, 2018-02-19
+- Wim De Clercq, 2018-11-23
+- Holger Peters, 2020-02-06
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/PKG-INFO
new/pyramid_debugtoolbar-4.6.1/PKG-INFO
--- old/pyramid_debugtoolbar-4.5/PKG-INFO 2018-09-10 04:24:55.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/PKG-INFO 2020-02-11 01:37:40.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyramid_debugtoolbar
-Version: 4.5
+Version: 4.6.1
Summary: A package which provides an interactive HTML debugger for Pyramid
application development
Home-page:
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/
Author: Chris McDonough, Michael Merickel, Casey Duncan, Blaise Laflamme
@@ -23,7 +23,7 @@
The documentation of the current stable release of
``pyramid_debugtoolbar`` is
available at
- http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
+
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
Demonstration
@@ -111,6 +111,34 @@
$ make clean html SPHINXBUILD=../env/bin/sphinx-build
+ 4.6.1 (2020-02-10)
+ ------------------
+
+ - Fix parser errors when injecting the toolbar into XHTML formatted
pages.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/360
+
+ 4.6 (2020-01-20)
+ ----------------
+
+ - Show the full URL in the tooltip on the requests panel.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/358
+
+ 4.5.2 (2020-01-06)
+ ------------------
+
+ - Stop accessing ``request.unauthenticated_userid`` in preparation for
+ Pyramid 2.0 where it is deprecated.
+
+ - Catch a ``ValueError`` when JSON-serializing SQLA objects for
display.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/357
+
+ 4.5.1 (2019-11-08)
+ ------------------
+
+ - Add Python 3.8 support.
+
+ - Fix internal deprecation warnings on Python 3.7.
+
4.5 (2018-09-09)
----------------
@@ -909,6 +937,7 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: License :: Repoze Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/README.rst
new/pyramid_debugtoolbar-4.6.1/README.rst
--- old/pyramid_debugtoolbar-4.5/README.rst 2017-04-21 09:25:40.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/README.rst 2020-01-06 17:30:06.000000000
+0100
@@ -15,7 +15,7 @@
The documentation of the current stable release of ``pyramid_debugtoolbar`` is
available at
-http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
+https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
Demonstration
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/RELEASING.txt
new/pyramid_debugtoolbar-4.6.1/RELEASING.txt
--- old/pyramid_debugtoolbar-4.5/RELEASING.txt 2017-04-21 09:25:40.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/RELEASING.txt 2020-01-21
00:12:55.000000000 +0100
@@ -38,10 +38,13 @@
- Announce to Twitter.
```
-Pyramid Debugtoolbar 3.X released.
+Pyramid Debugtoolbar 4.X released.
+
+Changes
+https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/changes.html
PyPI
-https://pypi.python.org/pypi/pyramid_debugtoolbar/3.X
+https://pypi.org/project/pyramid-debugtoolbar/4.X.X/
Issues
https://github.com/Pylons/pyramid_debugtoolbar/issues
@@ -50,18 +53,18 @@
- Announce to maillist.
```
-Pyramid Debugtoolbar 3.X.X has been released.
+Pyramid Debugtoolbar 4.X.X has been released.
Here are the changes:
<<changes>>
Full change history:
-http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/changes.html
+https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/changes.html
You can install it via PyPI:
- pip install pyramid_debugtoolbar==3.X.X
+ pip install pyramid_debugtoolbar==4.X.X
Enjoy, and please report any issues you find to the issue tracker at
https://github.com/Pylons/pyramid_debugtoolbar/issues
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/demo/debugtoolbar_demo.egg-info/SOURCES.txt
new/pyramid_debugtoolbar-4.6.1/demo/debugtoolbar_demo.egg-info/SOURCES.txt
--- old/pyramid_debugtoolbar-4.5/demo/debugtoolbar_demo.egg-info/SOURCES.txt
2018-02-20 04:00:56.000000000 +0100
+++ new/pyramid_debugtoolbar-4.6.1/demo/debugtoolbar_demo.egg-info/SOURCES.txt
2017-06-07 17:32:27.000000000 +0200
@@ -1,10 +1,24 @@
+.gitignore
README.txt
demo.py
setup.cfg
+setup.py
sqla.py
+test.py
debugtoolbar_demo.egg-info/PKG-INFO
debugtoolbar_demo.egg-info/SOURCES.txt
debugtoolbar_demo.egg-info/dependency_links.txt
debugtoolbar_demo.egg-info/not-zip-safe
debugtoolbar_demo.egg-info/requires.txt
-debugtoolbar_demo.egg-info/top_level.txt
\ No newline at end of file
+debugtoolbar_demo.egg-info/top_level.txt
+static/jquery-1.7.2.min.js
+static/main.js
+static/require-1.0.6.js
+templates/ajax.mako
+templates/error.jinja2
+templates/error.mako
+templates/error.pt
+templates/highorder.mako
+templates/index.mako
+templates/notfound.mako
+templates/sqla.mako
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/docs/conf.py
new/pyramid_debugtoolbar-4.6.1/docs/conf.py
--- old/pyramid_debugtoolbar-4.5/docs/conf.py 2018-09-08 04:15:32.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/docs/conf.py 2020-01-06 17:30:06.000000000
+0100
@@ -100,7 +100,9 @@
html_theme_path = pylons_sphinx_themes.get_html_themes_path()
html_theme = 'pyramid'
html_theme_options = {
- 'github_url': 'https://github.com/Pylons/pyramid_debugtoolbar'
+ 'github_url': 'https://github.com/Pylons/pyramid_debugtoolbar',
+ 'canonical_url':
+
'https://docs.pylonsproject.org/projects/pyramid_debugtoolbar/en/latest',
}
# The style sheet to use for HTML and HTML Help pages. A file of that name
@@ -139,7 +141,14 @@
smartquotes = False
# Custom sidebar templates, maps document names to template names.
-#html_sidebars = {}
+# Control display of sidebars
+html_sidebars = { '**': [
+ 'localtoc.html',
+ 'ethicalads.html',
+ 'relations.html',
+ 'sourcelink.html',
+ 'searchbox.html',
+] }
# Additional templates that should be rendered to pages, maps page names to
# template names.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/docs/index.rst
new/pyramid_debugtoolbar-4.6.1/docs/index.rst
--- old/pyramid_debugtoolbar-4.5/docs/index.rst 2018-07-28 22:26:59.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/docs/index.rst 2020-01-21
00:12:55.000000000 +0100
@@ -228,7 +228,7 @@
``debugtoolbar.max_request_history``
- The debug toolbar works by storing the original request and it's associated
+ The debug toolbar works by storing the original request and its associated
data in memory, and making this data available to subsequent requests. By
default, the toolbar maintains a history of the last 100 requests made to the
application. By setting ``debugtoolbar.max_request_history``, one can
override
@@ -290,7 +290,7 @@
[loggers]
keys = root, debugtoolbar
- [logger_debugtoolar]
+ [logger_debugtoolbar]
level = WARN
qualname = pyramid_debugtoolbar
@@ -343,7 +343,7 @@
explicitly activated. However, some panels support an optional
:attr:`~pyramid_debugtoolbar.panel.DebugPanel.is_active` state in which they
will do some extra work. For example, the
-:class:`~pyramid_debugtoolbar.panels.performance.PerformanceDebugPanel``
+:ref:`PerformanceDebugPanel <panel_performance>`
will not do profiling of your requests unless it has been activated.
This activation can be controlled on a per-request basis by setting the
@@ -386,10 +386,17 @@
.. image:: versions.png
+.. _panel_settings:
+
Settings
~~~~~~~~
-Displays Pyramid deployment settings, i.e., ``registry.settings``.
+Displays your Pyramid application's deployment settings, i.e.,
``registry.settings``.
+
+.. seealso::
+
+ For realtime customization of the toolbar and its panels, use the
:guilabel:`Settings` *tab* in the navigation bar.
+ See :ref:`toolbar_settings`.
.. image:: settings.png
@@ -422,6 +429,8 @@
.. image:: logging.png
+.. _panel_performance:
+
Performance
~~~~~~~~~~~
@@ -429,12 +438,15 @@
for the current page. When it is red, only timing will be done and
no profiling information.
-.. note::
+There are two ways to enable the internal profiler used by the
+:guilabel:`Performance` panel.
+
+#. Under the :guilabel:`Settings` tab in the navigation bar, click the red
:guilabel:`X` mark.
+ When there is a green :guilabel:`check` mark, each request will be
profiled and profiling information will be gathered and displayed on the
:guilabel:`Performance` panel output.
+ See :ref:`Toolbar Settings <toolbar_settings_performance>`.
- An internal profiler can be enabled through the "performance" checkmark
- in the "Settings" tab in the navigation bar. When the checkbox is green,
- the request will be profiled and profiling information will be gathered and
- displayed on the "Performance" panel output.
+#. Send a ``pdtb_active`` cookie on a per-request basis.
+ See :ref:`activating_panels`.
.. image:: performance.png
@@ -478,6 +490,29 @@
.. image:: introspection.png
+.. _toolbar_settings:
+
+Toolbar Settings
+----------------
+
+The :guilabel:`Settings` tab allows for realtime customization of the toolbar
and its panels.
+
+.. image:: toolbar_settings.png
+
+.. seealso::
+
+ To display your Pyramid application's settings, see :ref:`Settings panel
<panel_settings>`.
+
+.. _toolbar_settings_performance:
+
+Performance Debug Panel
+~~~~~~~~~~~~~~~~~~~~~~~
+
+An internal profiler can be enabled under the :guilabel:`Settings` tab in the
navigation bar.
+Click the red :guilabel:`X` mark to enable the profiler.
+When the mark is a green :guilabel:`check`, the request will be profiled and
profiling information will be gathered and displayed on the
:guilabel:`Performance` panel output.
+See :ref:`Performance panel <panel_performance>`.
+
Exception Handling
------------------
@@ -581,9 +616,11 @@
def __init__(self, request):
self.data = { 'request_path' : request.path_info }
+ @property
def nav_title(self):
return _('Sample')
+ @property
def title(self):
return _('Sample')
Binary files old/pyramid_debugtoolbar-4.5/docs/toolbar_settings.png and
new/pyramid_debugtoolbar-4.6.1/docs/toolbar_settings.png differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/setup.py
new/pyramid_debugtoolbar-4.6.1/setup.py
--- old/pyramid_debugtoolbar-4.5/setup.py 2018-09-10 04:10:09.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/setup.py 2020-02-11 01:37:11.000000000
+0100
@@ -44,7 +44,7 @@
]
setup(name='pyramid_debugtoolbar',
- version='4.5',
+ version='4.6.1',
description=('A package which provides an interactive HTML debugger '
'for Pyramid application development'),
long_description=README + '\n\n' + CHANGES,
@@ -57,6 +57,7 @@
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
+ "Programming Language :: Python :: 3.8",
"Framework :: Pyramid",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"License :: Repoze Public License",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/panels/request_vars.py
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/panels/request_vars.py
---
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/panels/request_vars.py
2017-07-15 03:06:55.000000000 +0200
+++
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/panels/request_vars.py
2020-01-21 00:09:08.000000000 +0100
@@ -35,7 +35,6 @@
lazy_request_attributes = (
('authenticated_userid', False),
('effective_principals', False),
- ('unauthenticated_userid', False),
)
# Note1: accessed as a 'string', `registry` be the python package name;
# accessed as a dict, will be the contents of the registry
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/panels/sqla.py
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/panels/sqla.py
--- old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/panels/sqla.py
2018-07-28 22:27:18.000000000 +0200
+++ new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/panels/sqla.py
2020-01-06 17:59:55.000000000 +0100
@@ -91,6 +91,8 @@
params = url_quote(json.dumps(query['parameters']))
except TypeError:
pass # object not JSON serializable
+ except ValueError:
+ pass # JSON parameters serialization can generate ValueError
exceptions
except UnicodeDecodeError:
pass # parameters contain non-utf8 (probably binary) data
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/static/toolbar/toolbar.js
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/static/toolbar/toolbar.js
---
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/static/toolbar/toolbar.js
2018-01-29 15:58:25.000000000 +0100
+++
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/static/toolbar/toolbar.js
2020-01-21 00:12:55.000000000 +0100
@@ -1,6 +1,5 @@
var COOKIE_NAME_ACTIVE = 'pdtb_active';
-
function toggle_content(elem) {
if (elem.is(':visible')) {
elem.hide();
@@ -83,7 +82,8 @@
var request_id = item[0];
var active = item[2];
- html += '<li class="'+active+'"><a
href="'+window.DEBUG_TOOLBAR_ROOT_PATH+request_id+'" title="'+details.path+'">';
+ var title = details.host + details.path;
+ html += '<li class="'+active+'"><a
href="'+window.DEBUG_TOOLBAR_ROOT_PATH+request_id+'" title="'+title+'">';
html += '<span class="badge pull-right
_'+details.status_code+'">'+details.status_code+'</span>';
html += details.method;
if (details.scheme == 'https'){
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/tbtools.py
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/tbtools.py
--- old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/tbtools.py
2017-07-15 03:06:55.000000000 +0200
+++ new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/tbtools.py
2020-01-06 17:30:06.000000000 +0100
@@ -31,9 +31,22 @@
from pyramid_debugtoolbar.utils import ROOT_ROUTE_NAME
from pyramid_debugtoolbar.utils import EXC_ROUTE_NAME
-_coding_re = re.compile(br'coding[:=]\s*([-\w.]+)')
-_line_re = re.compile(br'^(.*?)$(?m)')
-_funcdef_re = re.compile(r'^(\s*def\s)|(.*(?<!\w)lambda(:|\s))|^(\s*@)')
+# Some regexes are binary strings because they are used for determining the
+# file encoding, so they must be able to handle text before encoding.
+_coding_re = re.compile(
+ br'''coding[:=] # All encoding definitions end with 'coding'. See PEP 263
+ \s* # Not interested in whitespaces
+ ([-\w.]+) # The encoding we need
+ ''', re.VERBOSE)
+_line_re = re.compile(br'''^(.*?)$ # an entire line''',
+ re.MULTILINE | re.VERBOSE)
+_funcdef_re = re.compile(
+ r'''^(\s*def\s) # The start of a function is either 'def'
+ | # or
+ (.*(?<!\w)lambda(:|\s)) # it's a lambda
+ | # or
+ ^(\s*@)''', # it's a decorator
+ re.VERBOSE)
UTF8_COOKIE = b'\xef\xbb\xbf'
system_exceptions = (SystemExit, KeyboardInterrupt)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/toolbar.py
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/toolbar.py
--- old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar/toolbar.py
2018-09-09 17:33:54.000000000 +0200
+++ new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar/toolbar.py
2020-02-11 01:35:49.000000000 +0100
@@ -82,7 +82,8 @@
@property
def json(self):
- return {'method': self.request.method,
+ return {'host': self.request.host,
+ 'method': self.request.method,
'path': self.request.path,
'scheme': self.request.scheme,
'status_code': self.status_int}
@@ -335,7 +336,7 @@
toolbar_html_template = """\
-<link rel="stylesheet" type="text/css" href="%(css_path)s">
+<link rel="stylesheet" type="text/css" href="%(css_path)s" />
<div id="pDebug">
<div %(button_style)s id="pDebugToolbarHandle">
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar.egg-info/PKG-INFO
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar.egg-info/PKG-INFO
--- old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar.egg-info/PKG-INFO
2018-09-10 04:24:55.000000000 +0200
+++ new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar.egg-info/PKG-INFO
2020-02-11 01:37:39.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyramid-debugtoolbar
-Version: 4.5
+Version: 4.6.1
Summary: A package which provides an interactive HTML debugger for Pyramid
application development
Home-page:
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/
Author: Chris McDonough, Michael Merickel, Casey Duncan, Blaise Laflamme
@@ -23,7 +23,7 @@
The documentation of the current stable release of
``pyramid_debugtoolbar`` is
available at
- http://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
+
https://docs.pylonsproject.org/projects/pyramid-debugtoolbar/en/latest/.
Demonstration
@@ -111,6 +111,34 @@
$ make clean html SPHINXBUILD=../env/bin/sphinx-build
+ 4.6.1 (2020-02-10)
+ ------------------
+
+ - Fix parser errors when injecting the toolbar into XHTML formatted
pages.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/360
+
+ 4.6 (2020-01-20)
+ ----------------
+
+ - Show the full URL in the tooltip on the requests panel.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/358
+
+ 4.5.2 (2020-01-06)
+ ------------------
+
+ - Stop accessing ``request.unauthenticated_userid`` in preparation for
+ Pyramid 2.0 where it is deprecated.
+
+ - Catch a ``ValueError`` when JSON-serializing SQLA objects for
display.
+ See https://github.com/Pylons/pyramid_debugtoolbar/pull/357
+
+ 4.5.1 (2019-11-08)
+ ------------------
+
+ - Add Python 3.8 support.
+
+ - Fix internal deprecation warnings on Python 3.7.
+
4.5 (2018-09-09)
----------------
@@ -909,6 +937,7 @@
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
+Classifier: Programming Language :: Python :: 3.8
Classifier: Framework :: Pyramid
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI
Classifier: License :: Repoze Public License
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar.egg-info/SOURCES.txt
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar.egg-info/SOURCES.txt
--- old/pyramid_debugtoolbar-4.5/src/pyramid_debugtoolbar.egg-info/SOURCES.txt
2018-09-10 04:24:55.000000000 +0200
+++
new/pyramid_debugtoolbar-4.6.1/src/pyramid_debugtoolbar.egg-info/SOURCES.txt
2020-02-11 01:37:40.000000000 +0100
@@ -1,3 +1,4 @@
+.gitignore
.travis.yml
CHANGES.txt
CONTRIBUTORS.txt
@@ -57,6 +58,7 @@
docs/sqla.png
docs/toolbar-closed.png
docs/toolbar-open.png
+docs/toolbar_settings.png
docs/tweens.png
docs/versions.png
src/pyramid_debugtoolbar/__init__.py
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/pyramid_debugtoolbar-4.5/tox.ini
new/pyramid_debugtoolbar-4.6.1/tox.ini
--- old/pyramid_debugtoolbar-4.5/tox.ini 2018-09-10 04:07:48.000000000
+0200
+++ new/pyramid_debugtoolbar-4.6.1/tox.ini 2020-01-06 17:59:55.000000000
+0100
@@ -5,23 +5,9 @@
py27-pyramid14,
py35-pyramid{18,19},
docs,
- {py2,py3}-cover,coverage
+ {py27,py35}-cover,coverage
[testenv]
-# Most of these are defaults but if you specify any you can't fall back
-# to defaults for others.
-basepython =
- py27: python2.7
- py34: python3.4
- py35: python3.5
- py36: python3.6
- py37: python3.7
- py38: python3.8
- pypy: pypy
- pypy3: pypy3
- py2: python2.7
- py3: python3.5
-
deps =
pyramid14: pyramid <= 1.4.99
pyramid15: pyramid <= 1.5.99
@@ -31,27 +17,30 @@
pyramid19: pyramid <= 1.9.99
commands =
- pip install pyramid_debugtoolbar[testing]
nosetests --with-xunit --xunit-file=nosetests-{envname}.xml {posargs:}
-[testenv:py2-cover]
+extras =
+ testing
+
+[testenv:py27-cover]
commands =
- pip install pyramid_debugtoolbar[testing]
coverage run --source=pyramid_debugtoolbar,tests {envbindir}/nosetests
coverage xml -o coverage-py2.xml
setenv =
COVERAGE_FILE=.coverage.py2
+extras =
+ testing
-[testenv:py3-cover]
+[testenv:py35-cover]
commands =
- pip install pyramid_debugtoolbar[testing]
coverage run --source=pyramid_debugtoolbar,tests {envbindir}/nosetests
coverage xml -o coverage-py3.xml
setenv =
COVERAGE_FILE=.coverage.py3
+extras =
+ testing
[testenv:docs]
-basepython = python3.5
whitelist_externals = make
commands =
pip install pyramid_debugtoolbar[docs]
@@ -59,7 +48,6 @@
[testenv:coverage]
skip_install = True
-basepython = python3.5
commands =
coverage erase
coverage combine
@@ -72,7 +60,6 @@
[testenv:lint]
skip_install = True
-basepython = python3.6
commands =
flake8 src/pyramid_debugtoolbar/
python setup.py check -r -s -m
@@ -81,3 +68,18 @@
flake8
readme_renderer
check-manifest
+
+[testenv:build]
+skip_install = true
+commands =
+ # clean up build/ and dist/ folders
+ python -c 'import shutil; shutil.rmtree("dist", ignore_errors=True)'
+ python setup.py clean --all
+ # build sdist
+ python setup.py sdist --dist-dir {toxinidir}/dist
+ # build wheel from sdist
+ pip wheel -v --no-deps --no-index --wheel-dir {toxinidir}/dist
--find-links {toxinidir}/dist pyramid_debugtoolbar
+
+deps =
+ setuptools
+ wheel