dev-python/gpep517: Bump to v3

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-04-12 13:22:09 +02:00
parent 46b47cf67a
commit 75e44dc84e
2 changed files with 45 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST gpep517-2.gh.tar.gz 6904 BLAKE2B 5d6f8c02805fec0b9c9929a133817be5d06c76ca2dd5ecd6b59d04eca1ca746b2a63a84df29c929ca06a026eef741a2d872abede6f1d0ac3719ff2005cf20043 SHA512 2b1fce7193a5c03175c34251987f42fe82c79a6eef324759fe5728e0f3b66a10f8aa644ece2193c912e9977f21b14a28fe5c9443e3b01ca8cdacf862afe0838c
DIST gpep517-3.gh.tar.gz 7074 BLAKE2B 99a499ae13b6aac41e86d11735f0e49a5dc921881a1efa94bee19bfd779af6827707d05d6407ed15e4a3a6b518c8c0b3f50901e3b12df41081930f83b288e461 SHA512 90f756f5a1d783e9d402e098162a70b363a0a81e331e810e5c89c3302bb5839032603252bad1c98c176a7828b70adfac967e39ba455dcd3a20097e74923980c8

View File

@@ -0,0 +1,44 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
EAPI=7
DISTUTILS_USE_SETUPTOOLS=manual
PYTHON_COMPAT=( pypy3 python3_{8..10} )
inherit distutils-r1
DESCRIPTION="A backend script to aid installing Python packages in Gentoo"
HOMEPAGE="
https://pypi.org/project/gpep517/
https://github.com/mgorny/gpep517/
"
SRC_URI="
https://github.com/mgorny/gpep517/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64"
RDEPEND="
>=dev-python/installer-0.5.0[${PYTHON_USEDEP}]
>=dev-python/tomli-1.2.3[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
# do not use any build system to avoid circular deps
python_compile() { :; }
python_install() {
python_domodule gpep517
python_newscript - gpep517 <<-EOF
#!/usr/bin/python
import sys
from gpep517.__main__ import main
sys.exit(main())
EOF
}