Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/webassets/
Date: Tue, 10 Mar 2020 18:32:21
Message-Id: 1583865132.9e7cbcc6589286b4c6fb7cadd78f89e4e5220d3d.mgorny@gentoo
1 commit: 9e7cbcc6589286b4c6fb7cadd78f89e4e5220d3d
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 10 17:43:12 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 10 18:32:12 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e7cbcc6
7
8 dev-python/webassets: Bump to 2.0, py3.{7,8}
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/webassets/Manifest | 1 +
13 dev-python/webassets/webassets-2.0.ebuild | 41 +++++++++++++++++++++++++++++++
14 2 files changed, 42 insertions(+)
15
16 diff --git a/dev-python/webassets/Manifest b/dev-python/webassets/Manifest
17 index 871a8057675..1520f131cb5 100644
18 --- a/dev-python/webassets/Manifest
19 +++ b/dev-python/webassets/Manifest
20 @@ -1 +1,2 @@
21 DIST webassets-0.12.1.tar.gz 181402 BLAKE2B 907a4184e0274a9543bda2b7c2fdfeabef346b0920d98e04abbfb3b9858ecae3c0da32b65efe8e4b52d82ab938e182e2e37f005ba25afb1d62235dcc5bc9bee7 SHA512 1e65956afc63dd4bbf43b3b7e220ec6edb8d69d817c6361de67bf8fc7a90b34d3f7e4d0bae4cc45cb3fc043802d2e5d5c8a7cc87421186000212a36605fbc26e
22 +DIST webassets-2.0.tar.gz 185864 BLAKE2B 8aaa7091c27644c6c464d13d106218e28531415458e67696c0243943a92a3869e23c7ff0aa8461abb876a178e3ad44f4b47a5366edb885d308dd8ec0f17ad034 SHA512 6d62d4e5c1ed81a2d235c24776b632574f3670ae3d863c5f5a79d0e1afc7acfa7965e532b7975503df758dbe6c8dbd857b250a6ea8e4b414c8f1ae12fb8addd7
23
24 diff --git a/dev-python/webassets/webassets-2.0.ebuild b/dev-python/webassets/webassets-2.0.ebuild
25 new file mode 100644
26 index 00000000000..5da3b13d94b
27 --- /dev/null
28 +++ b/dev-python/webassets/webassets-2.0.ebuild
29 @@ -0,0 +1,41 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +
35 +DISTUTILS_USE_SETUPTOOLS=rdepend
36 +PYTHON_COMPAT=( python3_{6,7,8} )
37 +
38 +inherit distutils-r1
39 +
40 +DESCRIPTION="Asset management for Python web development"
41 +HOMEPAGE="https://github.com/miracle2k/webassets"
42 +SRC_URI="https://github.com/miracle2k/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +# ^^ pypi tarball is missing tests
44 +
45 +LICENSE="BSD-2"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
48 +
49 +# dev-ruby/sass confuses the tests, they expect 'sass' as the reference
50 +# compiler
51 +BDEPEND="
52 + test? (
53 + dev-python/nose[${PYTHON_USEDEP}]
54 + dev-python/mock[${PYTHON_USEDEP}]
55 + !!dev-ruby/sass
56 + )"
57 +
58 +distutils_enable_tests pytest
59 +
60 +python_prepare_all() {
61 + # webassets wants /usr/bin/babel from babeljs,
62 + # but we have only one from openbabel
63 + # ... and we don't have postcss
64 + sed -i \
65 + -e 's|\(TestBabel\)|No\1|' \
66 + -e 's|\(TestAutoprefixer6Filter\)|No\1|' \
67 + tests/test_filters.py || die
68 +
69 + distutils-r1_python_prepare_all
70 +}