commit:     d11196533fc8d1e0628d0d76670a592f77c5e47e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Apr  4 22:02:02 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Apr  5 11:32:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d1119653

dev-python/gpep517: New package, v1

Introduce a new package that replaces the inline code in distutils-r1
with a properly maintained and tested external script.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/gpep517/Manifest         |  1 +
 dev-python/gpep517/gpep517-1.ebuild | 44 +++++++++++++++++++++++++++++++++++++
 dev-python/gpep517/metadata.xml     | 12 ++++++++++
 3 files changed, 57 insertions(+)

diff --git a/dev-python/gpep517/Manifest b/dev-python/gpep517/Manifest
new file mode 100644
index 000000000000..f99e0b39a4c3
--- /dev/null
+++ b/dev-python/gpep517/Manifest
@@ -0,0 +1 @@
+DIST gpep517-1.gh.tar.gz 6871 BLAKE2B 
a298a445cb24dbc708985ebe0be266ed6549525a2b9d250ddb53129502f04a442927ca4c29445f4caf4ada82e106e5498c9586e78dd8a4bd676c7aff747544b6
 SHA512 
83ccf6124e388aefcdece391d12daf6a337d52b7bb794268effd2abc9bdab6b00d935d01cac774b4a66704578160e44617b16a5b8b9ef821012d419848145e9c

diff --git a/dev-python/gpep517/gpep517-1.ebuild 
b/dev-python/gpep517/gpep517-1.ebuild
new file mode 100644
index 000000000000..0fbf09a24da9
--- /dev/null
+++ b/dev-python/gpep517/gpep517-1.ebuild
@@ -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="~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
+}

diff --git a/dev-python/gpep517/metadata.xml b/dev-python/gpep517/metadata.xml
new file mode 100644
index 000000000000..d505639e0963
--- /dev/null
+++ b/dev-python/gpep517/metadata.xml
@@ -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>[email protected]</email>
+               <name>Michał Górny</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">mgorny/gpep517</remote-id>
+               <remote-id type="pypi">gpep517</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to