Package Details: python-ftfy 6.3.1-1

Git Clone URL: https://aur.archlinux.org/python-ftfy.git (read-only, click to copy)
Package Base: python-ftfy
Description: Fixes mojibake and other problems with Unicode, after the fact
Upstream URL: https://github.com/LuminosoInsight/python-ftfy
Licenses: MIT
Submitter: Philzli
Maintainer: devome
Last Packager: devome
Votes: 2
Popularity: 0.48
First Submitted: 2018-08-14 08:43 (UTC)
Last Updated: 2024-11-03 13:07 (UTC)

Latest Comments

adsun commented on 2024-09-08 12:50 (UTC)

Removed the sed command. Sorry for the delay.

SelectionRemark commented on 2024-08-06 20:27 (UTC)

It seems that the sed command is no longer needed, as it mentions a pending PR (probably https://github.com/rspeer/python-ftfy/pull/204 ), which is merged in the latest version 6.2.3

kseistrup commented on 2024-08-06 14:47 (UTC)

FYI (re: 6.2.3-1): The sed command in prepare() is now mangling pyproject.toml into an invalid TOML file that cannot be used for building the package.

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
 }