From c6d85976a09681dcd89dc612b7824d487284fa2f Mon Sep 17 00:00:00 2001 From: openKylinBot Date: Mon, 25 Apr 2022 22:03:04 +0800 Subject: [PATCH] Import Debian changes 2.8-ok1 python-idna (2.8-ok1) yangtze; urgency=medium * Build for openKylin. --- debian/changelog | 5 ++ debian/control | 51 +++++++++++++++ debian/copyright | 134 +++++++++++++++++++++++++++++++++++++++ debian/rules | 6 ++ debian/source/format | 1 + debian/tests/control | 7 ++ debian/tests/python2 | 8 +++ debian/tests/python3 | 8 +++ debian/upstream/metadata | 4 ++ debian/watch | 3 + 10 files changed, 227 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 debian/tests/control create mode 100755 debian/tests/python2 create mode 100644 debian/tests/python3 create mode 100644 debian/upstream/metadata create mode 100644 debian/watch diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..bb95954 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +python-idna (2.8-ok1) yangtze; urgency=medium + + * Build for openKylin. + + -- openKylinBot Mon, 25 Apr 2022 22:03:04 +0800 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..b3498d2 --- /dev/null +++ b/debian/control @@ -0,0 +1,51 @@ +Source: python-idna +Section: python +Priority: optional +Maintainer: Debian Python Modules Team +Uploaders: Tristan Seligmann +Build-Depends: + debhelper-compat (= 12), + dh-python, + python-all, + python3-all, + python-setuptools, + python3-setuptools, +Homepage: https://github.com/kjd/idna +Vcs-Browser: https://salsa.debian.org/python-team/modules/python-idna +Vcs-Git: https://salsa.debian.org/python-team/modules/python-idna.git +Standards-Version: 4.4.1 +Testsuite: autopkgtest-pkg-python + +Package: python-idna +Architecture: all +Depends: + ${misc:Depends}, + ${python:Depends}, +Description: Python IDNA2008 (RFC 5891) handling (Python 2) + A library to support the Internationalised Domain Names in Applications (IDNA) + protocol as specified in RFC 5891. This version of the protocol is often + referred to as “IDNA2008” and can produce different results from the earlier + standard from 2003. + . + The library is also intended to act as a suitable drop-in replacement for the + “encodings.idna” module that comes with the Python standard library but + currently only supports the older 2003 specification. + . + This package contains the module for Python 2. + +Package: python3-idna +Architecture: all +Depends: + ${misc:Depends}, + ${python3:Depends}, +Description: Python IDNA2008 (RFC 5891) handling (Python 3) + A library to support the Internationalised Domain Names in Applications (IDNA) + protocol as specified in RFC 5891. This version of the protocol is often + referred to as “IDNA2008” and can produce different results from the earlier + standard from 2003. + . + The library is also intended to act as a suitable drop-in replacement for the + “encodings.idna” module that comes with the Python standard library but + currently only supports the older 2003 specification. + . + This package contains the module for Python 3. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..6ee71ec --- /dev/null +++ b/debian/copyright @@ -0,0 +1,134 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: idna +Source: https://github.com/kjd/idna + +Files: * +Copyright: 2013-2017 Kim Davies +License: BSD-3-clause + +Files: idna/codec.py +Copyright: 2013-2015 Kim Davies + 2001-2014 Python Software Foundation +License: BSD-3-clause and PSF-2 + +Files: tests/* +Copyright: 2013-2015 Kim Davies + 2001-2014 Python Software Foundation + 1991-2014 Unicode, Inc. +License: BSD-3-clause and PSF-2 and Unicode + +Files: debian/* +Copyright: 2015 Tristan Seligmann +License: BSD-3-clause + +License: BSD-3-clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + #. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + #. Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided with + the distribution. + . + #. Neither the name of the copyright holder nor the names of the + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + . + #. THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS "AS IS" AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR + PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR + CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE + USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + +License: PSF-2 + This LICENSE AGREEMENT is between the Python Software Foundation (“PSF”), and + the Individual or Organization (“Licensee”) accessing and otherwise using + Python 2.7.10 software in source or binary form and its associated + documentation. + . + Subject to the terms and conditions of this License Agreement, PSF hereby + grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, + analyze, test, perform and/or display publicly, prepare derivative works, + distribute, and otherwise use Python 2.7.10 alone or in any derivative version, + provided, however, that PSF’s License Agreement and PSF’s notice of copyright, + i.e., “Copyright © 2001-2015 Python Software Foundation; All Rights Reserved” + are retained in Python 2.7.10 alone or in any derivative version prepared by + Licensee. + . + In the event Licensee prepares a derivative work that is based on or + incorporates Python 2.7.10 or any part thereof, and wants to make the + derivative work available to others as provided herein, then Licensee hereby + agrees to include in any such work a brief summary of the changes made to + Python 2.7.10. + . + PSF is making Python 2.7.10 available to Licensee on an “AS IS” basis. PSF + MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, + BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY + OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF + PYTHON 2.7.10 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + . + PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 2.7.10 FOR + ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF + MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.7.10, OR ANY DERIVATIVE + THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + . + This License Agreement will automatically terminate upon a material breach of + its terms and conditions. + . + Nothing in this License Agreement shall be deemed to create any relationship + of agency, partnership, or joint venture between PSF and Licensee. This License + Agreement does not grant permission to use PSF trademarks or trade name in a + trademark sense to endorse or promote products or services of Licensee, or any + third party. + . + By copying, installing or otherwise using Python 2.7.10, Licensee agrees to be + bound by the terms and conditions of this License Agreement. + +License: Unicode + Distributed under the Terms of Use in + . + . + Permission is hereby granted, free of charge, to any person obtaining + a copy of the Unicode data files and any associated documentation + (the "Data Files") or Unicode software and any associated documentation + (the "Software") to deal in the Data Files or Software + without restriction, including without limitation the rights to use, + copy, modify, merge, publish, distribute, and/or sell copies of + the Data Files or Software, and to permit persons to whom the Data Files + or Software are furnished to do so, provided that + . + (a) this copyright and permission notice appear with all copies + of the Data Files or Software, + . + (b) this copyright and permission notice appear in associated + documentation, and + . + (c) there is clear notice in each modified Data File or in the Software + as well as in the documentation associated with the Data File(s) or + Software that the data or software has been modified. + . + THE DATA FILES AND SOFTWARE ARE 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 OF THIRD PARTY RIGHTS. + IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN THIS + NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL + DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THE DATA FILES OR SOFTWARE. + . + Except as contained in this notice, the name of a copyright holder + shall not be used in advertising or otherwise to promote the sale, + use or other dealings in these Data Files or Software without prior + written authorization of the copyright holder. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..2c07bcb --- /dev/null +++ b/debian/rules @@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +export PYBUILD_NAME=idna + +%: + dh $@ --with python2,python3 --buildsystem=pybuild 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/tests/control b/debian/tests/control new file mode 100644 index 0000000..abe5775 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Tests: python2 +Depends: python-idna, python-all +Restrictions: allow-stderr + +Tests: python3 +Depends: python3-idna, python3-all +Restrictions: allow-stderr diff --git a/debian/tests/python2 b/debian/tests/python2 new file mode 100755 index 0000000..b10bd84 --- /dev/null +++ b/debian/tests/python2 @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +SRC="$PWD" +cd "$AUTOPKGTEST_TMP" +for py in $(pyversions -vi) ; do + python$py -m unittest discover -s "${SRC}/tests"; +done diff --git a/debian/tests/python3 b/debian/tests/python3 new file mode 100644 index 0000000..4daf505 --- /dev/null +++ b/debian/tests/python3 @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +SRC="$PWD" +cd "$AUTOPKGTEST_TMP" +for py in $(py3versions -vi) ; do + python$py -m unittest discover -s "${SRC}/tests" ; +done diff --git a/debian/upstream/metadata b/debian/upstream/metadata new file mode 100644 index 0000000..60893b8 --- /dev/null +++ b/debian/upstream/metadata @@ -0,0 +1,4 @@ +Bug-Database: https://github.com/kjd/idna/issues +Bug-Submit: https://github.com/kjd/idna/issues/new +Repository: https://github.com/kjd/idna.git +Repository-Browse: https://github.com/kjd/idna diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..fdfdcab --- /dev/null +++ b/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts=uversionmangle=s/(rc|a|b|c)/~$1/ \ +https://pypi.debian.net/idna/idna-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))