git » python-structlog.git » commit 183a8cc

upstream now uses PEP 517

author Chih-Hsuan Yen
2021-12-17 07:50:47 UTC
committer Chih-Hsuan Yen
2021-12-17 07:50:47 UTC
parent 746fcd7141dfdf004195042ac50b73c238db5309

upstream now uses PEP 517

python-six is no longer needed since version 20.2.0 [1]

[1] https://github.com/hynek/structlog/pull/244

PKGBUILD +9 -8

diff --git a/PKGBUILD b/PKGBUILD
index 0400b31..341387c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,23 @@
 
 pkgname=python-structlog
 # https://www.structlog.org/en/stable/changelog.html
-pkgver=21.2.0
-pkgrel=3
+pkgver=21.5.0
+pkgrel=1
 pkgdesc="Structured Logging for Python"
 url="https://www.structlog.org"
 license=('Apache')
 arch=('any')
-depends=('python-six')
-makedepends=('python-setuptools')
+depends=('python')
+makedepends=('python-build' 'python-flit-core' 'python-install')
 checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
-              'python-twisted' 'python-rapidjson' 'python-greenlet' 'python-pytest-asyncio')
+              'python-twisted' 'python-rapidjson' 'python-greenlet' 'python-pytest-asyncio'
+              'python-rich')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz")
-sha512sums=('6ffcb9a5fe4596e66b3b77c13281de67d3cfcb150a984d2b0fbf240d3c5e8b66ed7ac6a98859a0541531e99c126b022bb14ac2d751754dddf4e8f03dae316194')
+sha512sums=('d36388608ca540b6deec85b4d3ecc6878752ee3fc083fc37e51f5baa0e08ab45ade687461fdf071f580e226740498cf98d0ba159f6929cda2dee1d3e3b4f2a59')
 
 build() {
   cd structlog-$pkgver
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check() {
@@ -28,5 +29,5 @@ check() {
 
 package() {
   cd structlog-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
+  python -m install --optimize 0 1 --destdir="$pkgdir" dist/*.whl
 }