Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / 
python-cjkwrap


Commits:
4cedefe2 by loqs at 2026-01-30T21:26:19+00:00
SPDX license identifier

https://github.com/fgallaire/cjkwrap/blob/v2.2/setup.py

- - - - -
e8f9cbce by loqs at 2026-01-30T21:28:56+00:00
Use PEP 517 for building

Related https://archlinux.org/todo/use-pep-517-for-building-if-supported/.

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -4,8 +4,11 @@ pkgbase = python-cjkwrap
        pkgrel = 13
        url = https://github.com/fgallaire/cjkwrap
        arch = any
-       license = LGPL
+       license = LGPL-3.0-or-later
+       makedepends = python-build
+       makedepends = python-installer
        makedepends = python-setuptools
+       makedepends = python-wheel
        depends = python
        source = https://pypi.io/packages/source/C/CJKwrap/CJKwrap-2.2.tar.gz
        sha512sums = 
59e0139daadad4d0397f0684a0c1abd5803d133e90ff7ced0adb703be02b20e430bb96a6777227640e55aca6d1aaea796bfc79b5d5b3379953e38323003cbde0


=====================================
PKGBUILD
=====================================
@@ -7,19 +7,19 @@ pkgver=2.2
 pkgrel=13
 pkgdesc="A library for wrapping and filling CJK text."
 url="https://github.com/fgallaire/cjkwrap";
-license=('LGPL')
+license=('LGPL-3.0-or-later')
 arch=('any')
 depends=('python')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-setuptools' 
'python-wheel')
 source=("https://pypi.io/packages/source/C/CJKwrap/CJKwrap-$pkgver.tar.gz";)
 
sha512sums=('59e0139daadad4d0397f0684a0c1abd5803d133e90ff7ced0adb703be02b20e430bb96a6777227640e55aca6d1aaea796bfc79b5d5b3379953e38323003cbde0')
 
 build() {
   cd "$srcdir"/CJKwrap-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 package_python-cjkwrap() {
   cd CJKwrap-$pkgver
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cjkwrap/-/compare/f87981c23c5578abb1bbde535c9f894bf06b9f16...e8f9cbced8e0cd6b04c50b7c40bd737ddff72ce8

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-cjkwrap/-/compare/f87981c23c5578abb1bbde535c9f894bf06b9f16...e8f9cbced8e0cd6b04c50b7c40bd737ddff72ce8
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to