dev-python/python-ly: enable py3.11

- python 3.11 support enabled
- few style changes common to dev-python category
- remove comment about missing tests in pypi tarball, because we use
  sources from github
- add dev-python/lxml test dependency, however, tests are still
  restricted, because I failed to make them work properly. My attempt is
  described in upstream issue [1].

[1] https://github.com/frescobaldi/python-ly/issues/153

Signed-off-by: Petr Vaněk <arkamar@atlas.cz>
Closes: https://github.com/gentoo/gentoo/pull/29702
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Petr Vaněk
2023-02-21 11:32:25 +01:00
committed by Michał Górny
parent ef283f5b57
commit 068a91a8a8

View File

@@ -4,13 +4,18 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{9..10} )
PYTHON_COMPAT=( python3_{9..11} )
inherit distutils-r1
DESCRIPTION="Tool and library for manipulating LilyPond files"
HOMEPAGE="https://github.com/frescobaldi/python-ly https://pypi.org/project/python-ly/"
# No tests in pypi tarball
SRC_URI="https://github.com/frescobaldi/python-ly/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
HOMEPAGE="
https://github.com/frescobaldi/python-ly/
https://pypi.org/project/python-ly/
"
SRC_URI="
https://github.com/frescobaldi/python-ly/archive/refs/tags/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="GPL-2+"
SLOT="0"
@@ -18,4 +23,10 @@ KEYWORDS="amd64 x86"
RESTRICT="test"
BDEPEND="
test? (
dev-python/lxml[${PYTHON_USEDEP}]
)
"
distutils_enable_tests pytest