Package Details: python-ftfy 6.2.0-1

Git Clone URL: https://aur.archlinux.org/python-ftfy.git (read-only, click to copy)
Package Base: python-ftfy
Description: Fixes some problems with Unicode text after the fact
Upstream URL: https://github.com/LuminosoInsight/python-ftfy
Licenses: MIT
Submitter: Philzli
Maintainer: adsun
Last Packager: adsun
Votes: 1
Popularity: 0.000000
First Submitted: 2018-08-14 08:43 (UTC)
Last Updated: 2024-03-16 01:18 (UTC)

Latest Comments

Auerhuhn commented on 2024-01-04 12:32 (UTC)

Thanks a bunch @adsun!

adsun commented on 2024-01-04 12:31 (UTC)

@Auerhuhn Fixed.

Auerhuhn commented on 2024-01-01 22:38 (UTC)

@adsun This package provides CHANGELOG.md and README.md directly in the site-packages root, which causes conflicts with other packages and other issues.

Suggested patch for placing the files in the proper directories:

diff --git a/PKGBUILD b/PKGBUILD
index d6b7390..7e44640 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -14,6 +14,12 @@ depends=('python-wcwidth')
 source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/f/${_name}/${_name}-${pkgver}.tar.gz")
 sha512sums=('2c2a8ec537895f70183b39db80ba163053745afe9ffe9d9d51334debc29808c0fc48193edeca397d4e3a9566d885ac222b08f3b0472ff35b3450c882647cde2f')

+prepare() {
+  # Keep the build backend from including `CHANGELOG.md` and `README.md`
+  # in the `site-packages` folder directly. Upstream PR pending.
+  sed -i -e '/^include =/d' "$_name-$pkgver/pyproject.toml"
+}
+
 build() {
   cd "$_name-$pkgver"
   python -m build --wheel --no-isolation
@@ -22,5 +28,6 @@ build() {
 package() {
   cd "$_name-$pkgver"
   python -m installer --destdir="${pkgdir}" dist/*.whl
-  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname"/LICENSE.txt
+  install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" LICENSE.txt
+  install -Dm644 -t "${pkgdir}/usr/share/doc/${pkgname}" CHANGELOG.md README.md
 }