diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-04-03 14:14:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-04-03 14:14:17 +0100 |
commit | a1d3b28d34c46d8e93a8286b1d3706a3e6c75fcc (patch) | |
tree | f67485eb22ea082a20dd18959601bfc77581195e /dev-python/ftfy | |
parent | 2df2e0ebc717aa53904c920c1a361423dfc3a5f7 (diff) |
gentoo auto-resync : 03:04:2024 - 14:14:17
Diffstat (limited to 'dev-python/ftfy')
-rw-r--r-- | dev-python/ftfy/Manifest | 4 | ||||
-rw-r--r-- | dev-python/ftfy/files/ftfy-6.2.0-poetry.patch | 36 | ||||
-rw-r--r-- | dev-python/ftfy/ftfy-6.2.0.ebuild | 39 | ||||
-rw-r--r-- | dev-python/ftfy/metadata.xml | 12 |
4 files changed, 91 insertions, 0 deletions
diff --git a/dev-python/ftfy/Manifest b/dev-python/ftfy/Manifest new file mode 100644 index 000000000000..4b1025b4b574 --- /dev/null +++ b/dev-python/ftfy/Manifest @@ -0,0 +1,4 @@ +AUX ftfy-6.2.0-poetry.patch 1200 BLAKE2B a8bbc0f705bc8efee7dcf2a4a3657efdf7328a756ab9090e0bca8428c070bb6366e57dd6988476614237321192d7246bd95801c98a0fc1dd58c73ced6f0a2307 SHA512 ae464ec93bec2dbe587a5d8db474105a5bdf6337e26acf0231fd2c9161533a13fe57fe806f243f1809f86c5771cffdf372e574ae2c352b005df6649a25390aa5 +DIST ftfy-6.2.0.tar.gz 63675 BLAKE2B 4d2455c004737b2914edcdf22dc53e433f1f9d9a1b469f8b34069ce7a4b04c30a5b2a0d76db35d8e1f9ba0469cdff604271e7331f9fca0d8b579cc61c422cde1 SHA512 31724b3f65936a146f567a493988b3a3ce5ba87ac7578b97a64f0946cc20d09fcab040964cec9bcf3fbac1f79cad0b67c5e74aaa871a7d6c856f5939e7a30529 +EBUILD ftfy-6.2.0.ebuild 851 BLAKE2B ad4707c447da3a4d6b23437bc4c9e66a854e035e24f910a75d0676ae7c3cb47a5946ae5548fcb00237759170fc988f42941ede8c65a88c8a036399b79a701073 SHA512 9bacd1edd3913fb027be2fa9e24a8c091b3d5e96bbcc87d2eab3ddaae0a4410f522a4ce64f2153321d021166333b433d6204f5a889c377009fe0b0e3f0857a51 +MISC metadata.xml 368 BLAKE2B 96639093056e0d54294c9c5b095855a76c1719497018d3c3a64be3b20cecb5c708c8bb8d18305f59c2e90e2f9fdf9a48201df44fd8aabe1d8eda300ce209b093 SHA512 e2ecb35c3ae0d92def0ac84f493f7cd00e94be64065cecca5e207af0dd48394e2a09adecc506c6187eb1b0336ed34f635666e8868073a987d7add7d0b5e49bff diff --git a/dev-python/ftfy/files/ftfy-6.2.0-poetry.patch b/dev-python/ftfy/files/ftfy-6.2.0-poetry.patch new file mode 100644 index 000000000000..1766a9aa98b9 --- /dev/null +++ b/dev-python/ftfy/files/ftfy-6.2.0-poetry.patch @@ -0,0 +1,36 @@ +From 4ef6eeef8764086816034992705d4a4ebba4e88c Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org> +Date: Wed, 3 Apr 2024 10:33:02 +0200 +Subject: [PATCH] fix pyproject.toml not to install stray files into + site-packages + +Fix the `include` directives in `pyproject.toml` to include the relevant +files in `sdist` archives only and not in wheels, where they end up +being installed straight into site-packages, e.g. as: + + /usr/lib/python3.12/site-packages/CHANGELOG.md + /usr/lib/python3.12/site-packages/README.md +--- + pyproject.toml | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index fc3e6b9..3bc68e2 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -4,7 +4,11 @@ version = "6.2.0" + description = "Fixes mojibake and other problems with Unicode, after the fact" + authors = ["Robyn Speer <rspeer@arborelia.net>"] + license = "Apache-2.0" +-include = ["README.md", "CHANGELOG.md", "tests"] ++include = [ ++ {path = "README.md", format = "sdist"}, ++ {path = "CHANGELOG.md", format = "sdist"}, ++ {path = "tests", format = "sdist"}, ++] + readme = "README.md" + + [tool.poetry.dependencies] +-- +2.44.0 + diff --git a/dev-python/ftfy/ftfy-6.2.0.ebuild b/dev-python/ftfy/ftfy-6.2.0.ebuild new file mode 100644 index 000000000000..a517d4b525a1 --- /dev/null +++ b/dev-python/ftfy/ftfy-6.2.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( pypy3 python3_{10..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Fixes mojibake and other problems with Unicode, after the fact" +HOMEPAGE=" + https://ftfy.readthedocs.io/en/latest/ + https://github.com/rspeer/python-ftfy/ + https://pypi.org/project/ftfy/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + <dev-python/wcwidth-0.3[${PYTHON_USEDEP}] + >=dev-python/wcwidth-0.2.12[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + # https://github.com/rspeer/python-ftfy/pull/204 + "${FILESDIR}/${P}-poetry.patch" + ) + + # https://github.com/rspeer/python-ftfy/pull/205 + sed -i -e "s:'poetry', 'run',::" tests/test_cli.py || die + + distutils-r1_src_prepare +} diff --git a/dev-python/ftfy/metadata.xml b/dev-python/ftfy/metadata.xml new file mode 100644 index 000000000000..7facc3ac34b4 --- /dev/null +++ b/dev-python/ftfy/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="project"> + <email>python@gentoo.org</email> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="github">rspeer/python-ftfy</remote-id> + <remote-id type="pypi">ftfy</remote-id> + </upstream> +</pkgmetadata> |