dev-python/*: rename latexify to latexify-py

also addressed some QA issues

Signed-off-by: Mazunki Hoksaas <rolferen@gmail.com>
This commit is contained in:
Mazunki Hoksaas
2024-05-14 13:00:21 +02:00
parent d2b3f219b7
commit b84bc79ccf
4 changed files with 20 additions and 7 deletions

View File

@@ -0,0 +1 @@
DIST latexify_py-0.4.3-post1.gh.tar.gz 78199 BLAKE2B 2292131c5f9eec51c8cf16812d72823076e61ac66320688ba891dea822bcad240a69e932aa7f6f5af54508b1e770a12bf19ac01c29ccee930e1b976670500ef5 SHA512 0c534368827b9776132a6ff7e2bedd6ca70a097ff6abbb22b87399ae17b3b2f04c171e9fae8ecc00103e0f90e367b57c4e832ecbeffad44a9e82a09495ffbaaa

View File

@@ -3,19 +3,21 @@
EAPI=8 EAPI=8
PYTHON_COMPAT=( python3_{10..11} pypy3 ) PYTHON_COMPAT=( python3_{10..11} pypy3 ) # upstream supports >=3.7 to <3.12
DISTUTILS_USE_PEP517=hatchling DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1 inherit distutils-r1
DESCRIPTION="Package to compile a fragment of Python source code to a corresponding LaTeX expression" DESCRIPTION="Annotate Python source code to get LaTeX expressions"
HOMEPAGE=" HOMEPAGE="
https://pypi.org/project/latexify-py/ https://pypi.org/project/latexify-py/
https://github.com/google/latexify_py https://github.com/google/latexify_py
" "
# not really sure how -post1 should be handled
SRC_URI="https://github.com/google/latexify_py/archive/refs/tags/v0.4.3-post1.tar.gz -> ${P}.tar.gz" # upstream package is called latexify-py (on pypi), but their filename is called latexify_py
S="${WORKDIR}/latexify_py-0.4.3-post1" # we're using $(ver_cut 1-3) because of this specific postfix version, akin to -r1. remove in next versions
SRC_URI="https://github.com/google/latexify_py/archive/refs/tags/v$(ver_cut 1-3)-post1.tar.gz -> ${PN/-/_}-$(ver_cut 1-3)-post1.gh.tar.gz"
S="${WORKDIR}/${PN/-/_}-$(ver_cut 1-3)-post1"
LICENSE="Apache-2.0" LICENSE="Apache-2.0"
SLOT=0 SLOT=0
@@ -32,4 +34,3 @@ distutils_enable_tests pytest
src_prepare() { src_prepare() {
distutils-r1_src_prepare distutils-r1_src_prepare
} }

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>rolferen@gmail.com</email>
<name>Mazunki Hoksaas</name>
</maintainer>
<upstream>
<remote-id type="github">google/latexify_py</remote-id>
<remote-id type="pypi">latexify-py</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -1 +0,0 @@
DIST latexify-0.4.3.1.tar.gz 78199 BLAKE2B 2292131c5f9eec51c8cf16812d72823076e61ac66320688ba891dea822bcad240a69e932aa7f6f5af54508b1e770a12bf19ac01c29ccee930e1b976670500ef5 SHA512 0c534368827b9776132a6ff7e2bedd6ca70a097ff6abbb22b87399ae17b3b2f04c171e9fae8ecc00103e0f90e367b57c4e832ecbeffad44a9e82a09495ffbaaa