From e5e8bab3346a9a93a8acb773e397e67814a1ef37 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Fri, 4 Apr 2025 18:52:17 +0000 Subject: Adding metadata --- 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 | 38 ++++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 dev-python/find-libpython/Manifest create mode 100644 dev-python/find-libpython/files/find-libpython-0.4.0-fix-license-qa.patch create mode 100644 dev-python/find-libpython/find-libpython-0.4.0.ebuild create mode 100644 dev-python/find-libpython/metadata.xml (limited to 'dev-python/find-libpython') diff --git a/dev-python/find-libpython/Manifest b/dev-python/find-libpython/Manifest new file mode 100644 index 000000000000..cfa9b25b62c7 --- /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 000000000000..814822fe01a7 --- /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 +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 +--- + 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 000000000000..fcc488c7ab91 --- /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_{9,10,11,12,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 000000000000..5ee519717ff7 --- /dev/null +++ b/dev-python/find-libpython/metadata.xml @@ -0,0 +1,38 @@ + + + + + vowstar@gmail.com + Huang Rui + + + 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. + + + find-libpython 是一个用于定位当前 Python 环境中 libpython 动态库 + 路径的库。支持多种安装方式,包括 conda 管理、系统管理或其他方式, + 可在 Windows、Mac OS/OS X 和各种 Linux 发行版上使用。 + find_libpython 同时是一个脚本和 Python 包。作为脚本使用时, + 可用于在基于 makefile 的构建系统中获取 libpython 路径, + 或嵌入其他语言编写的进程中的 Python 解释器路径。 + 推荐用法是无参数调用子进程中的脚本并解析输出。 + + + + dev.ktbarrett@gmail.com + Takafumi Arakaki + + https://github.com/ktbarrett/find_libpython/issues + + gentoo-guru-overlay + \ No newline at end of file -- cgit v1.3.1