Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/paste/
Date: Fri, 19 Aug 2022 14:18:27
Message-Id: 1660918694.56e11c1f7a3b02cb5b0146f9e44e01242fe59ecf.arthurzam@gentoo
1 commit: 56e11c1f7a3b02cb5b0146f9e44e01242fe59ecf
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 19 12:56:35 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 19 14:18:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56e11c1f
7
8 dev-python/paste: add 3.5.2
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/paste/Manifest | 1 +
13 dev-python/paste/paste-3.5.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++
14 2 files changed, 51 insertions(+)
15
16 diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest
17 index e21b78bba635..784f0c2a192b 100644
18 --- a/dev-python/paste/Manifest
19 +++ b/dev-python/paste/Manifest
20 @@ -1 +1,2 @@
21 DIST Paste-3.5.1.tar.gz 637755 BLAKE2B fc5f4afc064ced52322f7c2cb20c84d24538bdd3a5dadf7b47f62dd8b64ed62a2925102b785e366bc9b9257835529ae226a4d291bebd40d70bda16be781613c6 SHA512 7ae39691bb6067309a12bf76e2a110913c7be6ddcda6215eaf0228144ff26a1c7b50500729b65e27652dc7a7edf6fe26bd144d261e8754d7af8bac495d4613f9
22 +DIST Paste-3.5.2.tar.gz 638207 BLAKE2B 98d9f508923836e41657b653b1cd70d3cea13121dee375c6cfaf28e6f82ebcc36ba74658ade927fd6802f09bf9d9ca566d2b9bbf3eed5122aedd35ed0ac9d5ec SHA512 a1920dbd7ebea137ca33f8f8c33aad563329d1eea193d84e6aa7fc57690f706c1969e3ba76bbf21a73c59a0fe0f732daa4db15705914ac359814b4332a01bc75
23
24 diff --git a/dev-python/paste/paste-3.5.2.ebuild b/dev-python/paste/paste-3.5.2.ebuild
25 new file mode 100644
26 index 000000000000..7b27623d9a37
27 --- /dev/null
28 +++ b/dev-python/paste/paste-3.5.2.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +
38 +inherit distutils-r1
39 +
40 +MY_P="Paste-${PV}"
41 +DESCRIPTION="Tools for using a Web Server Gateway Interface stack"
42 +HOMEPAGE="
43 + https://pythonpaste.readthedocs.io/en/latest/
44 + https://github.com/cdent/paste/
45 + https://pypi.org/project/Paste/
46 +"
47 +SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz"
48 +S=${WORKDIR}/${MY_P}
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris"
53 +
54 +RDEPEND="
55 + >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
56 + !dev-python/namespace-paste
57 +"
58 +
59 +distutils_enable_tests pytest
60 +distutils_enable_sphinx docs
61 +
62 +python_compile() {
63 + distutils-r1_python_compile
64 + find "${BUILD_DIR}" -name '*.pth' -delete || die
65 +}
66 +
67 +python_test() {
68 + local EPYTEST_DESELECT=(
69 + # Internet
70 + tests/test_proxy.py
71 + )
72 +
73 + [[ ${EPYTHON} == python3.11 ]] && EPYTEST_DESELECT+=(
74 + # fails due to cgi deprecation warning
75 + tests/test_cgiapp.py::test_form
76 + )
77 +
78 + epytest
79 +}