app-misc/python-dice: new package ahead of Gentoo Main
Package-Manager: Portage-2.3.78, Repoman-2.3.17 Signed-off-by: Horea Christian <chr@chymera.eu>
This commit is contained in:
parent
a15e2a42c4
commit
6951486013
7
app-misc/python-dice/ChangeLog
Normal file
7
app-misc/python-dice/ChangeLog
Normal file
@ -0,0 +1,7 @@
|
||||
04 Nov 2019; <chymera@gentoo.org> typing-3.7.4.1.ebuild:
|
||||
dev-python/typing: KEYWORDS
|
||||
|
||||
*typing-3.7.4.1 (09 Oct 2019)
|
||||
|
||||
09 Oct 2019; <chymera@gentoo.org> +metadata.xml, +typing-3.7.4.1.ebuild:
|
||||
dev-python/typing: version bump 3.7.4.1 and PYTHON_COMPAT to 3 series
|
1
app-misc/python-dice/Manifest
Normal file
1
app-misc/python-dice/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST python-dice-2.4.2.tar.gz 18922 SHA256 f7738436cfc8976bc5e61809bfb5c6a910d892601d46042a91c314a3b6a98f29 SHA512 821171d762deecf1b5a9cd9be20207c923a0ff37f35b3de339127e69ef588c9a63ad5d4680f286c3415ad130f4e156cd1c31135285fd00153f6ee6ba55ea01da WHIRLPOOL 5295b60214d439f2215880c54eade25ac907bd240986d25907e4439578bf3aadcb0dff02ea1cb1a2ff1b2d6d3a4610d87625bb2212db6ce7ccb8042b8742d3af
|
11
app-misc/python-dice/metadata.xml
Normal file
11
app-misc/python-dice/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>chr@chymera.eu</email>
|
||||
<name>Horea Christian</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">borntyping/python-dice</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
45
app-misc/python-dice/python-dice-2.4.2.ebuild
Normal file
45
app-misc/python-dice/python-dice-2.4.2.ebuild
Normal file
@ -0,0 +1,45 @@
|
||||
# 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/tox[${PYTHON_USEDEP}] )"
|
||||
RDEPEND="
|
||||
dev-python/coverage[${PYTHON_USEDEP}]
|
||||
dev-python/docopt[${PYTHON_USEDEP}]
|
||||
dev-python/pyparsing[${PYTHON_USEDEP}]
|
||||
dev-python/termcolor[${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}]
|
||||
"
|
||||
|
||||
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}"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user