mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-python/almost: ebuild maintenance
Closes: https://bugs.gentoo.org/800082 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
PYTHON_COMPAT=( python3_{7,8} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
EAPI="8"
|
||||
|
||||
COMMIT="cc3eeb0abde7ff95a222d571443989c74a112ff7"
|
||||
DISTUTILS_USE_SETUPTOOLS=rdepend
|
||||
PYTHON_COMPAT=( python3_{8..10} pypy3 )
|
||||
|
||||
inherit distutils-r1
|
||||
|
||||
DESCRIPTION="A helper for approximate comparison"
|
||||
HOMEPAGE="
|
||||
@@ -15,23 +15,16 @@ HOMEPAGE="
|
||||
https://pypi.org/project/almost
|
||||
"
|
||||
SRC_URI="https://github.com/sublee/almost/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
|
||||
SLOT="0"
|
||||
LICENSE="BSD"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND=""
|
||||
DEPEND="test? ( dev-python/pytest[${PYTHON_USEDEP}] )"
|
||||
|
||||
S="${WORKDIR}/${PN}-${COMMIT}"
|
||||
RESTRICT="!test? ( test )"
|
||||
PATCHES=( "${FILESDIR}/${P}-setuptools.patch" )
|
||||
|
||||
#no tests in pypi tarball
|
||||
distutils_enable_tests setup.py
|
||||
|
||||
src_prepare() {
|
||||
sed -i "s|distribute|setuptools|" setup.py || die
|
||||
default
|
||||
}
|
||||
|
||||
11
dev-python/almost/files/almost-0.1.5-setuptools.patch
Normal file
11
dev-python/almost/files/almost-0.1.5-setuptools.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -82,7 +82,7 @@
|
||||
'Programming Language :: Python :: Implementation :: Jython',
|
||||
'Programming Language :: Python :: Implementation :: PyPy',
|
||||
'Topic :: Software Development :: Testing'],
|
||||
- install_requires=['distribute'],
|
||||
+ install_requires=['setuptools'],
|
||||
test_suite='almosttests',
|
||||
tests_require=['pytest'],
|
||||
)
|
||||
Reference in New Issue
Block a user