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

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui
2025-04-03 16:56:43 +08:00
parent 7a0263bb3d
commit 8ebf1d0dd5
4 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST find_libpython-0.4.0.tar.gz 8979 BLAKE2B 934d53ff9e04066fcd03c5e019eb00e64a1089e9811b3f181ed8947c330cbf13631cd6a197edfc525cb22b1cf126085f10e6df4faf5579bf8022285802929cb3 SHA512 259a5e85ab6e33e17a3b26f3752118e8b0d33f2d4844f7b7fd957ad0d2bb53f290c62d4d9d26cb93321e0b6de772b4052173f922ea978ed458da332fb667e342

View File

@@ -0,0 +1,29 @@
From 3570824dfd3115d53523beeac6f346c279ddc569 Mon Sep 17 00:00:00 2001
From: Huang Rui <vowstar@gmail.com>
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 <vowstar@gmail.com>
---
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

View File

@@ -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"
)

View File

@@ -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>vowstar@gmail.com</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>dev.ktbarrett@gmail.com</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>