Maxime Gauduin pushed to branch main at Arch Linux / Packaging / Packages /
python-ciso8601
Commits:
32da21a3 by Maxime Gauduin at 2023-12-27T11:06:34+01:00
drop setup.py
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,16 @@
pkgbase = python-ciso8601
pkgdesc = Fast ISO8601 date time parser for Python written in C
pkgver = 2.3.1
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/closeio/ciso8601
arch = x86_64
license = MIT
makedepends = cython
makedepends = git
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
depends = glibc
depends = python
source =
git+https://github.com/closeio/ciso8601.git#tag=b17984f5b4c6db0ef596b4d31456c8a39ae278ee
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgname=python-ciso8601
pkgver=2.3.1
-pkgrel=1
+pkgrel=2
pkgdesc='Fast ISO8601 date time parser for Python written in C'
arch=(x86_64)
url=https://github.com/closeio/ciso8601
@@ -14,7 +14,10 @@ depends=(
makedepends=(
cython
git
+ python-build
+ python-installer
python-setuptools
+ python-wheel
)
_tag=b17984f5b4c6db0ef596b4d31456c8a39ae278ee
source=(git+https://github.com/closeio/ciso8601.git#tag=${_tag})
@@ -28,15 +31,12 @@ pkgver() {
build() {
cd ciso8601
-
- python setup.py build
+ python -m build --wheel --no-isolation
}
package() {
- cd ciso8601
-
- python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
- install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-ciso8601/
+ python -m installer --destdir="${pkgdir}" ciso8601/dist/*.whl
+ install -Dm 644 ciso8601/LICENSE -t
"${pkgdir}"/usr/share/licenses/python-ciso8601/
}
# vim: ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ciso8601/-/commit/32da21a357985fd3e7b73f2a50fd3b9bb884d2a6
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-ciso8601/-/commit/32da21a357985fd3e7b73f2a50fd3b9bb884d2a6
You're receiving this email because of your account on gitlab.archlinux.org.