Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/tinycss/
Date: Mon, 16 May 2022 18:58:20
Message-Id: 1652727485.2185987149866efe87dd2297d8e9f6029457d1a6.arthurzam@gentoo
1 commit: 2185987149866efe87dd2297d8e9f6029457d1a6
2 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 16 18:46:27 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 16 18:58:05 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=21859871
7
8 dev-python/tinycss: EAPI=8, PEP517
9
10 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
11
12 dev-python/tinycss/tinycss-0.4-r1.ebuild | 35 ++++++++++++++++++++++++++++++++
13 1 file changed, 35 insertions(+)
14
15 diff --git a/dev-python/tinycss/tinycss-0.4-r1.ebuild b/dev-python/tinycss/tinycss-0.4-r1.ebuild
16 new file mode 100644
17 index 000000000000..0b65a57ee7c2
18 --- /dev/null
19 +++ b/dev-python/tinycss/tinycss-0.4-r1.ebuild
20 @@ -0,0 +1,35 @@
21 +# Copyright 1999-2022 Gentoo Authors
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=8
25 +
26 +DISTUTILS_USE_PEP517=setuptools
27 +PYTHON_COMPAT=( python3_{8..10} )
28 +
29 +inherit distutils-r1
30 +
31 +DESCRIPTION="A complete yet simple CSS parser for Python"
32 +HOMEPAGE="https://github.com/SimonSapin/tinycss/
33 + https://tinycss.readthedocs.io/en/latest/"
34 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
35 +
36 +LICENSE="BSD"
37 +SLOT="0"
38 +KEYWORDS="~amd64 ~x86"
39 +
40 +RDEPEND="dev-python/lxml[${PYTHON_USEDEP}]"
41 +
42 +DOCS=( CHANGES README.rst )
43 +
44 +distutils_enable_tests pytest
45 +distutils_enable_sphinx docs
46 +
47 +python_prepare_all() {
48 + rm setup.cfg || die
49 + distutils-r1_python_prepare_all
50 +}
51 +
52 +python_test() {
53 + export TINYCSS_SKIP_SPEEDUPS_TESTS=1
54 + epytest ${PN}/tests/test_*.py
55 +}