Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages /
python-lru-dict
Commits:
38ecf942 by Maxime Gauduin at 2023-12-27T11:38:10+01:00
drop setup.py
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,12 +1,16 @@
pkgbase = python-lru-dict
pkgdesc = A fast and memory efficient LRU cache for Python
pkgver = 1.3.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/amitdev/lru-dict
arch = x86_64
license = MIT
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
+ depends = glibc
depends = python
source =
git+https://github.com/amitdev/lru-dict.git#tag=51c2761d94fd6fc85faea550240814938d1594f9
b2sums = SKIP
=====================================
PKGBUILD
=====================================
@@ -3,15 +3,21 @@
pkgname=python-lru-dict
pkgver=1.3.0
-pkgrel=1
+pkgrel=2
pkgdesc='A fast and memory efficient LRU cache for Python'
arch=(x86_64)
url=https://github.com/amitdev/lru-dict
license=(MIT)
-depends=(python)
+depends=(
+ glibc
+ python
+)
makedepends=(
git
+ python-build
+ python-installer
python-setuptools
+ python-wheel
)
_tag=51c2761d94fd6fc85faea550240814938d1594f9
source=(git+https://github.com/amitdev/lru-dict.git#tag=${_tag})
@@ -24,13 +30,12 @@ pkgver() {
build() {
cd lru-dict
- python setup.py build_ext
+ python -m build --wheel --no-isolation
}
package() {
- cd lru-dict
- python setup.py install --root="${pkgdir}" --optimize=1
- install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-lru-dict/
+ python -m installer --destdir="${pkgdir}" lru-dict/dist/*.whl
+ install -Dm 644 lru-dict/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-lru-dict/
}
# vim: ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-lru-dict/-/commit/38ecf942c1028b8d071341be3f1a88db2c6be9c1
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-lru-dict/-/commit/38ecf942c1028b8d071341be3f1a88db2c6be9c1
You're receiving this email because of your account on gitlab.archlinux.org.