dev-python/expecttest: new package, add 0.3.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-05-12 20:31:37 +02:00
parent 5d302e8767
commit 2031ddaabe
3 changed files with 43 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST expecttest-0.3.0.gh.tar.gz 16627 BLAKE2B 02a8c41b996dc16d77c711cf023ee18cd97b6a2bb5bd13e80a6c195b18cf8b795a2b71d62b281d62da897d21b61a868f41af17746e849ec3c0f676c13bf7261a SHA512 3627255e9bfd2e2df9cff8026de8d3bf4997a50fc838c09b147b8becbf35f64b97da19e3606b239df4ee2e68018497aa44fef2f02d2cb980ec1d4e38e83f6d50

View File

@@ -0,0 +1,31 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..13} )
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1
DESCRIPTION="golden tests"
HOMEPAGE="https://github.com/pytorch/expecttest"
SRC_URI="https://github.com/pytorch/${PN}/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="test? (
dev-python/flake8[${PYTHON_USEDEP}]
dev-python/mypy[${PYTHON_USEDEP}]
dev-python/hypothesis[${PYTHON_USEDEP}]
)
"
python_test() {
flake8 || die
mypy --exclude=smoketests . || die
${EPYTHON} test_expecttest.py || die
}

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>tupone@gentoo.org</email>
<name>Alfredo Tupone</name>
</maintainer>
<upstream>
<remote-id type="github">pytorch/expecttest</remote-id>
</upstream>
</pkgmetadata>