dev-python/statmake: enable py3.11

Closes: https://bugs.gentoo.org/884685
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2023-05-04 07:19:13 +05:00
parent 34ba6c94bb
commit 96b4548ddc
3 changed files with 44 additions and 55 deletions

View File

@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/daltonmaag/statmake/issues</bugs-to>
<remote-id type="github">daltonmaag/statmake</remote-id>
<remote-id type="pypi">statmake</remote-id>
</upstream>
<maintainer type="person">
<description>co-maintainers welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/daltonmaag/statmake/issues</bugs-to>
<remote-id type="github">daltonmaag/statmake</remote-id>
<remote-id type="pypi">statmake</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,34 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=poetry
inherit distutils-r1
DESCRIPTION="Applies STAT information from a Stylespace to a variable font"
HOMEPAGE="
https://pypi.org/project/statmake/
https://github.com/daltonmaag/statmake
"
SRC_URI="https://github.com/daltonmaag/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
RDEPEND="
>=dev-python/attrs-21.3[${PYTHON_USEDEP}]
>=dev-python/cattrs-22.2[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.11[${PYTHON_USEDEP}]
>=dev-python/fs-2.2.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
>=dev-python/ufo2ft-2.7[${PYTHON_USEDEP}]
>=dev-python/ufoLib2-0.4[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest

View File

@@ -1,45 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_SINGLE_IMPL=1
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_10 )
inherit distutils-r1
DESCRIPTION="Generate STAT tables for variable fonts from .stylespace files"
HOMEPAGE="https://github.com/daltonmaag/statmake"
SRC_URI="https://github.com/daltonmaag/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
KEYWORDS="~amd64"
LICENSE="MIT"
SLOT="0"
RDEPEND="
$(python_gen_cond_dep '
>=dev-python/attrs-21.3[${PYTHON_USEDEP}]
>=dev-python/cattrs-22.1[${PYTHON_USEDEP}]
>=dev-python/fonttools-4.11[${PYTHON_USEDEP}]
')
"
BDEPEND="
test? (
$(python_gen_cond_dep '
>=dev-python/ufo2ft-2.7[${PYTHON_USEDEP}]
>=dev-python/ufoLib2-0.4[${PYTHON_USEDEP}]
')
)
"
distutils_enable_tests pytest
python_install() {
distutils-r1_python_install --skip-build
python_domodule "src/${PN}"
}
python_test() {
local -x PYTHONPATH="${S}/src:${PYTHONPATH}"
epytest
}