[arch-commits] Commit in python-structlog/trunk (4 files)
Chih-Hsuan Yen
yan12125 at gemini.archlinux.org
Fri Jul 22 06:53:00 UTC 2022
Date: Friday, July 22, 2022 @ 06:53:00
Author: yan12125
Revision: 1255179
upgpkg: python-structlog 22.1.0-1; switching to signed sources
Added:
python-structlog/trunk/keys/
python-structlog/trunk/keys/pgp/
python-structlog/trunk/keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc
Modified:
python-structlog/trunk/PKGBUILD
-------------------------------------------------------+
PKGBUILD | 30 ++++++++++++----
keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc | 1
2 files changed, 24 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-22 06:14:35 UTC (rev 1255178)
+++ PKGBUILD 2022-07-22 06:53:00 UTC (rev 1255179)
@@ -3,7 +3,9 @@
pkgname=python-structlog
# https://www.structlog.org/en/stable/changelog.html
-pkgver=21.5.0
+pkgver=22.1.0
+# curl https://api.github.com/repos/hynek/structlog/git/ref/tags/$pkgver | jq -r .object.sha
+_tag=2b4731d58cdb51350938505fc5f588ec9cf41cb1
pkgrel=1
pkgdesc="Structured Logging for Python"
url="https://www.structlog.org"
@@ -10,24 +12,38 @@
license=('Apache')
arch=('any')
depends=('python')
-makedepends=('python-build' 'python-flit-core' 'python-installer')
+makedepends=('git' 'python-build' 'python-flit-core' 'python-installer')
checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
'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=('d36388608ca540b6deec85b4d3ecc6878752ee3fc083fc37e51f5baa0e08ab45ade687461fdf071f580e226740498cf98d0ba159f6929cda2dee1d3e3b4f2a59')
+optdepends=(
+ 'python-greenlet: for greenlet support in structlog.threadlocal (deprecated)'
+ 'python-twisted: for structlog.twisted'
+ 'python-rich: for structlog.dev'
+)
+# The PyPI tarball is signed, but missing conftest.py
+source=("git+https://github.com/hynek/structlog.git?signed#tag=$_tag")
+sha512sums=('SKIP')
+validpgpkeys=(
+ 'C2A04F86ACE28ADCF817DBB7AE2536227F69F181' # https://github.com/hynek.gpg
+)
+pkgver() {
+ cd structlog
+ git describe --tags
+}
+
build() {
- cd structlog-$pkgver
+ cd structlog
python -m build --wheel --no-isolation
}
check() {
- cd structlog-$pkgver
+ cd structlog
PYTHONPATH="$PWD"/src pytest
}
package() {
- cd structlog-$pkgver
+ cd structlog
python -m installer --destdir="$pkgdir" dist/*.whl
}
Added: keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc
===================================================================
(Binary files differ)
Index: python-structlog/trunk/keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc
===================================================================
--- keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc 2022-07-22 06:14:35 UTC (rev 1255178)
+++ keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc 2022-07-22 06:53:00 UTC (rev 1255179)
Property changes on: python-structlog/trunk/keys/pgp/C2A04F86ACE28ADCF817DBB7AE2536227F69F181.asc
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/pgp-keys
\ No newline at end of property
More information about the arch-commits
mailing list