Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/almost/files/, dev-python/almost/
Date: Fri, 02 Jul 2021 22:36:20
Message-Id: 1625265372.849c2e0b32b97fcc4be60725f2ac081d6d03ac10.Alessandro-Barbieri@gentoo
1 commit: 849c2e0b32b97fcc4be60725f2ac081d6d03ac10
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 2 22:35:44 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Fri Jul 2 22:36:12 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=849c2e0b
7
8 dev-python/almost: ebuild maintenance
9
10 Closes: https://bugs.gentoo.org/800082
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
13
14 dev-python/almost/almost-0.1.5.ebuild | 23 ++++++++--------------
15 .../almost/files/almost-0.1.5-setuptools.patch | 11 +++++++++++
16 2 files changed, 19 insertions(+), 15 deletions(-)
17
18 diff --git a/dev-python/almost/almost-0.1.5.ebuild b/dev-python/almost/almost-0.1.5.ebuild
19 index fc2bfd527..09e1e2cc7 100644
20 --- a/dev-python/almost/almost-0.1.5.ebuild
21 +++ b/dev-python/almost/almost-0.1.5.ebuild
22 @@ -1,37 +1,30 @@
23 -# Copyright 1999-2020 Gentoo Authors
24 +# Copyright 1999-2021 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 -EAPI="7"
28 +EAPI="8"
29
30 -PYTHON_COMPAT=( python3_{7,8} pypy3 )
31 +COMMIT="cc3eeb0abde7ff95a222d571443989c74a112ff7"
32 +DISTUTILS_USE_SETUPTOOLS=rdepend
33 +PYTHON_COMPAT=( python3_{8..10} pypy3 )
34
35 inherit distutils-r1
36
37 -COMMIT="cc3eeb0abde7ff95a222d571443989c74a112ff7"
38 -
39 DESCRIPTION="A helper for approximate comparison"
40 HOMEPAGE="
41 https://github.com/sublee/almost
42 https://pypi.org/project/almost
43 "
44 SRC_URI="https://github.com/sublee/almost/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
45 +S="${WORKDIR}/${PN}-${COMMIT}"
46
47 SLOT="0"
48 LICENSE="BSD"
49 KEYWORDS="~amd64"
50 -
51 IUSE="test"
52 -RESTRICT="!test? ( test )"
53
54 -RDEPEND=""
55 DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
56
57 -S="${WORKDIR}/${PN}-${COMMIT}"
58 +RESTRICT="!test? ( test )"
59 +PATCHES=( "${FILESDIR}/${P}-setuptools.patch" )
60
61 -#no tests in pypi tarball
62 distutils_enable_tests setup.py
63 -
64 -src_prepare() {
65 - sed -i "s|distribute|setuptools|" setup.py || die
66 - default
67 -}
68
69 diff --git a/dev-python/almost/files/almost-0.1.5-setuptools.patch b/dev-python/almost/files/almost-0.1.5-setuptools.patch
70 new file mode 100644
71 index 000000000..fc87ec01f
72 --- /dev/null
73 +++ b/dev-python/almost/files/almost-0.1.5-setuptools.patch
74 @@ -0,0 +1,11 @@
75 +--- a/setup.py
76 ++++ b/setup.py
77 +@@ -82,7 +82,7 @@
78 + 'Programming Language :: Python :: Implementation :: Jython',
79 + 'Programming Language :: Python :: Implementation :: PyPy',
80 + 'Topic :: Software Development :: Testing'],
81 +- install_requires=['distribute'],
82 ++ install_requires=['setuptools'],
83 + test_suite='almosttests',
84 + tests_require=['pytest'],
85 + )