From 3348d4d7b144cbc74bb26853b7b2fa77c2f98d8a Mon Sep 17 00:00:00 2001 From: sufang Date: Tue, 7 Feb 2023 14:23:31 +0800 Subject: [PATCH] Import Debian changes 0.10.1-ok1 python-requests-toolbelt (0.10.1-ok1) yangtze; urgency=medium * Build for openkylin. --- debian/changelog | 5 + debian/control | 40 ++++++ debian/copyright | 132 +++++++++++++++++++ debian/patches/series | 1 + debian/python-requests-toolbelt-doc.doc-base | 8 ++ debian/python-requests-toolbelt-doc.docs | 1 + debian/rules | 26 ++++ debian/source/format | 1 + debian/watch | 3 + 9 files changed, 217 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/patches/series create mode 100644 debian/python-requests-toolbelt-doc.doc-base create mode 100644 debian/python-requests-toolbelt-doc.docs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..604f56b --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-requests-toolbelt (0.10.1-ok1) yangtze; urgency=medium + + * Build for openkylin. + + -- sufang Tue, 07 Feb 2023 14:23:31 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..38e06f8 --- /dev/null +++ b/debian/control @@ -0,0 +1,40 @@ +Source: python-requests-toolbelt +Section: python +Priority: optional +Maintainer: OpenKylin Developers +Build-Depends: debhelper-compat (= 13) +Build-Depends-Indep: + dh-python, + python3-sphinx, + python3-sphinx-rtd-theme, + python3-doc, + python3-all, + python3-requests, + python3-setuptools, +Standards-Version: 4.6.1 +Testsuite: autopkgtest-pkg-python +Homepage: https://pypi.python.org/pypi/requests-toolbelt +Vcs-Browser: https://gitee.com/openkylin/python-requests-toolbelt +Vcs-Git: https://gitee.com/openkylin/python-requests-toolbelt.git + +Package: python3-requests-toolbelt +Architecture: all +Depends: ${misc:Depends}, ${python3:Depends} +Description: Utility belt for advanced users of python3-requests + Collection of utilities for python3-requests + It provides transport adapters: FingerprintAdapter, SSLAdapter, + SourceAddressAdapter, SocketOptionsAdapter, TCPKeepAliveAdapter + and authenticators: AuthHandler, GuessAuth, HTTPProxyDigestAuth + Also a cookiejar, streaming helpers and more. + +Package: python-requests-toolbelt-doc +Architecture: all +Section: doc +Depends: ${misc:Depends}, ${sphinxdoc:Depends} +Multi-Arch: foreign +Description: Utility belt for python3-requests (documentation) + Collection of utilities for python3-requests: documentation + It provides transport adapters: FingerprintAdapter, SSLAdapter, + SourceAddressAdapter, SocketOptionsAdapter, TCPKeepAliveAdapter + and authenticators: AuthHandler, GuessAuth, HTTPProxyDigestAuth + Also a cookiejar, streaming helpers and more. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..0b23728 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,132 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: python-requests-toolbelt +Source: +# +# Please double check copyright with the licensecheck(1) command. + +Files: AUTHORS.rst + CODE_OF_CONDUCT.rst + HISTORY.rst + MANIFEST.in + PKG-INFO + README.rst + dev-requirements.txt + docs/Makefile + docs/adapters.rst + docs/authentication.rst + docs/conf.py + docs/contributing.rst + docs/deprecated.rst + docs/downloadutils.rst + docs/dumputils.rst + docs/exceptions.rst + docs/formdata.rst + docs/index.rst + docs/make.bat + docs/sessions.rst + docs/threading.rst + docs/uploading-data.rst + docs/user-agent.rst + docs/user.rst + requests_toolbelt.egg-info/PKG-INFO + requests_toolbelt.egg-info/SOURCES.txt + requests_toolbelt.egg-info/dependency_links.txt + requests_toolbelt.egg-info/requires.txt + requests_toolbelt.egg-info/top_level.txt + requests_toolbelt/__init__.py + requests_toolbelt/_compat.py + requests_toolbelt/adapters/__init__.py + requests_toolbelt/adapters/appengine.py + requests_toolbelt/adapters/fingerprint.py + requests_toolbelt/adapters/host_header_ssl.py + requests_toolbelt/adapters/socket_options.py + requests_toolbelt/adapters/source.py + requests_toolbelt/adapters/ssl.py + requests_toolbelt/adapters/x509.py + requests_toolbelt/auth/__init__.py + requests_toolbelt/auth/_digest_auth_compat.py + requests_toolbelt/auth/guess.py + requests_toolbelt/auth/handler.py + requests_toolbelt/auth/http_proxy_digest.py + requests_toolbelt/cookies/__init__.py + requests_toolbelt/cookies/forgetful.py + requests_toolbelt/downloadutils/__init__.py + requests_toolbelt/downloadutils/stream.py + requests_toolbelt/downloadutils/tee.py + requests_toolbelt/exceptions.py + requests_toolbelt/multipart/__init__.py + requests_toolbelt/multipart/decoder.py + requests_toolbelt/multipart/encoder.py + requests_toolbelt/sessions.py + requests_toolbelt/streaming_iterator.py + requests_toolbelt/threaded/__init__.py + requests_toolbelt/threaded/pool.py + requests_toolbelt/threaded/thread.py + requests_toolbelt/utils/__init__.py + requests_toolbelt/utils/deprecated.py + requests_toolbelt/utils/dump.py + requests_toolbelt/utils/formdata.py + requests_toolbelt/utils/user_agent.py + setup.cfg + setup.py + tests/__init__.py + tests/cassettes/file_for_download.json + tests/cassettes/http2bin_cookies.json + tests/cassettes/http2bin_fingerprint.json + tests/cassettes/httpbin_guess_auth_basic.json + tests/cassettes/httpbin_guess_auth_digest.json + tests/cassettes/httpbin_guess_auth_none.json + tests/cassettes/klevas_vu_lt_ssl3.json + tests/cassettes/redirect_request_for_dump_all.json + tests/cassettes/simple_get_request.json + tests/cassettes/stream_response_to_file.json + tests/cassettes/test_x509_adapter_der.json + tests/cassettes/test_x509_adapter_pem.json + tests/conftest.py + tests/test_appengine_adapter.py + tests/test_auth.py + tests/test_auth_handler.py + tests/test_downloadutils.py + tests/test_dump.py + tests/test_fingerprintadapter.py + tests/test_forgetfulcookiejar.py + tests/test_formdata.py + tests/test_host_header_ssl_adapter.py + tests/test_multipart_decoder.py + tests/test_multipart_encoder.py + tests/test_multipart_monitor.py + tests/test_proxy_digest_auth.py + tests/test_sessions.py + tests/test_socket_options_adapter.py + tests/test_source_adapter.py + tests/test_ssladapter.py + tests/test_streaming_iterator.py + tests/test_user_agent.py + tests/test_x509_adapter.py + tests/threaded/__init__.py + tests/threaded/test_api.py + tests/threaded/test_pool.py + tests/threaded/test_thread.py + tox.ini +Copyright: __NO_COPYRIGHT_NOR_LICENSE__ +License: __NO_COPYRIGHT_NOR_LICENSE__ + +#---------------------------------------------------------------------------- +# Files marked as NO_LICENSE_TEXT_FOUND may be covered by the following +# license/copyright files. + +#---------------------------------------------------------------------------- +# License file: LICENSE + Copyright 2014 Ian Cordasco, Cory Benfield + . + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + . + https://www.apache.org/licenses/LICENSE-2.0 + . + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4a97dfa --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +# You must remove unused comment lines for the released package. diff --git a/debian/python-requests-toolbelt-doc.doc-base b/debian/python-requests-toolbelt-doc.doc-base new file mode 100644 index 0000000..4b69a7b --- /dev/null +++ b/debian/python-requests-toolbelt-doc.doc-base @@ -0,0 +1,8 @@ +Document: python-requests-toolbelt +Title: Utility belt for advanced users of python-requests +Author: Ian Cordasco, Cory Benfield +Section: Programming/Python + +Format: HTML +Index: /usr/share/doc/python-requests-toolbelt-doc/html/index.html +Files: /usr/share/doc/python-requests-toolbelt-doc/html diff --git a/debian/python-requests-toolbelt-doc.docs b/debian/python-requests-toolbelt-doc.docs new file mode 100644 index 0000000..82dbdaf --- /dev/null +++ b/debian/python-requests-toolbelt-doc.docs @@ -0,0 +1 @@ +debian/html diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..cf98783 --- /dev/null +++ b/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f + +export DH_VERBOSE=1 +export PYBUILD_NAME=requests-toolbelt + +# Requires betamax #808880 +export PYBUILD_DISABLE=test + +export SETUPTOOLS_USE_DISTUTILS=stdlib + +%: + dh $@ --with python3 --buildsystem=pybuild + +override_dh_installdocs: + LC_ALL=C PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml docs debian/html + dh_installdocs + dh_sphinxdoc + +override_dh_auto_clean: + $(RM) -r debian/html + dh_auto_clean + +override_dh_installchangelogs: + dh_installchangelogs HISTORY.rst + # Remove backup file included in distribution by mistake + $(RM) debian/*/usr/lib/*/dist-packages/requests_toolbelt/multipart/.encoder.py.swp 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/watch b/debian/watch new file mode 100644 index 0000000..62698c5 --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=4 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/requests-toolbelt/requests-toolbelt-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))