commit:     8ebf1d0dd51e17ac6b2bc6f2e68d6628b65b3c36
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Thu Apr  3 08:56:43 2025 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Thu Apr  3 08:56:43 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ebf1d0d

dev-python/find-libpython: new package, add 0.4.0

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>

 dev-python/find-libpython/Manifest                 |  1 +
 .../find-libpython-0.4.0-fix-license-qa.patch      | 29 ++++++++++++++++
 .../find-libpython/find-libpython-0.4.0.ebuild     | 22 ++++++++++++
 dev-python/find-libpython/metadata.xml             | 39 ++++++++++++++++++++++
 4 files changed, 91 insertions(+)

diff --git a/dev-python/find-libpython/Manifest 
b/dev-python/find-libpython/Manifest
new file mode 100644
index 000000000..cfa9b25b6
--- /dev/null
+++ b/dev-python/find-libpython/Manifest
@@ -0,0 +1 @@
+DIST find_libpython-0.4.0.tar.gz 8979 BLAKE2B 
934d53ff9e04066fcd03c5e019eb00e64a1089e9811b3f181ed8947c330cbf13631cd6a197edfc525cb22b1cf126085f10e6df4faf5579bf8022285802929cb3
 SHA512 
259a5e85ab6e33e17a3b26f3752118e8b0d33f2d4844f7b7fd957ad0d2bb53f290c62d4d9d26cb93321e0b6de772b4052173f922ea978ed458da332fb667e342

diff --git 
a/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch 
b/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch
new file mode 100644
index 000000000..814822fe0
--- /dev/null
+++ b/dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch
@@ -0,0 +1,29 @@
+From 3570824dfd3115d53523beeac6f346c279ddc569 Mon Sep 17 00:00:00 2001
+From: Huang Rui <[email protected]>
+Date: Thu, 3 Apr 2025 16:17:42 +0800
+Subject: [PATCH] fix(setup): Update deprecated license classifier in setup.cfg
+
+- Remove deprecated MIT License classifier from setup.cfg
+- Keep remaining classifiers for Python 3 and software development
+
+Signed-off-by: Huang Rui <[email protected]>
+---
+ setup.cfg | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 7f50ce27c5dc..b519197c7055 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -12,7 +12,6 @@
+ keywords = 
+       libpython
+ classifiers = 
+-      License :: OSI Approved :: MIT License
+       Programming Language :: Python :: 3
+       Topic :: Software Development :: Libraries
+ 
+
+--
+2.49.0
+

diff --git a/dev-python/find-libpython/find-libpython-0.4.0.ebuild 
b/dev-python/find-libpython/find-libpython-0.4.0.ebuild
new file mode 100644
index 000000000..06d922b40
--- /dev/null
+++ b/dev-python/find-libpython/find-libpython-0.4.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=setuptools
+inherit distutils-r1 pypi
+
+DESCRIPTION="Finds the libpython associated with the current Python 
environment"
+HOMEPAGE="https://github.com/ktbarrett/find_libpython";
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+
+# Tests can't work inside network sandbox
+RESTRICT=test
+
+PATCHES=(
+       "${FILESDIR}/find-libpython-0.4.0-fix-license-qa.patch"
+)

diff --git a/dev-python/find-libpython/metadata.xml 
b/dev-python/find-libpython/metadata.xml
new file mode 100644
index 000000000..59e2239df
--- /dev/null
+++ b/dev-python/find-libpython/metadata.xml
@@ -0,0 +1,39 @@
+<?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>Huang Rui</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="pypi">find-libpython</remote-id>
+               <remote-id type="github">ktbarrett/find_libpython</remote-id>
+               <maintainer>
+                       <name>Takafumi Arakaki</name>
+                       <email>[email protected]</email>
+               </maintainer>
+               
<bugs-to>https://github.com/ktbarrett/find_libpython/issues</bugs-to>
+       </upstream>
+       <longdescription lang="en">
+               find-libpython is a library designed to locate the path of the
+               libpython dynamic library in the current Python environment.
+               Supports various installation types including conda-managed,
+               system-managed, and other configurations. Works across Windows,
+               Mac OS/OS X, and major Linux distributions.
+               find_libpython is both a script and a Python package. Usage as
+               a script is useful for obtaining the libpython path in
+               makefile-based build systems. It can also determine the path
+               for embedding Python in processes written in other languages.
+               Recommended usage is to call the script in a subprocess without
+               arguments and parse the output.
+       </longdescription>
+       <longdescription lang="zh">
+               find-libpython 是一个用于定位当前 Python 环境中 libpython 动态库
+               路径的库。支持多种安装方式,包括 conda 管理、系统管理或其他方式,
+               可在 Windows、Mac OS/OS X 和各种 Linux 发行版上使用。
+               find_libpython 同时是一个脚本和 Python 包。作为脚本使用时,
+               可用于在基于 makefile 的构建系统中获取 libpython 路径,
+               或嵌入其他语言编写的进程中的 Python 解释器路径。
+               推荐用法是无参数调用子进程中的脚本并解析输出。
+       </longdescription>
+</pkgmetadata>

Reply via email to