Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/scrapy/
Date: Sat, 28 Oct 2017 13:41:21
Message-Id: 1509198044.d1268374755277dfe0323d5cdef9e2b4f6234fd6.monsieurp@gentoo
1 commit: d1268374755277dfe0323d5cdef9e2b4f6234fd6
2 Author: Bob Brooks <gitbugged <AT> cool <DOT> fr <DOT> nf>
3 AuthorDate: Mon Oct 23 17:31:24 2017 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 28 13:40:44 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1268374
7
8 dev-python/scrapy: version bump to 1.4.0.
9
10 Bug: https://bugs.gentoo.org/626550
11 Closes: https://github.com/gentoo/gentoo/pull/6029
12
13 dev-python/scrapy/Manifest | 1 +
14 dev-python/scrapy/scrapy-1.4.0.ebuild | 80 +++++++++++++++++++++++++++++++++++
15 2 files changed, 81 insertions(+)
16
17 diff --git a/dev-python/scrapy/Manifest b/dev-python/scrapy/Manifest
18 index 2ed4b1c6d18..c20621c106f 100644
19 --- a/dev-python/scrapy/Manifest
20 +++ b/dev-python/scrapy/Manifest
21 @@ -1 +1,2 @@
22 DIST scrapy-1.0.3.tar.gz 1006911 SHA256 725eb5906b35076ad112b1b0ac27c68dd684e72514eddf95bc7ace64c04b2bb2 SHA512 bf61d449d7309de0ebdc36c73371d01518ee5cfa5d4ac1b68ee42389466ee15dba82690dbc885aa6bc1b9fe0b2e29a03fb3a3af3889842e1039e3a81749fc0c0 WHIRLPOOL 0dee3a82a0368f50420d484252d5d138c8a3bf8257715dad5d74419a7a852ef5d21aef5b52e9959f8f08d7dcdd58988221faff38d9a8d530406cfb83fbb031f9
23 +DIST scrapy-1.4.0.tar.gz 1114816 SHA256 7889790a5684ffeafe4389dd819e0e700ea34cf067bd36a06c2e05ad4adc7b03 SHA512 1442cae1a26b5c7c8c27998ec6ef9ab374111221180a5933d53aff0c7aeb31102882c387581c1455c1dd246e11f0c0f5ab5989a21037204e5314054e303f7312 WHIRLPOOL 32e7fa565716657072faa817de7e9f1d01e2599dcb3861664ea960097dc78b7bc5bf3a410703eb4ad6995ded3568c2e394b4b8201ed84751cc1ecc88c8ad73a2
24
25 diff --git a/dev-python/scrapy/scrapy-1.4.0.ebuild b/dev-python/scrapy/scrapy-1.4.0.ebuild
26 new file mode 100644
27 index 00000000000..e26e409f3d1
28 --- /dev/null
29 +++ b/dev-python/scrapy/scrapy-1.4.0.ebuild
30 @@ -0,0 +1,80 @@
31 +# Copyright 1999-2015 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} )
37 +PYTHON_REQ_USE="sqlite(+)"
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A high-level Python Screen Scraping framework"
42 +HOMEPAGE="https://github.com/scrapy/scrapy/ https://pypi.python.org/pypi/Scrapy/"
43 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="BSD-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +IUSE="boto doc ibl test ssl"
49 +
50 +RDEPEND="
51 + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
52 + dev-libs/libxml2[python,${PYTHON_USEDEP}]
53 + dev-python/pillow[${PYTHON_USEDEP}]
54 + >=dev-python/parsel-1.1.0[${PYTHON_USEDEP}]
55 + >=dev-python/lxml-3.4[${PYTHON_USEDEP}]
56 + ibl? ( dev-python/numpy[${PYTHON_USEDEP}] )
57 + ssl? (
58 + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}]
59 + dev-python/cryptography[${PYTHON_USEDEP}] )
60 + boto? ( dev-python/boto3[${PYTHON_USEDEP}] )
61 + >=dev-python/twisted-14.0[${PYTHON_USEDEP}]
62 + >=dev-python/w3lib-1.8.0[${PYTHON_USEDEP}]
63 + dev-python/queuelib[${PYTHON_USEDEP}]
64 + >=dev-python/cssselect-0.9[${PYTHON_USEDEP}]
65 + >=dev-python/six-1.5.2[${PYTHON_USEDEP}]
66 + dev-python/service_identity[${PYTHON_USEDEP}]
67 + "
68 +DEPEND="
69 + dev-python/setuptools[${PYTHON_USEDEP}]
70 + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
71 + test? ( ${RDEPEND}
72 + dev-python/mock[${PYTHON_USEDEP}]
73 + =net-proxy/mitmproxy-0.10.1[${PYTHON_USEDEP}]
74 + =dev-python/netlib-0.10.1[${PYTHON_USEDEP}]
75 + dev-python/jmespath[${PYTHON_USEDEP}]
76 + dev-python/testfixtures[${PYTHON_USEDEP}]
77 + net-ftp/vsftpd
78 + )"
79 +# pytest-twisted listed as a test dep but not in portage.
80 +# Testsuite currently survives without it, so appears optional
81 +
82 +REQUIRED_USE="test? ( ssl boto )"
83 +
84 +python_prepare_all() {
85 + # https://github.com/scrapy/scrapy/issues/1464
86 + # Disable failing tests known to pass according to upstream
87 + # Awaiting a fix planned by package owner.
88 + sed -e 's:test_https_connect_tunnel:_&:' \
89 + -e 's:test_https_connect_tunnel_error:_&:' \
90 + -e 's:test_https_tunnel_auth_error:_&:' \
91 + -e 's:test_https_tunnel_without_leak_proxy_authorization_header:_&:' \
92 + -i tests/test_proxy_connect.py || die
93 +
94 + distutils-r1_python_prepare_all
95 +}
96 +
97 +python_compile_all() {
98 + if use doc; then
99 + PYTHONPATH="${S}" emake -C docs html || die "emake html failed"
100 + fi
101 +}
102 +
103 +python_test() {
104 + py.test ${PN} tests || die "tests failed"
105 +}
106 +
107 +python_install_all() {
108 + use doc && local HTML_DOCS=( docs/build/html/. )
109 + distutils-r1_python_install_all
110 +}