diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-27 07:06:12 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-10-27 07:06:12 +0000 |
| commit | 77272320b386471d770e430481202b31a5ffd5d2 (patch) | |
| tree | 56e776d58aacdc632edac6a7c730fcba84b06808 /dev-python/csvkit | |
| parent | f13cad212cc9cc174ad2ce844dd276e5714a7521 (diff) | |
| download | baldeagleos-repo-77272320b386471d770e430481202b31a5ffd5d2.tar.gz baldeagleos-repo-77272320b386471d770e430481202b31a5ffd5d2.tar.xz baldeagleos-repo-77272320b386471d770e430481202b31a5ffd5d2.zip | |
Adding metadata
Diffstat (limited to 'dev-python/csvkit')
| -rw-r--r-- | dev-python/csvkit/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/csvkit/csvkit-2.1.0-r1.ebuild | 52 | ||||
| -rw-r--r-- | dev-python/csvkit/files/csvkit-2.1.0-py314.patch | 24 |
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-python/csvkit/Manifest b/dev-python/csvkit/Manifest index a008b27aeb0f..d08d6c033ae6 100644 --- a/dev-python/csvkit/Manifest +++ b/dev-python/csvkit/Manifest @@ -1 +1,2 @@ DIST csvkit-2.1.0.tar.gz 3820430 BLAKE2B fc3ad12ecb8cedf69c41263733939c2bee4755076a227b50e60704a59f74bdca8e8280bc240fc22d11aaed6066f0f0abac7afad5a2c6e8a6187604416308b187 SHA512 7f34b346179b71bbb6519c8c58d5caf5c5a861997a249f2c438af3957c6beb913b5f7a3e05a0ae00754a0eba3314f86aba4d5f599ad04497e7a8df79be8c35b4 +DIST csvkit-2.1.0.tar.gz.provenance 9020 BLAKE2B 8c613a0f1d3d3893510ad72c2108ef28d1bb5769be8b906d6e7e2494ba18fdbaefb71a9640e4e6a162d8c37675b18d4142b0b74d95d10eda8643e3b1320155f9 SHA512 8a536702e427e57b6cbc6410948ec885def9af1ad52df58b11c83df921fe4a3a6ee89c138c9294aa6441106c7b579b802ad3cc9706802aa3617b149eae49ce0c diff --git a/dev-python/csvkit/csvkit-2.1.0-r1.ebuild b/dev-python/csvkit/csvkit-2.1.0-r1.ebuild new file mode 100644 index 000000000000..46b0841bebeb --- /dev/null +++ b/dev-python/csvkit/csvkit-2.1.0-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_VERIFY_REPO=https://github.com/wireservice/csvkit +PYTHON_COMPAT=( python3_{10..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A suite of utilities for converting to and working with CSV" +HOMEPAGE=" + https://github.com/wireservice/csvkit/ + https://pypi.org/project/csvkit/ +" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64-macos ~x64-macos" + +RDEPEND=" + >=dev-python/agate-1.12.0[${PYTHON_USEDEP}] + >=dev-python/agate-excel-0.4.0[${PYTHON_USEDEP}] + >=dev-python/agate-dbf-0.2.3[${PYTHON_USEDEP}] + >=dev-python/agate-sql-0.7.0[${PYTHON_USEDEP}] + dev-python/openpyxl[${PYTHON_USEDEP}] + dev-python/sqlalchemy[${PYTHON_USEDEP}] + dev-python/xlrd[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/zstandard[${PYTHON_USEDEP}] + ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/wireservice/csvkit/commit/de4ec58126e3341e4cf8c54735c297d6496fecf5 + "${FILESDIR}/${P}-py314.patch" +) + +python_test() { + local EPYTEST_DESELECT=( + # fails depending on locale, let's not force en_US + tests/test_utilities/test_csvstat.py::TestCSVStat::test_decimal_format + ) + local -x LC_ALL=C.UTF-8 + epytest +} diff --git a/dev-python/csvkit/files/csvkit-2.1.0-py314.patch b/dev-python/csvkit/files/csvkit-2.1.0-py314.patch new file mode 100644 index 000000000000..76daa627005c --- /dev/null +++ b/dev-python/csvkit/files/csvkit-2.1.0-py314.patch @@ -0,0 +1,24 @@ +From de4ec58126e3341e4cf8c54735c297d6496fecf5 Mon Sep 17 00:00:00 2001 +From: James McKinney <26463+jpmckinney@users.noreply.github.com> +Date: Mon, 9 Jun 2025 23:51:26 -0400 +Subject: [PATCH] fix: Set ArgumentParser(prog=) for Python 3.14, #1284 (bis) + +--- + csvkit/cli.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/csvkit/cli.py b/csvkit/cli.py +index a1bde8018..a1ad1bff8 100644 +--- a/csvkit/cli.py ++++ b/csvkit/cli.py +@@ -163,7 +163,9 @@ def _init_common_parser(self): + whose single-letter form is contained in 'omitflags' will be left out of the configured parser. Use 'f' for + file. + """ +- self.argparser = argparse.ArgumentParser(description=self.description, epilog=self.epilog) ++ self.argparser = argparse.ArgumentParser( ++ prog=type(self).__name__.lower(), description=self.description, epilog=self.epilog ++ ) + + # Input + if 'f' not in self.override_flags: |
