From 9f3a96eb034a8bc53b515d047f3a8a3be98ce6a7 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sat, 15 Aug 2020 20:28:35 -0400 Subject: net-misc/gallery-dl: bump, add tests --- net-misc/gallery-dl/Manifest | 2 +- net-misc/gallery-dl/gallery-dl-1.14.3.ebuild | 31 ----------------- net-misc/gallery-dl/gallery-dl-1.14.4.ebuild | 51 ++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 32 deletions(-) delete mode 100644 net-misc/gallery-dl/gallery-dl-1.14.3.ebuild create mode 100644 net-misc/gallery-dl/gallery-dl-1.14.4.ebuild (limited to 'net-misc') diff --git a/net-misc/gallery-dl/Manifest b/net-misc/gallery-dl/Manifest index 08ed57f..29533b9 100644 --- a/net-misc/gallery-dl/Manifest +++ b/net-misc/gallery-dl/Manifest @@ -1 +1 @@ -DIST gallery_dl-1.14.3.tar.gz 312148 BLAKE2B cdecccc56ed9e777c5004f4f2d36b3ba43e54635a4bdad918973fb2bfb840800494d4ca9ba84235a2515541deb7152b7a77dac62077f2727a3fd156fa9903b20 SHA512 6fd06f6e88fc308140a0c4edf0d99a0e35d0ff68ff6f9db0a89d682e7774bbe57030b634096ff17b20ac07c5f1f6c5a0a06af099059ccc1880ea8bed068a12d2 +DIST gallery_dl-1.14.4.tar.gz 314594 BLAKE2B b86ad644c511aa1c722bcbffc773fc6234c98f2a0bdcca88ec66c3267adb4932f86d26236aab8ff503b2e149efb7b7a32c5622b96fde097010d35121427f9463 SHA512 19594112f44e4640f88df928a10ff5d263c294bbe2d6a7d063248eab563bb6426e5c0f7a45c5c5f0227e63dca46acc8321fb333cf7b83865bd90776752d7b93e diff --git a/net-misc/gallery-dl/gallery-dl-1.14.3.ebuild b/net-misc/gallery-dl/gallery-dl-1.14.3.ebuild deleted file mode 100644 index ee1629a..0000000 --- a/net-misc/gallery-dl/gallery-dl-1.14.3.ebuild +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 1999-2018 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="7" - -PYTHON_COMPAT=(python{3_6,3_7,3_8}) -PYTHON_REQ_USE=(sqlite) - -inherit distutils-r1 - -DESCRIPTION="Command-line program to download image-galleries and collections" -HOMEPAGE="https://github.com/mikf/gallery-dl" -SRC_URI="mirror://pypi/g/gallery_dl/gallery_dl-${PV}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" -IUSE="" - -RDEPEND=" - dev-python/requests[${PYTHON_USEDEP}] -" -DEPEND="${RDEPEND}" - -S="${WORKDIR}/gallery_dl-${PV}" - -python_install_all() { - dodoc README.rst - - distutils-r1_python_install_all -} diff --git a/net-misc/gallery-dl/gallery-dl-1.14.4.ebuild b/net-misc/gallery-dl/gallery-dl-1.14.4.ebuild new file mode 100644 index 0000000..0f26851 --- /dev/null +++ b/net-misc/gallery-dl/gallery-dl-1.14.4.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=(python{3_6,3_7,3_8,3_9}) +PYTHON_REQ_USE=(sqlite) + +inherit distutils-r1 + +DESCRIPTION="Command-line program to download image-galleries and collections" +HOMEPAGE="https://github.com/mikf/gallery-dl" +SRC_URI="mirror://pypi/g/gallery_dl/gallery_dl-${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x86-solaris" +IUSE="test" + +RDEPEND=" + dev-python/requests[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + ${RDEPEND} + dev-python/nose + ) +" + +S="${WORKDIR}/gallery_dl-${PV}" + +python_test() { + local noseargs=( + -v + + # requires network access + -I 'test_results\.py' + + # AssertionErrors? + -e test_expires_db + -e test_invalidate_db + -e test_update_db + ) + nosetests "${noseargs[@]}" || die +} + +python_install_all() { + dodoc README.rst + + distutils-r1_python_install_all +} -- cgit v1.2.3-70-g09d2