diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..07b7d5e --- /dev/null +++ b/debian/README.source @@ -0,0 +1,29 @@ +This package is maintained with git-buildpackage(1). It follows DEP-14 for +branch naming (e.g. using debian/master for the current version in Debian +unstable due Debian Python team policy). + +It uses pristine-tar(1) to store enough information in git to generate bit +identical tarballs when building the package without having downloaded an +upstream tarball first. + +When working with patches it is recommended to use "gbp pq import" to import +the patches, modify the source and then use "gbp pq export --commit" to commit +the modifications. + +The changelog is generated using "gbp dch" so if you submit any changes don't +bother to add changelog entries but rather provide a nice git commit message +that can then end up in the changelog. + +It is recommended to build the package with pbuilder using: + + gbp buildpackage --git-pbuilder + +For information on how to set up a pbuilder environment see the git-pbuilder(1) +manpage. In short: + + DIST=sid git-pbuilder create + gbp clone https://salsa.debian.org/python-team/packages/quart.git + cd quart + gbp buildpackage --git-pbuilder + + -- Carsten Schoenert Mon, 17 Oct 2022 20:47:00 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..0c56f28 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +quart (0.19.4-ok1) nile; urgency=medium + + * Build for openKylin. + + -- openKylinBot Tue, 07 May 2024 15:48:24 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..69d2c16 --- /dev/null +++ b/debian/control @@ -0,0 +1,82 @@ +Source: quart +Maintainer: openKylin Developers +Uploaders: Andrej Shadura +Section: python +Testsuite: autopkgtest-pkg-python +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 , + python3-hypercorn, + python3-hypothesis, + python3-itsdangerous, + python3-jinja2, + python3-markupsafe, + python3-poetry, + python3-poetry-core, + python3-pytest , + python3-pytest-asyncio , + python3-pytest-cov , + python3-sphinx , + python3-sphinx-rtd-theme , + python3-toml, + python3-werkzeug (>= 2.2.0~), +Standards-Version: 4.6.2 +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 +Architecture: all +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 + with existing Flask apps. This is possible as the Quart API is a superset + of the Flask API. + . + Quart aims to be a complete web microframework, as it supports HTTP/1.1, + HTTP/2 and websockets. Quart is very extendable and has a number of + known extensions and works with many of the Flask extensions. + . + Quart supports the full ASGI 3.0 specification as well as the websocket + response and HTTP/2 server push extensions. For those of you familiar + with Flask, Quart extends the Flask API by adding support for: + . + * HTTP/1.1 request streaming + * Websockets + * HTTP/2 server push + . + This package contains the documentation and examples. + +Package: python3-quart +Architecture: all +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 + with existing Flask apps. This is possible as the Quart API is a superset + of the Flask API. + . + Quart aims to be a complete web microframework, as it supports HTTP/1.1, + HTTP/2 and websockets. Quart is very extendable and has a number of + known extensions and works with many of the Flask extensions. + . + Quart supports the full ASGI 3.0 specification as well as the websocket + response and HTTP/2 server push extensions. For those of you familiar + with Flask, Quart extends the Flask API by adding support for: + . + * HTTP/1.1 request streaming + * Websockets + * HTTP/2 server push diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..02bee0c --- /dev/null +++ b/debian/copyright @@ -0,0 +1,41 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: https://github.com/pallets/quart +Upstream-Name: Quart + +Files: * +Copyright: 2017-2022 Philip G Jones +License: Expat + +Files: artwork/* +Copyright: 2017 Vic Shóstak +License: CC0 + +Files: debian/* +Copyright: 2020 Andrej Shadura +License: Expat + +License: CC0 + On Debian systems, the complete text of the CC0 1.0 Universal + license can be found in ‘/usr/share/common-licenses/CC0-1.0’. + +License: Expat + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation + files (the "Software"), to deal in the Software without + restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the + Software is furnished to do so, subject to the following + conditions: + . + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. diff --git a/debian/fill.copyright.blanks.yml b/debian/fill.copyright.blanks.yml new file mode 100644 index 0000000..d09c9b5 --- /dev/null +++ b/debian/fill.copyright.blanks.yml @@ -0,0 +1,11 @@ +debian/: + copyright: 2020 Andrej Shadura + license: Expat +LICENSE: + skip: 1 +artwork/*: + override-copyright: 2017 Vic Shóstak + license: CC0 +.*: + copyright: 2017-2020 Philip G Jones + license: Expat diff --git a/debian/gbp.conf b/debian/gbp.conf new file mode 100644 index 0000000..ddcd107 --- /dev/null +++ b/debian/gbp.conf @@ -0,0 +1,7 @@ +[DEFAULT] +debian-branch = debian/master +upstream-branch = upstream/latest +pristine-tar = True + +[pq] +patch-numbers = False diff --git a/debian/patches/docs-conf.py-Use-sphinx_rtd_theme-instead.patch b/debian/patches/docs-conf.py-Use-sphinx_rtd_theme-instead.patch new file mode 100644 index 0000000..7a0d153 --- /dev/null +++ b/debian/patches/docs-conf.py-Use-sphinx_rtd_theme-instead.patch @@ -0,0 +1,25 @@ +From: Carsten Schoenert +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 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..607b951 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +docs-conf.py-Use-sphinx_rtd_theme-instead.patch diff --git a/debian/python-quart-doc.doc-base b/debian/python-quart-doc.doc-base new file mode 100644 index 0000000..45a08a0 --- /dev/null +++ b/debian/python-quart-doc.doc-base @@ -0,0 +1,8 @@ +Document: python-quart-doc +Title: Fast Python web microframework +Abstract: Quart is an asyncio reimplementation of the popular Flask microframework API. +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-quart-doc/html/index.html +Files: /usr/share/doc/python-quart-doc/html/*.html diff --git a/debian/python-quart-doc.examples b/debian/python-quart-doc.examples new file mode 100644 index 0000000..e39721e --- /dev/null +++ b/debian/python-quart-doc.examples @@ -0,0 +1 @@ +examples/* diff --git a/debian/python-quart-doc.links b/debian/python-quart-doc.links new file mode 100644 index 0000000..7d9f8ba --- /dev/null +++ b/debian/python-quart-doc.links @@ -0,0 +1 @@ +usr/share/doc/python-quart-doc/html/_images/logo.png usr/share/doc/python-quart-doc/html/_static/logo.png diff --git a/debian/python-quart-doc.lintian-overrides b/debian/python-quart-doc.lintian-overrides new file mode 100644 index 0000000..698b441 --- /dev/null +++ b/debian/python-quart-doc.lintian-overrides @@ -0,0 +1,10 @@ +# All these folders are examples and collected this way by upstream. +python-quart-doc: repeated-path-segment api [usr/share/doc/python3-quart/examples/api/src/api/] +python-quart-doc: repeated-path-segment blog [usr/share/doc/python3-quart/examples/blog/src/blog/] +python-quart-doc: repeated-path-segment chat [usr/share/doc/python3-quart/examples/chat/src/chat/] +python-quart-doc: repeated-path-segment video [usr/share/doc/python3-quart/examples/video/src/video/] + +# Intended by sphinx design, we ship the source of the HTML data. +python-quart-doc: file-references-package-build-path [usr/share/doc/python-quart-doc/html/reference/source/quart.wrappers.base.html] +python-quart-doc: file-references-package-build-path [usr/share/doc/python-quart-doc/html/reference/source/quart.wrappers.html] +python-quart-doc: file-references-package-build-path [usr/share/doc/python-quart-doc/html/reference/source/quart.wrappers.response.html] diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..52cba5d --- /dev/null +++ b/debian/rules @@ -0,0 +1,53 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +#export DH_VERBOSE = 1 +export PYBUILD_NAME=quart + +include /usr/share/dpkg/pkg-info.mk + +BUILD_DATE = $(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)") +SPHINXOPTS := -N -D html_last_updated_fmt="$(BUILD_DATE)" + +%: + dh $@ --with sphinxdoc --buildsystem=pybuild + +override_dh_sphinxdoc: +ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS))) + PYTHONPATH=`dirname $$(find .pybuild/ -type d -name "quart*dist-info" | head -n1)` \ + python3 -m sphinx -b html $(SPHINXOPTS) docs $(CURDIR)/debian/python-quart-doc/usr/share/doc/python-quart-doc/html + dh_sphinxdoc +endif + +override_dh_installdocs: + dh_installdocs -ppython-$(PYBUILD_NAME)-doc --doc-main-package=python3-$(PYBUILD_NAME) + dh_installdocs --remaining-packages + +override_dh_auto_build: + # The name of the project need to be written in lowercase letters, + # otherwise pybuild wont find the WHEEL file (as it's created from the + # project name starting with an capital letter). + sed -i 's,name = "Quart",name = "quart",g' pyproject.toml + dh_auto_build + # Now undo the previous replacement again, we need to do this hack as + # dpkg will otherwise complain about modified source code of course in + # case the build is getting started twice in a row. + sed -i 's,name = "quart",name = "Quart",g' pyproject.toml + +override_dh_installexamples: + dh_installexamples -ppython-$(PYBUILD_NAME)-doc --doc-main-package=python3-$(PYBUILD_NAME) + dh_installexamples --remaining-packages + +override_dh_installchangelogs: + dh_installchangelogs CHANGES.rst + +override_dh_compress: + dh_compress -X.py + +override_dh_clean: + rm -rf .pybuild \ + .mypy_cache \ + docs/reference/source/* + dh_clean + +.PHONY: override_dh_auto_build override_dh_auto_clean override_dh_installdocs override_dh_installexamples override_dh_installchangelogs override_dh_compress diff --git a/debian/salsa-ci.yml b/debian/salsa-ci.yml new file mode 100644 index 0000000..33c3a64 --- /dev/null +++ b/debian/salsa-ci.yml @@ -0,0 +1,4 @@ +--- +include: + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml + - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/debian/source/lintian-overrides b/debian/source/lintian-overrides new file mode 100644 index 0000000..220dd79 --- /dev/null +++ b/debian/source/lintian-overrides @@ -0,0 +1 @@ +quart source: debian-watch-does-not-check-openpgp-signature [debian/watch] diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..11f5e2d --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Tests: + upstream-tests +Depends: + python3-all, + @, + @builddeps@, +Restrictions: allow-stderr diff --git a/debian/tests/upstream-tests b/debian/tests/upstream-tests new file mode 100644 index 0000000..b24986b --- /dev/null +++ b/debian/tests/upstream-tests @@ -0,0 +1,23 @@ +#!/bin/bash + +set -e -u + +cp -a tests "${AUTOPKGTEST_TMP}" + +for py3vers in $(py3versions -s); do + echo + echo "***************************" + echo "*** Testing with ${py3vers}" + echo "***************************" + echo + cd ${AUTOPKGTEST_TMP} && \ + echo -e "Content of current working folder:\n" && \ + ls -la && \ + echo -e "Running tests...\n" && \ + ${py3vers} -m pytest -sv tests && \ + rm -rf .pytest_cache || exit 1 +done + +echo + +exit 0 diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..7bb0904 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,6 @@ +Bug-Database: https://github.com/pallets/quart/issues +Bug-Submit: https://github.com/pallets/quart/issues/new +Documentation: https://quart.palletsprojects.com/ +Security-Contact: security@palletsprojects.com +Repository: https://github.com/pallets/quart.git +Repository-Browse: https://github.com/pallets/quart diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..1fe4f9f --- /dev/null +++ b/debian/watch @@ -0,0 +1,6 @@ +version=4 + +opts="mode=git, \ + uversionmangle=s/(rc|a|b|c)/~$1/" \ +https://github.com/pallets/quart.git \ + refs/tags/@ANY_VERSION@