dev-python/trianglesolver: new package, add 1.2

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui committed 2026-02-26 21:04:30 +08:00
1 parent 3d22a3b51c
commit bf05825c3f
3 files changed
+41

No files matched your search

+1
View File
@@ -0,0 +1 @@
DIST trianglesolver-1.2.tar.gz 4718 BLAKE2B a248ab7e993dbe6cb435c56e37880554dbcd1b3be837fc52c4fab861f38db5d31552dadf4768493fd3c8d7712c3929e0f3a34114c11b76791b372d9662ec5a59 SHA512 c46c7fbf6dc844522a9a860239f28d29bb01613253209601003f0599d03f83f72289d7af289ecf155e4f5318602aac2b5e3ed9d344b7de9b6b1842fc56892e85
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>vowstar@gmail.com</email>
<name>Huang Rui</name>
</maintainer>
<upstream>
<remote-id type="pypi">trianglesolver</remote-id>
</upstream>
<longdescription lang="en">
trianglesolver is a simple Python library that attempts to solve triangles
given partial information about sides and angles. It uses the law of sines
and the law of cosines to compute missing values.
</longdescription>
<longdescription lang="zh">
trianglesolver是一个简单的Python库,用于根据三角形的部分边和角信息
来求解三角形。它使用正弦定律和余弦定律来计算缺失值。
</longdescription>
</pkgmetadata>
@@ -0,0 +1,20 @@
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
DISTUTILS_USE_PEP517=setuptools
inherit distutils-r1 pypi
DESCRIPTION="Attempt to solve triangles given partial info about sides and angles"
HOMEPAGE="https://pypi.org/project/trianglesolver/"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
python_test() {
"${EPYTHON}" -c "import trianglesolver; trianglesolver.run_lots_of_tests()" \
|| die "Tests failed with ${EPYTHON}"
}