From a5b6a4b724e1bfb52fbe8b856895ae924e1b442f Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 5 Oct 2021 20:27:02 +0000 Subject: Adding metadata --- dev-python/scrapy/Manifest | 2 +- dev-python/scrapy/scrapy-2.4.1.ebuild | 88 ----------------------------------- dev-python/scrapy/scrapy-2.5.1.ebuild | 87 ++++++++++++++++++++++++++++++++++ 3 files changed, 88 insertions(+), 89 deletions(-) delete mode 100644 dev-python/scrapy/scrapy-2.4.1.ebuild create mode 100644 dev-python/scrapy/scrapy-2.5.1.ebuild (limited to 'dev-python') diff --git a/dev-python/scrapy/Manifest b/dev-python/scrapy/Manifest index 9569102b4c5b..6b5d4df86693 100644 --- a/dev-python/scrapy/Manifest +++ b/dev-python/scrapy/Manifest @@ -1,2 +1,2 @@ -DIST scrapy-2.4.1.tar.gz 1248020 BLAKE2B de1827d0764adf834822236b094a9e998d8f55568ada578eedf4360125b747fc86accd20833a0a6f810e1219b9c7c0febf39c64a6d7c5023348f68319c559344 SHA512 639a281ff0f20c51ab4be20e1935a171d06c4ba4b4d4340023cc4ad583266b63ad93d8efeec8bf5ee65ddfb1a72092957c61b3444bc67da4049f6f8102a57d3c DIST scrapy-2.5.0.tar.gz 1275813 BLAKE2B b923a03bd567fad679fd256c971303b40611bec15024faf7539606ea1a31052678d741b2f0e2d7fb66c91c18c37a2c9737c1511e7dd97673a39da8a0f635cbfb SHA512 01a5ab605ba6783567147b7ca8c0dd963266aeb63e8eac19e962ee5d6dda85052c23a4d161ab69f130925b8a6f271ffbc28784a8f7fc0216428b5579eaad47b6 +DIST scrapy-2.5.1.tar.gz 1276985 BLAKE2B 7e4a43391a8dd4f641d188c7a89d26d52bc51aae3eb8340e02c9de2477bc6458f80b3a8ba16f6a17a9ec1debb85fe558fb7c1c48358fd923e02864758ea75fa5 SHA512 4285272412b4c474707e864ece701990435d206b0a1ef28cb9f99cff87a02e6b0323e744e96f15878a3b433a7efe4be413d24068bb252f00f9ab1b0a980d844a diff --git a/dev-python/scrapy/scrapy-2.4.1.ebuild b/dev-python/scrapy/scrapy-2.4.1.ebuild deleted file mode 100644 index 39faf7b9d487..000000000000 --- a/dev-python/scrapy/scrapy-2.4.1.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 2020-2021 by Liguros authors -# Distributed under the terms of the GNU General Public License v2 -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit distutils-r1 - -DESCRIPTION="A high-level Web Crawling and Web Scraping framework" -HOMEPAGE="https://scrapy.org/" -SRC_URI="https://github.com/scrapy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" - - -KEYWORDS="~amd64 ~x86" -LICENSE="BSD-2" -SLOT="0" -IUSE="boto doc ibl -test ssl" - -RDEPEND=" - >=dev-python/six-1.5.2[${PYTHON_USEDEP}] - dev-libs/libxml2[python,${PYTHON_USEDEP}] - dev-python/pillow[${PYTHON_USEDEP}] - >=dev-python/parsel-1.5[${PYTHON_USEDEP}] - >=dev-python/lxml-3.4[${PYTHON_USEDEP}] - >=dev-python/pydispatcher-2.0.5[${PYTHON_USEDEP}] - ibl? ( dev-python/numpy[${PYTHON_USEDEP}] ) - ssl? ( - >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] - dev-python/cryptography[${PYTHON_USEDEP}] - ) - boto? ( dev-python/boto3[${PYTHON_USEDEP}] ) - >=dev-python/twisted-17.9[${PYTHON_USEDEP}] - >=dev-python/w3lib-1.17.0[${PYTHON_USEDEP}] - >=dev-python/queuelib-1.1.1[${PYTHON_USEDEP}] - >=dev-python/cssselect-0.9[${PYTHON_USEDEP}] - >=dev-python/six-1.5.2[${PYTHON_USEDEP}] - dev-python/service_identity[${PYTHON_USEDEP}] - $(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7) - " - -DEPEND=" - ${RDEPEND} - dev-python/setuptools[${PYTHON_USEDEP}] - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) - test? ( - dev-python/mock[${PYTHON_USEDEP}] - =net-proxy/mitmproxy-0.10.1[${PYTHON_USEDEP}] - =dev-python/netlib-0.10.1[${PYTHON_USEDEP}] - dev-python/jmespath[${PYTHON_USEDEP}] - dev-python/testfixtures[${PYTHON_USEDEP}] - net-ftp/vsftpd - ) -" - -# pytest-twisted listed as a test dep but not in portage. -# Testsuite currently survives without it, so appears optional - -REQUIRED_USE="test? ( ssl boto )" - -python_prepare_all() { - sed -e "s/PyDispatcher/PyPyDispatcher/g" -i setup.py || die - - # https://github.com/scrapy/scrapy/issues/1464 - # Disable failing tests known to pass according to upstream - # Awaiting a fix planned by package owner. - sed -e 's:test_https_connect_tunnel:_&:' \ - -e 's:test_https_connect_tunnel_error:_&:' \ - -e 's:test_https_tunnel_auth_error:_&:' \ - -e 's:test_https_tunnel_without_leak_proxy_authorization_header:_&:' \ - -i tests/test_proxy_connect.py || die - - distutils-r1_python_prepare_all -} - -python_compile_all() { - if use doc; then - PYTHONPATH="${S}" emake -C docs html || die "emake html failed" - fi -} - -python_test() { - py.test ${PN} tests || die "tests failed" -} - -python_install_all() { - use doc && local HTML_DOCS=( docs/build/html/. ) - distutils-r1_python_install_all -} diff --git a/dev-python/scrapy/scrapy-2.5.1.ebuild b/dev-python/scrapy/scrapy-2.5.1.ebuild new file mode 100644 index 000000000000..84cdea3ae958 --- /dev/null +++ b/dev-python/scrapy/scrapy-2.5.1.ebuild @@ -0,0 +1,87 @@ +# Copyright 2020-2021 by Liguros authors +# Distributed under the terms of the GNU General Public License v2 +EAPI=8 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit distutils-r1 + +DESCRIPTION="A high-level Web Crawling and Web Scraping framework" +HOMEPAGE="https://scrapy.org/" +SRC_URI="https://github.com/scrapy/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="BSD-2" +SLOT="0" +IUSE="boto doc ibl -test ssl" + +RDEPEND=" + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + dev-libs/libxml2[python,${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + >=dev-python/parsel-1.5[${PYTHON_USEDEP}] + >=dev-python/lxml-3.4[${PYTHON_USEDEP}] + >=dev-python/pydispatcher-2.0.5[${PYTHON_USEDEP}] + ibl? ( dev-python/numpy[${PYTHON_USEDEP}] ) + ssl? ( + >=dev-python/pyopenssl-0.14[${PYTHON_USEDEP}] + dev-python/cryptography[${PYTHON_USEDEP}] + ) + boto? ( dev-python/boto3[${PYTHON_USEDEP}] ) + >=dev-python/twisted-17.9[${PYTHON_USEDEP}] + >=dev-python/w3lib-1.17.0[${PYTHON_USEDEP}] + >=dev-python/queuelib-1.1.1[${PYTHON_USEDEP}] + >=dev-python/cssselect-0.9[${PYTHON_USEDEP}] + >=dev-python/six-1.5.2[${PYTHON_USEDEP}] + dev-python/service_identity[${PYTHON_USEDEP}] + $(python_gen_cond_dep 'dev-python/functools32[${PYTHON_USEDEP}]' python2_7) + " + +DEPEND=" + ${RDEPEND} + dev-python/setuptools[${PYTHON_USEDEP}] + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( + dev-python/mock[${PYTHON_USEDEP}] + =net-proxy/mitmproxy-0.10.1[${PYTHON_USEDEP}] + =dev-python/netlib-0.10.1[${PYTHON_USEDEP}] + dev-python/jmespath[${PYTHON_USEDEP}] + dev-python/testfixtures[${PYTHON_USEDEP}] + net-ftp/vsftpd + ) +" + +# pytest-twisted listed as a test dep but not in portage. +# Testsuite currently survives without it, so appears optional + +REQUIRED_USE="test? ( ssl boto )" + +python_prepare_all() { + sed -e "s/PyDispatcher/PyPyDispatcher/g" -i setup.py || die + + # https://github.com/scrapy/scrapy/issues/1464 + # Disable failing tests known to pass according to upstream + # Awaiting a fix planned by package owner. + sed -e 's:test_https_connect_tunnel:_&:' \ + -e 's:test_https_connect_tunnel_error:_&:' \ + -e 's:test_https_tunnel_auth_error:_&:' \ + -e 's:test_https_tunnel_without_leak_proxy_authorization_header:_&:' \ + -i tests/test_proxy_connect.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + if use doc; then + PYTHONPATH="${S}" emake -C docs html || die "emake html failed" + fi +} + +python_test() { + py.test ${PN} tests || die "tests failed" +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/build/html/. ) + distutils-r1_python_install_all +} -- cgit v1.3