Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / pypinyin
Commits:
c9b3c727 by loqs at 2024-04-02T21:36:39+00:00
Change to a PEP 517 based workflow
- - - - -
1 changed file:
- PKGBUILD
Changes:
=====================================
PKGBUILD
=====================================
@@ -9,7 +9,7 @@ arch=('any')
url='https://github.com/mozillazg/python-pinyin'
license=('MIT')
depends=('python')
-makedepends=('python-setuptools' 'phrase-pinyin-data' 'pinyin-data')
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel' 'phrase-pinyin-data' 'pinyin-data')
checkdepends=('python-pytest-cov')
source=("https://github.com/mozillazg/python-pinyin/archive/v$pkgver/python-pinyin-$pkgver.tar.gz")
sha256sums=('aa6cfc7faba074d370565fe9a5e044efba097dff61ba7968ef8704f7db12c1e8')
@@ -23,7 +23,7 @@ prepare() {
build() {
cd python-pinyin-$pkgver
make gen_data
- python setup.py build
+ python -m build --wheel --no-isolation
}
check() {
@@ -33,6 +33,6 @@ check() {
package() {
cd python-pinyin-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pypinyin/-/commit/c9b3c727bf97780ced4ad918e0bd9b3ccca697ed
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/pypinyin/-/commit/c9b3c727bf97780ced4ad918e0bd9b3ccca697ed
You're receiving this email because of your account on gitlab.archlinux.org.