git » python-structlog.git » commit af999bd

upgpkg: 22.2.0-1

author Chih-Hsuan Yen
2022-11-21 06:59:14 UTC
committer Chih-Hsuan Yen
2022-11-21 06:59:14 UTC
parent 253704656851cd6c8fd0318d03bf204648215519

upgpkg: 22.2.0-1

PKGBUILD +8 -4

diff --git a/PKGBUILD b/PKGBUILD
index f8582b3..2b8cd18 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,16 +3,17 @@
 
 pkgname=python-structlog
 # https://www.structlog.org/en/stable/changelog.html
-pkgver=22.1.0
+pkgver=22.2.0
 # curl https://api.github.com/repos/hynek/structlog/git/ref/tags/$pkgver | jq -r .object.sha
-_tag=2b4731d58cdb51350938505fc5f588ec9cf41cb1
+_tag=260d80147154c894b2d04a6d003eab7d9d5569c8
 pkgrel=1
 pkgdesc="Structured Logging for Python"
 url="https://www.structlog.org"
 license=('Apache')
 arch=('any')
 depends=('python')
-makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
+makedepends=('git' 'python-build' 'python-installer'
+             'python-hatchling' 'python-hatch-vcs' 'python-hatch-fancy-pypi-readme')
 checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
               'python-twisted' 'python-rapidjson' 'python-greenlet' 'python-pytest-asyncio'
               'python-rich')
@@ -40,7 +41,10 @@ build() {
 
 check() {
   cd structlog
-  PYTHONPATH="$PWD"/src pytest
+  # Install to a temporary root for test_packaging
+  pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
+  python -m installer --destdir="$PWD/tmp_install" dist/*.whl
+  PYTHONPATH="$PWD/tmp_install/usr/lib/python$pyver/site-packages" pytest tests
 }
 
 package() {