skel_python: cleanup

This commit is contained in:
Anton Bolshakov 2023-10-23 11:03:02 +08:00
parent bc9cf8f7a3
commit 303176a5a8
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 5 additions and 7 deletions

View file

@ -3,7 +3,6 @@
EAPI=8
# https://projects.gentoo.org/python/guide/distutils.html#pep-517-build-systems
DISTUTILS_USE_PEP517=poetry
PYTHON_COMPAT=( python3_{10..11} )
@ -11,15 +10,14 @@ inherit distutils-r1 pypi
DESCRIPTION=""
HOMEPAGE=""
#SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="test"
IUSE=""
RDEPEND="dev-python/xyz[${PYTHON_USEDEP}]"
RDEPEND=""
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
distutils_enable_tests pytest
#distutils_enable_tests pytest

View file

@ -99,9 +99,9 @@ def pyproject_toml():
if type(value) is dict:
value="9999"
if value == "*":
print("\t"+portage_mapping("dev-python/" +key))
print("\t"+portage_mapping("dev-python/" +key) +"[${PYTHON_USEDEP}]")
else:
print("\t>="+portage_mapping("dev-python/" + key + '-' + value.replace('^','')))
print("\t>="+portage_mapping("dev-python/" + key + '-' + value.replace('^','')) + "[${PYTHON_USEDEP}]")
def distutils_setup():
try: