From: | "Michał Górny" <mgorny@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] repo/gentoo:master commit in: dev-python/uncertainties/ |
Date: | Sat, 31 Dec 2022 15:28:00 |
Message-Id: | 1672500472.7a29df58c88ed6a7e1e8dbad00d481c3dbe25974.mgorny@gentoo |
1 | commit: 7a29df58c88ed6a7e1e8dbad00d481c3dbe25974 |
2 | Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 | AuthorDate: Sat Dec 31 15:24:11 2022 +0000 |
4 | Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 | CommitDate: Sat Dec 31 15:27:52 2022 +0000 |
6 | URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a29df58 |
7 | |
8 | dev-python/uncertainties: Strip the dep on dev-python/future |
9 | |
10 | Closes: https://bugs.gentoo.org/888285 |
11 | See-Also: https://github.com/lebigot/uncertainties/pull/168a |
12 | Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
13 | |
14 | ...es-3.1.7.ebuild => uncertainties-3.1.7-r1.ebuild} | 20 ++++++++++++++++---- |
15 | 1 file changed, 16 insertions(+), 4 deletions(-) |
16 | |
17 | diff --git a/dev-python/uncertainties/uncertainties-3.1.7.ebuild b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild |
18 | similarity index 60% |
19 | rename from dev-python/uncertainties/uncertainties-3.1.7.ebuild |
20 | rename to dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild |
21 | index c7f85704f3f1..93177ac576f4 100644 |
22 | --- a/dev-python/uncertainties/uncertainties-3.1.7.ebuild |
23 | +++ b/dev-python/uncertainties/uncertainties-3.1.7-r1.ebuild |
24 | @@ -5,24 +5,36 @@ EAPI=8 |
25 | |
26 | DISTUTILS_USE_PEP517=setuptools |
27 | PYTHON_COMPAT=( python3_{8..11} ) |
28 | + |
29 | inherit distutils-r1 optfeature |
30 | |
31 | DESCRIPTION="Python module for calculations with uncertainties" |
32 | -HOMEPAGE="https://pythonhosted.org/uncertainties/" |
33 | +HOMEPAGE=" |
34 | + https://pythonhosted.org/uncertainties/ |
35 | + https://github.com/lebigot/uncertainties/ |
36 | + https://pypi.org/project/uncertainties/ |
37 | +" |
38 | SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
39 | |
40 | LICENSE="BSD" |
41 | SLOT="0" |
42 | KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
43 | |
44 | -RDEPEND="dev-python/future[${PYTHON_USEDEP}]" |
45 | -BDEPEND="${RDEPEND} |
46 | - test? ( dev-python/numpy[${PYTHON_USEDEP}] ) |
47 | +BDEPEND=" |
48 | + test? ( |
49 | + dev-python/numpy[${PYTHON_USEDEP}] |
50 | + ) |
51 | " |
52 | |
53 | distutils_enable_tests pytest |
54 | distutils_enable_sphinx doc --no-autodoc |
55 | |
56 | +src_prepare() { |
57 | + # not used in py3, see https://github.com/lebigot/uncertainties/pull/168 |
58 | + sed -i -e '/future/d' setup.py || die |
59 | + distutils-r1_src_prepare |
60 | +} |
61 | + |
62 | pkg_postinst() { |
63 | optfeature "numpy support" dev-python/numpy |
64 | } |