Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages /
python-gmpy2
Commits:
78d9f80c by Antonio Rojas at 2024-07-01T09:19:19+02:00
upgpkg: 2.2.0-1: Update to 2.2.0, run tests
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,19 +1,24 @@
pkgbase = python-gmpy2
pkgdesc = Provides C-coded Python modules for fast multiple-precision
arithmetic
- pkgver = 2.1.5
- pkgrel = 3
+ pkgver = 2.2.0
+ pkgrel = 1
url = https://github.com/aleaxit/gmpy
arch = x86_64
- license = LGPL2.1
+ license = LGPL-2.1-only
+ checkdepends = python-hypothesis
+ checkdepends = python-pytest
+ makedepends = git
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools
makedepends = python-wheel
+ depends = glibc
+ depends = gmp
depends = libmpc
+ depends = mpfr
depends = python
- source =
https://github.com/aleaxit/gmpy/archive/refs/tags/gmpy2-2.1.5.tar.gz
- source = python-3.12.patch
- sha256sums =
67ef729ff8e7f501e3f23324058386bac3fe0dea9b460317b27bde579c7cfbd5
- sha256sums =
6b0994285919e373d2e91b3e0662c7775f03a194a116b5170fdc41837dd3551e
+ depends = python-packaging
+ source = git+https://github.com/aleaxit/gmpy#tag=gmpy2_2_2_0
+ sha256sums =
51b1d6d444335d8fb86e5d2125014c6dad8d0bc2d3016d242a71e8427b1e47d8
pkgname = python-gmpy2
=====================================
PKGBUILD
=====================================
@@ -3,34 +3,43 @@
# Contributor: Alexander Slesarev <slesarew at gmail dot com>
pkgname=python-gmpy2
-pkgver=2.1.5
-pkgrel=3
+pkgver=2.2.0
+pkgrel=1
pkgdesc='Provides C-coded Python modules for fast multiple-precision
arithmetic'
arch=(x86_64)
url='https://github.com/aleaxit/gmpy'
-license=(LGPL2.1)
-depends=(libmpc
- python)
-makedepends=(python-build
+license=(LGPL-2.1-only)
+depends=(glibc
+ gmp
+ libmpc
+ mpfr
+ python
+ python-packaging)
+makedepends=(git
+ python-build
python-installer
python-setuptools
python-wheel)
-source=(https://github.com/aleaxit/gmpy/archive/refs/tags/gmpy2-$pkgver.tar.gz
- python-3.12.patch)
-sha256sums=('67ef729ff8e7f501e3f23324058386bac3fe0dea9b460317b27bde579c7cfbd5'
- '6b0994285919e373d2e91b3e0662c7775f03a194a116b5170fdc41837dd3551e')
-
-prepare() {
- patch -d gmpy-gmpy2-$pkgver -p1 < python-3.12.patch
-}
+checkdepends=(python-hypothesis
+ python-pytest)
+source=(git+https://github.com/aleaxit/gmpy#tag=gmpy2_${pkgver//./_})
+sha256sums=('51b1d6d444335d8fb86e5d2125014c6dad8d0bc2d3016d242a71e8427b1e47d8')
build() {
- cd gmpy-gmpy2-$pkgver
+ cd gmpy
python -m build --wheel --no-isolation
}
+check() {
+ cd gmpy
+ python -m venv --system-site-packages test-env
+ test-env/bin/python -m installer dist/*.whl
+ rm -r gmpy2
+ test-env/bin/python -m pytest -v
+}
+
package() {
- cd gmpy-gmpy2-$pkgver
+ cd gmpy
python -m installer --destdir="$pkgdir" dist/*.whl
install -d -m 755 $pkgdir/usr/share/doc/$pkgname
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gmpy2/-/commit/78d9f80cd335c659731c30d023d287ddeea773d4
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/python-gmpy2/-/commit/78d9f80cd335c659731c30d023d287ddeea773d4
You're receiving this email because of your account on gitlab.archlinux.org.