Antonio Rojas pushed to branch main at Arch Linux / Packaging / Packages / 
fpylll


Commits:
9fbf6280 by Antonio Rojas at 2024-11-12T23:14:28+01:00
upgpkg: 0.6.1-4: fplll 5.5 rebuild

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,12 +1,13 @@
 pkgbase = fpylll
        pkgdesc = A Python interface for fplll
        pkgver = 0.6.1
-       pkgrel = 3
+       pkgrel = 4
        url = https://github.com/fplll/fpylll
        arch = x86_64
-       license = GPL2
+       license = GPL-2.0-only
        checkdepends = python-pytest
        makedepends = cython
+       makedepends = git
        makedepends = python-build
        makedepends = python-installer
        makedepends = python-setuptools
@@ -20,7 +21,7 @@ pkgbase = fpylll
        depends = python-cysignals
        depends = python-numpy
        depends = qd
-       source = 
https://github.com/fplll/fpylll/releases/download/0.6.1/fpylll-0.6.1.tar.gz
-       sha256sums = 
c8a18e735358adef4c398fcc2f567fda01f79f7321825d747dfb2d3dfeef33b3
+       source = git+https://github.com/fplll/fpylll#tag=0.6.1
+       sha256sums = SKIP
 
 pkgname = python-fpylll


=====================================
PKGBUILD
=====================================
@@ -3,11 +3,11 @@
 pkgbase=fpylll
 pkgname=python-fpylll
 pkgver=0.6.1
-pkgrel=3
+pkgrel=4
 pkgdesc='A Python interface for fplll'
 arch=(x86_64)
 url='https://github.com/fplll/fpylll'
-license=(GPL2)
+license=(GPL-2.0-only)
 depends=(fplll
          gcc-libs
          glibc
@@ -18,27 +18,32 @@ depends=(fplll
          python-numpy
          qd)
 makedepends=(cython
+             git
              python-build
              python-installer
              python-setuptools
              python-wheel)
 checkdepends=(python-pytest)
-source=(https://github.com/fplll/fpylll/releases/download/$pkgver/$pkgbase-$pkgver.tar.gz)
-sha256sums=('c8a18e735358adef4c398fcc2f567fda01f79f7321825d747dfb2d3dfeef33b3')
+source=(git+https://github.com/fplll/fpylll#tag=$pkgver)
+sha256sums=('SKIP')
+
+prepare() {
+  cd $pkgbase
+  git cherry-pick -n bc4396095e0efb683bcc579c45c4c7527574a4b0 
5e16a94815a6124937c0a26e355bbf7caddd39ad # Fix build with fplll 5.5
+}
 
 build() {
-  cd $pkgbase-$pkgver
+  cd $pkgbase
   python -m build --wheel --no-isolation
 }
 
 check() {
-  cd $pkgbase-$pkgver
-  python -m venv --system-site-packages test-env
-  test-env/bin/python -m installer dist/*.whl
-  test-env/bin/python -m pytest -v
+  cd $pkgbase
+  PYTHONPATH="$PWD"/$(ls -d build/lib.*) \
+  pytest -v tests
 }
 
 package_python-fpylll() {
-  cd $pkgbase-$pkgver
+  cd $pkgbase
   python -m installer --destdir="$pkgdir" dist/*.whl
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/fpylll/-/commit/9fbf6280400e70f69ca305a81a539542925d5db9

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/fpylll/-/commit/9fbf6280400e70f69ca305a81a539542925d5db9
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to