Skip to content

Commit

Permalink
feat: update quart to 0.19.6-1
Browse files Browse the repository at this point in the history
  • Loading branch information
deepin-community-bot[bot] committed Aug 28, 2024
1 parent 6089ffd commit e63a449
Show file tree
Hide file tree
Showing 112 changed files with 2,306 additions and 5,276 deletions.
30 changes: 9 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,30 @@
ci:
autoupdate_branch: "2.1.x"
autoupdate_schedule: monthly
repos:
- repo: https://github.com/asottile/pyupgrade
rev: v2.34.0
rev: v3.9.0
hooks:
- id: pyupgrade
args: ["--py37-plus"]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.1.0
args: ["--py38-plus"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: reorder-python-imports
name: Reorder Python imports (src, tests)
files: "^(?!examples/)"
args: ["--application-directories", ".:src"]
additional_dependencies: ["setuptools>60.9"]
- id: reorder-python-imports
name: Reorder Python imports (examples)
files: "^examples/"
args: ["--application-directories", "examples"]
additional_dependencies: ["setuptools>60.9"]
- id: isort
- repo: https://github.com/psf/black
rev: 22.6.0
rev: 23.7.0
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies:
- flake8-bugbear
- flake8-implicit-str-concat
- repo: https://github.com/peterdemin/pip-compile-multi
rev: v2.4.5
rev: v2.6.3
hooks:
- id: pip-compile-multi-verify
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: fix-byte-order-marker
- id: trailing-whitespace
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python: "3.12"

python:
install:
Expand Down
80 changes: 80 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,86 @@
0.19.6 2024-05-19
-----------------

* Bugfix use ContentRange in the right way. See issue #331.
* Bugfix hold a strong reference to background tasks.
* Bugfix avoid ResourceWarning in DataBody.__aiter__.

0.19.5 2024-04-01
-----------------

* Bugfix DeprecationWarning from datetime.utcnow().
* Bugfix ensure request files are closed.
* Bugfix development restarting when commands are passed.
* Restore teardown_websocket methods.
* Correct the config_class type.
* Allow kwargs to be passed to the test client (matches Flask API).

0.19.4 2023-11-19
-----------------

* Bugfix program not closing on Ctrl+C in Windows.
* Bugfix the typing for AfterWebsocket functions.
* Improve the typing of the ensure_async method.
* Add a shutdown event to the app.

0.19.3 2023-10-04
-----------------

* Bugfix update the default config to better match Flask.

0.19.2 2023-10-01
-----------------

* Bugfix restore the app {after, before}_websocket methods.
* Bugfix correctly set the cli Group in Quart.

0.19.1 2023-09-30
-----------------

* Bugfix remove QUART_ENV and env usage.

0.19.0 2023-09-30
-----------------

* Remove Flask-Patch. It has been replaced with the Quart-Flask-Patch
extension.
* Remove references to first request, as per Flask.
* Await the background tasks before calling the after serving funcs.
* Don't copy the app context into the background task.
* Allow background tasks a grace period to complete during shutdown.
* Base Quart on Flask, utilising Flask code where possible. This
introduces a dependency on Flask.
* Bugfix trailing slash issue in URL concatenation for empty 'path'
* Bugfix Issue #219. Use only CR in SSE documentation.
* Bugfix typing for websocket to accept auth data.
* Bugfix ensure subdomains apply to nested blueprints.
* Bugfix ensure make_response errors if the value is incorrect.
* Bugfix propagated exception handling.
* Bugfix ensure exceptions propagate before logging.
* Bugfix cope with scope extension value being None.
* Bugfix ensure the conditional 304 response is empty.
* Bugfix handle empty path in URL concatenation.
* Bugfix corrected typing hint for abort method at helpers.py.
* Bugfix root_path usage.
* Fix Werkzeug deprecation warnings.
* Add svg's to jinja's autoescaping.
* Improve the WebsocketResponse error, by including the response.
* Add a file mode parameter to the config.from_file method.
* Show the subdomain or host in the routes command output.
* Upgrade to blinker 1.6.
* Require Werkzeug 3.0.0 and Flask 3.0.0.
* Use tomllib rather than toml.

0.18.4 2023-04-09
-----------------

* Restrict blinker to < 1.6 for 0.18.x versions to ensure it works
with Quart's implementation.

0.18.3 2022-10-08
-----------------

* Fixed Issue #206. Corrected quart.json.loads type annotation.
* Bugfix signal handling on Windows.
* Bugfix add missing globals to Flask-Patch.

Expand Down
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Quart can be installed via `pip
$ pip install quart
and requires Python 3.7.0 or higher (see `python version support
and requires Python 3.8.0 or higher (see `python version support
<https://quart.palletsprojects.com/en/latest/discussion/python_versions.html>`_
for reasoning).

Expand Down Expand Up @@ -102,10 +102,10 @@ Relationship with Flask
-----------------------

Quart is an asyncio reimplementation of the popular `Flask
<http://flask.pocoo.org/>`_ microframework API. This means that if you
<https://flask.palletsprojects.com>`_ microframework API. This means that if you
understand Flask you understand Quart.

Like Flask Quart has an ecosystem of extensions for more specific
Like Flask, Quart has an ecosystem of extensions for more specific
needs. In addition a number of the Flask extensions work with Quart.

Migrating from Flask
Expand Down
Binary file modified artwork/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 52 additions & 3 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,8 +1,57 @@
quart (0.18.3-2deepin1) unstable; urgency=medium
quart (0.19.6-1) unstable; urgency=medium

* fix No module named 'py._path'; 'py' is not a package.
* Team upload
* New upstream version 0.19.6
* d/control: Increase Standards-Version to 4.7.0
No further modifications needed.
* d/copyright: Update upstream data

-- Carsten Schoenert <c.schoenert@t-online.de> Sun, 26 May 2024 07:24:39 +0200

quart (0.19.5-1) unstable; urgency=medium

* Team upload
* New upstream version 0.19.5
* Rebuild patch queue from patch-queu branch
Dropped patch (fixed upstream):
Fix-issues-with-the-latest-black-mypy-and-pytest.patch

-- Carsten Schoenert <c.schoenert@t-online.de> Tue, 02 Apr 2024 22:05:20 +0200

quart (0.19.4-2) unstable; urgency=medium

-- LiChengGang <lichenggang@uniontech.com> Wed, 22 Nov 2023 09:37:34 +0800
* Team upload
* Rebuild patch queue from patch-queu branch
Added patche:
Fix-issues-with-the-latest-black-mypy-and-pytest.patch
(Closes: #1066777)

-- Carsten Schoenert <c.schoenert@t-online.de> Sun, 17 Mar 2024 12:40:00 +0100

quart (0.19.4-1) unstable; urgency=medium

* Team upload

[ Andreas Tille ]
* New upstream version 0.19.4
(Closes: #1042259)
* Standards-Version: 4.6.2 (routine-update)
* Add salsa-ci file (routine-update)
* Build-Depends: python3-flask

[ Carsten Schoenert ]
* d/gbp.conf: Don't use numbers in patch names
* Add patch queue from patch-queue branch
Added patch:
docs-conf.py-Use-sphinx_rtd_theme-instead.patch
* d/control: Keep B-D entries alphabetical
* d/rules: Add override for dh_clean
* d/rules: Drop direct modification of docs/conf.py
Done now through patch queue.
* d/rules: Undo modification of pyproject.toml after build
* d/python-quart-doc.lintian-overrides: Update data content

-- Carsten Schoenert <c.schoenert@t-online.de> Mon, 12 Feb 2024 20:48:14 +0100

quart (0.18.3-2) unstable; urgency=medium

Expand Down
68 changes: 33 additions & 35 deletions debian/control
Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
Source: quart
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Uploaders:
Andrej Shadura <andrewsh@debian.org>,
Uploaders: Andrej Shadura <andrewsh@debian.org>
Section: python
Priority: optional
Build-Depends:
debhelper-compat (= 13),
dh-sequence-python3,
pybuild-plugin-pyproject,
python3-aiofiles,
python3-all (>= 3.7),
python3-blinker,
python3-click,
python3-dotenv,
python3-hypercorn (>= 0.11.2~),
python3-hypothesis,
python3-itsdangerous,
python3-jinja2,
python3-markupsafe,
python3-poetry,
python3-pytest <!nocheck>,
python3-pytest-asyncio <!nocheck>,
python3-pytest-cov <!nocheck>,
python3-sphinx <!nodoc>,
python3-sphinx-rtd-theme <!nodoc>,
python3-toml,
python3-werkzeug (>= 2.2.0~),
Rules-Requires-Root: no
Standards-Version: 4.6.1
Testsuite: autopkgtest-pkg-python
Homepage: https://github.com/pallets/quart
Priority: optional
Build-Depends: debhelper-compat (= 13),
dh-sequence-python3,
pybuild-plugin-pyproject,
python3-aiofiles,
python3-all,
python3-blinker,
python3-click,
python3-dotenv,
python3-flask <!nodoc>,
python3-hypercorn,
python3-hypothesis,
python3-itsdangerous,
python3-jinja2,
python3-markupsafe,
python3-poetry,
python3-poetry-core,
python3-pytest <!nocheck>,
python3-pytest-asyncio <!nocheck>,
python3-pytest-cov <!nocheck>,
python3-sphinx <!nodoc>,
python3-sphinx-rtd-theme <!nodoc>,
python3-toml,
python3-werkzeug (>= 2.2.0~),
Standards-Version: 4.7.0
Vcs-Browser: https://salsa.debian.org/python-team/packages/quart
Vcs-Git: https://salsa.debian.org/python-team/packages/quart.git
Homepage: https://github.com/pallets/quart
Rules-Requires-Root: no

Package: python-quart-doc
Section: doc
Architecture: all
Depends:
${misc:Depends},
${sphinxdoc:Depends},
Multi-Arch: foreign
Section: doc
Depends: ${misc:Depends},
${sphinxdoc:Depends}
Description: Python ASGI web microframework with the same API as Flask (Documentation)
Quart is a Python ASGI web microframework. It is intended to provide the
easiest way to use asyncio functionality in a web context, especially
Expand All @@ -62,9 +61,8 @@ Description: Python ASGI web microframework with the same API as Flask (Document

Package: python3-quart
Architecture: all
Depends:
${misc:Depends},
${python3:Depends},
Depends: ${misc:Depends},
${python3:Depends}
Description: Python ASGI web microframework with the same API as Flask
Quart is a Python ASGI web microframework. It is intended to provide the
easiest way to use asyncio functionality in a web context, especially
Expand Down
3 changes: 2 additions & 1 deletion debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Source: https://github.com/pallets/quart
Upstream-Name: Quart

Files: *
Copyright: 2017-2022 Philip G Jones <philip.graham.jones@googlemail.com>
Copyright: 2017-2024 Philip G Jones <philip.graham.jones@googlemail.com>
License: Expat

Files: artwork/*
Copyright: 2017 Vic Shóstak
2024 Philip G Jones <philip.graham.jones@googlemail.com>
License: CC0

Files: debian/*
Expand Down
3 changes: 3 additions & 0 deletions debian/gbp.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
debian-branch = debian/master
upstream-branch = upstream/latest
pristine-tar = True

[pq]
patch-numbers = False
25 changes: 25 additions & 0 deletions debian/patches/docs-conf.py-Use-sphinx_rtd_theme-instead.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
From: Carsten Schoenert <c.schoenert@t-online.de>
Date: Mon, 12 Feb 2024 09:39:42 +0100
Subject: docs/conf.py: Use sphinx_rtd_theme instead

The used theme by upstream (pydata_sphinx_theme) isn't packaged in
Debian, falling back than to the classical RTD theme.

Forwarded: not-needed
---
docs/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/conf.py b/docs/conf.py
index fa5647a..337135c 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -84,7 +84,7 @@ todo_include_todos = False
# a list of builtin themes.
#

-html_theme = "pydata_sphinx_theme"
+html_theme = "sphinx_rtd_theme"
html_logo = "_static/logo_short.png"

# Theme options are theme-specific and customize the look and feel of a theme
23 changes: 0 additions & 23 deletions debian/patches/fix-LocalPath

This file was deleted.

2 changes: 1 addition & 1 deletion debian/patches/series
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fix-LocalPath
docs-conf.py-Use-sphinx_rtd_theme-instead.patch
Loading

0 comments on commit e63a449

Please sign in to comment.