[arch-commits] Commit in python-structlog/trunk (PKGBUILD)
Chih-Hsuan Yen
yan12125 at gemini.archlinux.org
Fri Dec 17 07:50:47 UTC 2021
Date: Friday, December 17, 2021 @ 07:50:47
Author: yan12125
Revision: 1075896
upgpkg: python-structlog 21.5.0-1; 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
Modified:
python-structlog/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-17 07:50:05 UTC (rev 1075895)
+++ PKGBUILD 2021-12-17 07:50:47 UTC (rev 1075896)
@@ -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 @@
package() {
cd structlog-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
+ python -m install --optimize 0 1 --destdir="$pkgdir" dist/*.whl
}
More information about the arch-commits
mailing list