Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-maxminddb
Commits: b716821e by Felix Yan at 2024-01-17T20:26:49+02:00 upgpkg: 2.5.0-1 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,17 +1,24 @@ pkgbase = python-maxminddb pkgdesc = Reader for the MaxMind DB format - pkgver = 2.4.0 + pkgver = 2.5.0 pkgrel = 1 url = https://github.com/maxmind/MaxMind-DB-Reader-python arch = x86_64 license = Apache checkdepends = python-pytest + makedepends = git + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel + makedepends = python-setuptools-scm depends = python depends = libmaxminddb - source = https://github.com/maxmind/MaxMind-DB-Reader-python/archive/v2.4.0/python-maxminddb-2.4.0.tar.gz - source = https://github.com/maxmind/MaxMind-DB/archive/e3764a229ff98541884a3cd4bd7dc95f4ae5d466.tar.gz - sha512sums = 7176b861df489e78cfb48acd943070c3aa4f54a072c4ff446f8b1197b9156d82064d198753273e7c4dc24a05855eac5bad345e59d5bb78c31c42c7c40cebafc7 - sha512sums = 618bef60b69492aecd06467428e36d7a10f2aa846e7afd507b6eac1f3a6ceceeb14ed95654b629c9d2638634a5184658236b644edccc99ae2d24e35d9d1f6db9 + source = git+https://github.com/maxmind/MaxMind-DB-Reader-python.git#commit=e672eb88d1a25012a322c183aea34714234b7f64 + source = git+https://github.com/maxmind/MaxMind-DB.git + source = git+https://github.com/maxmind/libmaxminddb.git + sha512sums = SKIP + sha512sums = SKIP + sha512sums = SKIP pkgname = python-maxminddb ===================================== PKGBUILD ===================================== @@ -1,38 +1,43 @@ # Maintainer: Felix Yan <felixonm...@archlinux.org> pkgname=python-maxminddb -pkgver=2.4.0 -_testdatacommit=e3764a229ff98541884a3cd4bd7dc95f4ae5d466 +pkgver=2.5.0 +_commit=e672eb88d1a25012a322c183aea34714234b7f64 pkgrel=1 pkgdesc="Reader for the MaxMind DB format" url="https://github.com/maxmind/MaxMind-DB-Reader-python" license=('Apache') arch=('x86_64') depends=('python' 'libmaxminddb') -makedepends=('python-setuptools') +makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel' + 'python-setuptools-scm') checkdepends=('python-pytest') -source=("https://github.com/maxmind/MaxMind-DB-Reader-python/archive/v$pkgver/$pkgname-$pkgver.tar.gz" - https://github.com/maxmind/MaxMind-DB/archive/$_testdatacommit.tar.gz) -sha512sums=('7176b861df489e78cfb48acd943070c3aa4f54a072c4ff446f8b1197b9156d82064d198753273e7c4dc24a05855eac5bad345e59d5bb78c31c42c7c40cebafc7' - '618bef60b69492aecd06467428e36d7a10f2aa846e7afd507b6eac1f3a6ceceeb14ed95654b629c9d2638634a5184658236b644edccc99ae2d24e35d9d1f6db9') +source=("git+https://github.com/maxmind/MaxMind-DB-Reader-python.git#commit=$_commit" + "git+https://github.com/maxmind/MaxMind-DB.git" + "git+https://github.com/maxmind/libmaxminddb.git") +sha512sums=('SKIP' + 'SKIP' + 'SKIP') prepare() { - cd MaxMind-DB-Reader-python-$pkgver - rmdir tests/data - ln -s "$srcdir"/MaxMind-DB-$_testdatacommit tests/data + cd MaxMind-DB-Reader-python + git config submodule.tests/data.url "$srcdir"/MaxMind-DB + git config submodule.extension/libmaxminddb.url "$srcdir"/libmaxminddb + git -c protocol.file.allow=always submodule update --init } build() { - cd MaxMind-DB-Reader-python-$pkgver - python setup.py build + cd MaxMind-DB-Reader-python + python -m build -nw } check() { - cd MaxMind-DB-Reader-python-$pkgver - PYTHONPATH="build/lib.linux-$CARCH-cpython-311" pytest + cd MaxMind-DB-Reader-python + python -m installer -d tmp_install dist/*.whl + PYTHONPATH=tmp_install/usr/lib/python3.11/site-packages pytest } package() { - cd MaxMind-DB-Reader-python-$pkgver - python setup.py install --root="$pkgdir" --optimize=1 + cd MaxMind-DB-Reader-python + python -m installer -d "$pkgdir" dist/*.whl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-maxminddb/-/commit/b716821e68571f1507ce64e127a898d453fc6022 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-maxminddb/-/commit/b716821e68571f1507ce64e127a898d453fc6022 You're receiving this email because of your account on gitlab.archlinux.org.