app-misc/python-dice: new package ahead of gentoo main
Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
parent
87853a77b4
commit
b0d778a6d1
@ -1,3 +1,9 @@
|
|||||||
|
*python-dice-3.1.0 (17 Dec 2019)
|
||||||
|
|
||||||
|
17 Dec 2019; <chymera@gentoo.org> +python-dice-3.1.0.ebuild,
|
||||||
|
-python-dice-2.4.2.ebuild, -python-dice-3.0.0.ebuild:
|
||||||
|
app-misc/python-dice: new package ahead of gentoo main
|
||||||
|
|
||||||
*python-dice-3.0.0 (06 Dec 2019)
|
*python-dice-3.0.0 (06 Dec 2019)
|
||||||
|
|
||||||
06 Dec 2019; <chymera@gentoo.org> +python-dice-3.0.0.ebuild:
|
06 Dec 2019; <chymera@gentoo.org> +python-dice-3.0.0.ebuild:
|
||||||
|
@ -1,2 +1 @@
|
|||||||
DIST python-dice-2.4.2.tar.gz 18922 SHA256 f7738436cfc8976bc5e61809bfb5c6a910d892601d46042a91c314a3b6a98f29 SHA512 821171d762deecf1b5a9cd9be20207c923a0ff37f35b3de339127e69ef588c9a63ad5d4680f286c3415ad130f4e156cd1c31135285fd00153f6ee6ba55ea01da WHIRLPOOL 5295b60214d439f2215880c54eade25ac907bd240986d25907e4439578bf3aadcb0dff02ea1cb1a2ff1b2d6d3a4610d87625bb2212db6ce7ccb8042b8742d3af
|
DIST python-dice-3.1.0.tar.gz 23510 SHA256 f28a497fd59ffb44cb3c957445feff9677ba4768e8d784cf080986f20fa0d56d SHA512 121ab7d09b2b7b799f0894ee0ab2ee45b7ebc3c8f721849cdefe5c8f7bb6bb07560dd9af009d03a0ac8a40da7dd106f593bd884fc20f4e899da67ce08e46b705 WHIRLPOOL 047ce6cb95afa800324144ed970bcab407c3486fbecaab5881430bea968df18b84ed22767cd5a756796b61084c6dc4c1a304abc587101258297cecf25103d3a1
|
||||||
DIST python-dice-3.0.0.tar.gz 23514 SHA256 eacd7d0c044d1b0f88ec6d33625952e594c900b7ebea6329058461cdad64bcf6 SHA512 181a0fc9057052e252bac817f7e076a9367cf74537de7182d5842804498f43c0e7a69b65975bbee03c9de340fd05d712fabb5207df5c7dae1faf4717912741dd WHIRLPOOL 1b86068d02807672c1d79c4f8274f723d5ba98c40170e27140abde80802b393ba447d3fc08a9c268ed2fd6deaa45a6c9d18902abda2ba74eb869cf79b9c4d0b4
|
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
# Copyright 1999-2019 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=7
|
|
||||||
|
|
||||||
PYTHON_COMPAT=( python3_6 )
|
|
||||||
|
|
||||||
inherit distutils-r1
|
|
||||||
|
|
||||||
DESCRIPTION="Dice parsing and evaluation library"
|
|
||||||
HOMEPAGE="https://github.com/borntyping/python-dice"
|
|
||||||
SRC_URI="https://github.com/borntyping/python-dice/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
||||||
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~amd64"
|
|
||||||
IUSE="test"
|
|
||||||
RESTRICT="test"
|
|
||||||
# Tests do not run, which may be an upstream issue:
|
|
||||||
# https://github.com/borntyping/python-dice/issues/25
|
|
||||||
|
|
||||||
DEPEND="test? (
|
|
||||||
dev-python/coverage[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pyflakes[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-flakes[${PYTHON_USEDEP}]
|
|
||||||
dev-python/pytest-pep8[${PYTHON_USEDEP}]
|
|
||||||
dev-python/termcolor[${PYTHON_USEDEP}]
|
|
||||||
dev-python/tox[${PYTHON_USEDEP}]
|
|
||||||
)
|
|
||||||
"
|
|
||||||
RDEPEND="
|
|
||||||
dev-python/docopt[${PYTHON_USEDEP}]
|
|
||||||
>=dev-python/pyparsing-2.4.1[${PYTHON_USEDEP}]
|
|
||||||
"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use test; then
|
|
||||||
sed -i -e "s/pytest<3.7.0/pytest/g" tox.ini
|
|
||||||
fi
|
|
||||||
default
|
|
||||||
}
|
|
||||||
|
|
||||||
python_test() {
|
|
||||||
#pytest -vv || die
|
|
||||||
tox || die "tests failed under ${EPYTHON}"
|
|
||||||
}
|
|
@ -19,10 +19,8 @@ IUSE="test"
|
|||||||
DEPEND="test? (
|
DEPEND="test? (
|
||||||
dev-python/coverage[${PYTHON_USEDEP}]
|
dev-python/coverage[${PYTHON_USEDEP}]
|
||||||
dev-python/pytest[${PYTHON_USEDEP}]
|
dev-python/pytest[${PYTHON_USEDEP}]
|
||||||
dev-python/pytest-cov[${PYTHON_USEDEP}]
|
|
||||||
)
|
)
|
||||||
"
|
"
|
||||||
#dev-python/tox[${PYTHON_USEDEP}]
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-python/docopt[${PYTHON_USEDEP}]
|
dev-python/docopt[${PYTHON_USEDEP}]
|
||||||
>=dev-python/pyparsing-2.4.1[${PYTHON_USEDEP}]
|
>=dev-python/pyparsing-2.4.1[${PYTHON_USEDEP}]
|
||||||
@ -30,12 +28,11 @@ RDEPEND="
|
|||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
if use test; then
|
if use test; then
|
||||||
sed -i -e "s/pytest<3.7.0/pytest/g" tox.ini
|
sed -i -e "s/--cov=dice //g" tox.ini || die "Could not remove pytest-cov usage for tests."
|
||||||
fi
|
fi
|
||||||
default
|
default
|
||||||
}
|
}
|
||||||
|
|
||||||
python_test() {
|
python_test() {
|
||||||
pytest -vv || die
|
pytest -vv || die
|
||||||
#tox || die "tests failed under ${EPYTHON}"
|
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user