Gentoo Archives: gentoo-commits

From: Matthew Thode <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/paste/
Date: Wed, 10 Apr 2019 05:08:33
Message-Id: 1554872876.17fdfcf014ab5f0a78a46f936c972c28f8377094.prometheanfire@gentoo
1 commit: 17fdfcf014ab5f0a78a46f936c972c28f8377094
2 Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 10 04:05:18 2019 +0000
4 Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 10 05:07:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17fdfcf0
7
8 dev-python/paste: 3.0.7 bump
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org>
12
13 dev-python/paste/Manifest | 1 +
14 dev-python/paste/paste-3.0.7.ebuild | 72 +++++++++++++++++++++++++++++++++++++
15 2 files changed, 73 insertions(+)
16
17 diff --git a/dev-python/paste/Manifest b/dev-python/paste/Manifest
18 index 8f60a664adb..6d88e672f4f 100644
19 --- a/dev-python/paste/Manifest
20 +++ b/dev-python/paste/Manifest
21 @@ -1 +1,2 @@
22 DIST Paste-2.0.3.tar.gz 643935 BLAKE2B 140f88cbab40728713a052e5aca0c7f14336d526a2c7bcd6a279fcdd13b14ed83938f69997182b43d2a83a76f51586c3b9132428f0f9c9e9ba08b6ff820827b9 SHA512 174b06d77bc6e1d4079e8de7df40412ffda098364efd4e3f915f858be1188c8a6fb546fe4ab981ccc067ec77b7171083b2469e7db6fc3b777d5a24151c928362
23 +DIST Paste-3.0.7.tar.gz 628999 BLAKE2B c91bb228fc2c36da1e7d487d521b9f57df19f4cb76731ec8ac17786aae087fe820760d19798a8da0ab6ce50f24b8a1fcb9d5189e6c48cffbda75ddfc9cf9f617 SHA512 adf823d208065b00a4bf1473e7550a1e0907d1da88000e87ea3a5dfb36f22c2bb33dda21ccf096da1512a0f2db2ad540a66efe751bbab8bfb49cd4ad456d5460
24
25 diff --git a/dev-python/paste/paste-3.0.7.ebuild b/dev-python/paste/paste-3.0.7.ebuild
26 new file mode 100644
27 index 00000000000..0191f718b00
28 --- /dev/null
29 +++ b/dev-python/paste/paste-3.0.7.ebuild
30 @@ -0,0 +1,72 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
36 +
37 +inherit distutils-r1
38 +
39 +MY_PN="Paste"
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +DESCRIPTION="Tools for using a Web Server Gateway Interface stack"
43 +HOMEPAGE="https://pypi.org/project/Paste/"
44 +SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
45 +
46 +LICENSE="MIT"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris"
49 +IUSE="doc flup openid"
50 +
51 +RDEPEND="dev-python/namespace-paste[${PYTHON_USEDEP}]
52 + >=dev-python/six-1.4.0[${PYTHON_USEDEP}]
53 + >=dev-python/tempita-0.5.2_pre20130828[${PYTHON_USEDEP}]
54 + flup? ( dev-python/flup[$(python_gen_usedep 'python2*')] )
55 + openid? ( dev-python/python-openid[$(python_gen_usedep 'python2*')] )"
56 +DEPEND="${RDEPEND}
57 + dev-python/setuptools[${PYTHON_USEDEP}]
58 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )"
59 +
60 +S="${WORKDIR}/${MY_P}"
61 +
62 +python_prepare_all() {
63 + # Disable failing tests.
64 + rm -f tests/test_cgiapp.py || die
65 + sed \
66 + -e "s/test_find_file/_&/" \
67 + -e "s/test_deep/_&/" \
68 + -e "s/test_static_parser/_&/" \
69 + -i tests/test_urlparser.py || die "sed failed"
70 +
71 + # Remove a test that runs against the paste website.
72 + rm -f tests/test_proxy.py || die
73 +
74 + local PATCHES=(
75 + "${FILESDIR}"/${PN}-2.0.3-unbundle-tempita.patch
76 + )
77 +
78 + distutils-r1_python_prepare_all
79 +}
80 +
81 +python_compile() {
82 + distutils-r1_python_compile egg_info --egg-base "${BUILD_DIR}/lib"
83 +}
84 +
85 +python_compile_all() {
86 + use doc && esetup.py build_sphinx
87 +}
88 +
89 +python_test() {
90 + nosetests -P -v || die "Tests fail with ${EPYTHON}"
91 +}
92 +
93 +python_install() {
94 + distutils-r1_python_install egg_info --egg-base "${BUILD_DIR}/lib"
95 +}
96 +
97 +python_install_all() {
98 + use doc && local HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
99 + distutils-r1_python_install_all
100 +
101 + find "${D}" -name '*.pth' -delete || die
102 +}