diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-02-14 09:47:40 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-02-14 09:48:17 +0100 |
commit | cfd6bfb0f116168185e6e376c67780d80bc0fd8c (patch) | |
tree | 25d8c6a2a20120a3d677ae793347fb910371e17d /dev-python/tinycss2 | |
parent | www-client/chromium: beta channel bump to 89.0.4389.47 (diff) | |
download | gentoo-cfd6bfb0f116168185e6e376c67780d80bc0fd8c.tar.gz gentoo-cfd6bfb0f116168185e6e376c67780d80bc0fd8c.tar.bz2 gentoo-cfd6bfb0f116168185e6e376c67780d80bc0fd8c.zip |
dev-python/tinycss2: Fetch tests only w/ USE=test
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/tinycss2')
-rw-r--r-- | dev-python/tinycss2/tinycss2-1.1.0.ebuild | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dev-python/tinycss2/tinycss2-1.1.0.ebuild b/dev-python/tinycss2/tinycss2-1.1.0.ebuild index 645b168f8b72..cd49f3098627 100644 --- a/dev-python/tinycss2/tinycss2-1.1.0.ebuild +++ b/dev-python/tinycss2/tinycss2-1.1.0.ebuild @@ -16,8 +16,10 @@ HOMEPAGE="https://github.com/Kozea/tinycss2/ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" SRC_URI=" https://github.com/Kozea/tinycss2/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz - https://github.com/SimonSapin/css-parsing-tests/archive/${CSS_TEST_COMMIT_ID}.tar.gz - -> css-parsing-tests-${CSS_TEST_COMMIT_ID}.gh.tar.gz" + test? ( + https://github.com/SimonSapin/css-parsing-tests/archive/${CSS_TEST_COMMIT_ID}.tar.gz + -> css-parsing-tests-${CSS_TEST_COMMIT_ID}.gh.tar.gz + )" LICENSE="BSD" SLOT="0" @@ -29,7 +31,9 @@ distutils_enable_tests pytest src_prepare() { sed -i -e '/addopts/d' pyproject.toml || die - mv "${WORKDIR}/css-parsing-tests-${CSS_TEST_COMMIT_ID}"/* \ - tests/css-parsing-tests/ || die + if use test; then + mv "${WORKDIR}/css-parsing-tests-${CSS_TEST_COMMIT_ID}"/* \ + tests/css-parsing-tests/ || die + fi distutils-r1_src_prepare } |