Carl Smedstad pushed to branch main at Arch Linux / Packaging / Packages /
python-bitstring
Commits:
0892480e by Carl Smedstad at 2024-09-28T01:21:47+02:00
Define _pkgname to simplify pkg paths & source URL
- - - - -
8432821e by Carl Smedstad at 2024-09-28T02:07:56+02:00
upgpkg: 4.2.3-1: Upstream release
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,13 +1,19 @@
pkgbase = python-bitstring
- pkgdesc = Python module designed to help make the creation,
manipulation and analysis of binary data as simple and natural as possible
- pkgver = 3.1.9
- pkgrel = 5
+ pkgdesc = A Python module to help you manage your bits
+ pkgver = 4.2.3
+ pkgrel = 1
url = https://github.com/scott-griffiths/bitstring
arch = any
license = MIT
+ checkdepends = python-hypothesis
+ checkdepends = python-pytest
+ makedepends = python-build
+ makedepends = python-installer
makedepends = python-setuptools
+ makedepends = python-wheel
depends = python
- source =
https://github.com/scott-griffiths/bitstring/archive/bitstring-3.1.9.tar.gz
- sha256sums =
32da255b20b93a15260a8498170411ef1f112de5e5011fd0ae81fd834edf5f07
+ depends = python-bitarray
+ source =
https://github.com/scott-griffiths/bitstring/archive/bitstring-4.2.3.tar.gz
+ sha256sums =
38a4275c6b23a60addf5a94d952fae5fe1f81cd76a2258c6380f1f3b2a17d0f3
pkgname = python-bitstring
=====================================
PKGBUILD
=====================================
@@ -1,31 +1,56 @@
# Maintainer: Santiago Torres-Arias <[email protected]>
-# Maintainer: nblock <nblock [/at\] archlinux DOT us>
+# Maintainer: Carl Smedstad <[email protected]>
+# Contributor: nblock <nblock [/at\] archlinux DOT us>
# Contributor: Thomas Conneely <tc116 at le dot ac dot uk>
pkgname=python-bitstring
-pkgver=3.1.9
-pkgrel=5
-pkgdesc='Python module designed to help make the creation, manipulation and
analysis of binary data as simple and natural as possible'
+_pkgname=${pkgname#python-}
+pkgver=4.2.3
+pkgrel=1
+pkgdesc='A Python module to help you manage your bits'
arch=('any')
url="https://github.com/scott-griffiths/bitstring"
license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-source=("https://github.com/scott-griffiths/bitstring/archive/${pkgname/python-}-${pkgver}.tar.gz")
-sha256sums=('32da255b20b93a15260a8498170411ef1f112de5e5011fd0ae81fd834edf5f07')
+depends=(
+ 'python'
+ 'python-bitarray'
+)
+makedepends=(
+ 'python-build'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-wheel'
+)
+checkdepends=(
+ 'python-hypothesis'
+ 'python-pytest'
+)
+source=("$url/archive/$_pkgname-$pkgver.tar.gz")
+sha256sums=('38a4275c6b23a60addf5a94d952fae5fe1f81cd76a2258c6380f1f3b2a17d0f3')
build() {
- # still unsure why the upstream tarball has the name repeated twice...
- cd "${srcdir}/${pkgname/python-}-${pkgname/python-}-${pkgver}"
+ cd "$_pkgname-$_pkgname-$pkgver"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd "$_pkgname-$_pkgname-$pkgver"
+ local pytest_args=(
+ # Requires python-gfloat which is not yet packaged.
+ # https://github.com/graphcore-research/gfloat
+ --ignore=tests/test_fp8.py
+ --ignore=tests/test_mxfp.py
- python setup.py build
+ # Deselect to avoid dependency on python-pytest-benchmark.
+ --deselect=tests/test_benchmarks.py
+ )
+ pytest "${pytest_args[@]}"
}
package() {
- cd "${srcdir}/${pkgname/python-}-${pkgname/python-}-${pkgver}"
-
- python setup.py install --root="${pkgdir}/" --optimize=1
- install -D -m0644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ cd "$_pkgname-$_pkgname-$pkgver"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}
# vim:set ts=2 sw=2 et:
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-bitstring/-/compare/f79d01a4b6f2ce034b5e9a93758d200efa05adde...8432821eaf73ae4c93ffcea7d1e9d277a3d4b0e1
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-bitstring/-/compare/f79d01a4b6f2ce034b5e9a93758d200efa05adde...8432821eaf73ae4c93ffcea7d1e9d277a3d4b0e1
You're receiving this email because of your account on gitlab.archlinux.org.