[arch-commits] Commit in python-tomli/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Sat Nov 27 23:10:17 UTC 2021
Date: Saturday, November 27, 2021 @ 23:10:17
Author: felixonmars
Revision: 429403
upgpkg: python-tomli 1.2.2-2: switch to pyproject2setuppy and remove ugly hack
Modified:
python-tomli/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++------------
1 file changed, 5 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-11-27 23:06:47 UTC (rev 429402)
+++ PKGBUILD 2021-11-27 23:10:17 UTC (rev 429403)
@@ -2,27 +2,20 @@
pkgname=python-tomli
pkgver=1.2.2
-pkgrel=1
+pkgrel=2
pkgdesc="A lil' TOML parser"
url="https://github.com/hukkin/tomli"
license=('MIT')
arch=('any')
depends=('python')
-makedepends=('python-dephell' 'python-setuptools')
+makedepends=('python-pyproject2setuppy')
checkdepends=('python-pytest' 'python-dateutil')
-source=("https://github.com/hukkin/tomli/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hukkin/tomli/archive/$pkgver.tar.gz")
sha512sums=('460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605')
-prepare() {
- cd tomli-$pkgver
- # flit is not needed at runtime
- sed -i '/flit_core/d' pyproject.toml
- dephell deps convert --from pyproject.toml --to setup.py
-}
-
build() {
cd tomli-$pkgver
- python setup.py build
+ python -m pyproject2setuppy.main build
}
check() {
@@ -32,7 +25,7 @@
package() {
cd tomli-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m pyproject2setuppy.main install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list