Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/paste/
Date: Wed, 27 Nov 2019 21:21:56
Message-Id: 1574889566.ca94f38b2843bca231462c6db5afb25edd3de59c.chutzpah@gentoo
1 commit: ca94f38b2843bca231462c6db5afb25edd3de59c
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Wed Nov 27 19:53:36 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 27 21:19:26 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca94f38b
7
8 dev-python/paste-3.2.3: Bump, add py38 and pypy{,3}
9
10 Copyright: Sony Interactive Entertainment Inc.
11 Package-Manager: Portage-2.3.79, Repoman-2.3.18
12 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
13
14 dev-python/paste/Manifest | 1 +
15 dev-python/paste/paste-3.2.3.ebuild | 67 +++++++++++++++++++++++++++++++++++++
16 2 files changed, 68 insertions(+)
17
18 diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest
19 index 6d88e672f4f..17034e98a94 100644
20 --- a/dev-python/paste/Manifest
21 +++ b/dev-python/paste/Manifest
22 @@ -1,2 +1,3 @@
23 DIST Paste-2.0.3.tar.gz 643935 BLAKE2B 140f88cbab40728713a052e5aca0c7f14336d526a2c7bcd6a279fcdd13b14ed83938f69997182b43d2a83a76f51586c3b9132428f0f9c9e9ba08b6ff820827b9 SHA512 174b06d77bc6e1d4079e8de7df40412ffda098364efd4e3f915f858be1188c8a6fb546fe4ab981ccc067ec77b7171083b2469e7db6fc3b777d5a24151c928362
24 DIST Paste-3.0.7.tar.gz 628999 BLAKE2B c91bb228fc2c36da1e7d487d521b9f57df19f4cb76731ec8ac17786aae087fe820760d19798a8da0ab6ce50f24b8a1fcb9d5189e6c48cffbda75ddfc9cf9f617 SHA512 adf823d208065b00a4bf1473e7550a1e0907d1da88000e87ea3a5dfb36f22c2bb33dda21ccf096da1512a0f2db2ad540a66efe751bbab8bfb49cd4ad456d5460
25 +DIST Paste-3.2.3.tar.gz 628900 BLAKE2B 3f6bc741a716f33b82fa3bf8e1ab6ba3c17a56ebf3f90ccce0c1a925f982a2a0b460f433e15045321bb4b7c22c6fe9238cf6c7c76b78dc86d414729b67f0791e SHA512 8775a4c6b1863355a2acb3b88258e342db768942ccf28edc8654d7a1a15c5a036f4f8c5c9d917d51e74c9260170234f9c499cefd709b0fbd39ffd4d1b7afcb79
26
27 diff --git a/dev-python/paste/paste-3.2.3.ebuild b/dev-python/paste/paste-3.2.3.ebuild
28 new file mode 100644
29 index 00000000000..49cad2fc095
30 --- /dev/null
31 +++ b/dev-python/paste/paste-3.2.3.ebuild
32 @@ -0,0 +1,67 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} )
38 +
39 +inherit distutils-r1
40 +
41 +MY_PN="Paste"
42 +MY_P="${MY_PN}-${PV}"
43 +
44 +DESCRIPTION="Tools for using a Web Server Gateway Interface stack"
45 +HOMEPAGE="https://pypi.org/project/Paste/"
46 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
47 +
48 +LICENSE="MIT"
49 +SLOT="0"
50 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris"
51 +IUSE="flup openid"
52 +
53 +RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]
54 + >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
55 + flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] )
56 + openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )"
57 +DEPEND="${RDEPEND}
58 + dev-python/setuptools[${PYTHON_USEDEP}]"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +distutils_enable_tests pytest
63 +distutils_enable_sphinx docs
64 +
65 +python_prepare_all() {
66 + # Disable failing tests.
67 + rm -f tests/test_cgiapp.py || die
68 + sed \
69 + -e "s/test_find_file/_&/" \
70 + -e "s/test_deep/_&/" \
71 + -e "s/test_static_parser/_&/" \
72 + -i tests/test_urlparser.py || die "sed failed"
73 +
74 + # Remove a test that runs against the paste website.
75 + rm -f tests/test_proxy.py || die
76 +
77 + # remove unnecessary dep
78 + sed -i "s:'pytest-runner'::" setup.py || die
79 +
80 + distutils-r1_python_prepare_all
81 +}
82 +
83 +#python_compile() {
84 +# distutils-r1_python_compile egg_info --egg-base "${BUILD_DIR}/lib"
85 +#}
86 +
87 +#python_compile_all() {
88 +# use doc && esetup.py build_sphinx
89 +#}
90 +
91 +#python_install() {
92 +# distutils-r1_python_install egg_info --egg-base "${BUILD_DIR}/lib"
93 +#}
94 +
95 +python_install_all() {
96 + distutils-r1_python_install_all
97 +
98 + find "${D}" -name '*.pth' -delete || die
99 +}