Date: Tuesday, January 3, 2023 @ 11:42:21
Author: dvzrv
Revision: 1374907
upgpkg: python-cheroot 9.0.0-2: Rebuild to remove
python-setuptools-scm-git-archive.
Remove the use of python-setuptools-scm-git-archive.
Add python-jaraco.text to depends (undocumented dependency).
Add TODOs.
Modified:
python-cheroot/trunk/PKGBUILD
----------+
PKGBUILD | 18 +++++++++++++++---
1 file changed, 15 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-03 11:42:17 UTC (rev 1374906)
+++ PKGBUILD 2023-01-03 11:42:21 UTC (rev 1374907)
@@ -5,11 +5,17 @@
pkgname=python-cheroot
pkgdesc="Highly-optimized, pure-python HTTP server"
pkgver=9.0.0
-pkgrel=1
+pkgrel=2
arch=('any')
url="https://github.com/cherrypy/cheroot"
license=('MIT')
-depends=('python-jaraco.functools' 'python-more-itertools' 'python-six')
+depends=(
+ 'python-jaraco.functools'
+ # NOTE: open ticket upstream about this missing
+ python-jaraco.text # undocumented, but required in
cheroot/workers/threadpool.py
+ 'python-more-itertools'
+ 'python-six'
+)
optdepends=(
'python-pyopenssl: for SSL and certificate handling within cheroot'
)
@@ -18,7 +24,7 @@
# TODO: package python-pytest-watch
# TODO: package python-pypytools
checkdepends=(python-apipkg python-chardet python-colorama
-python-jaraco.context python-jaraco.text python-portend python-pyopenssl
+python-jaraco.context python-portend python-pyopenssl
python-pytest python-pytest-forked python-pytest-rerunfailures
python-pytest-sugar python-pytest-xdist python-requests-toolbelt
python-requests-unixsocket python-trustme python-urllib3 python-watchdog)
@@ -26,6 +32,12 @@
sha512sums=('86ea0dd2cb4cde25f86b489b1d0bb27e3e7c1ba5449759ccecaae689cdcb349b968fd0c8fb8bc8273deff5e32a078bf40f4342f0c5a1f53bb8d2b968f44a453b')
b2sums=('5f5dd172cfc8fdd1318b22fc27060444a34343b6b83bbda4bd40c16d7cb0568c356f5fd14b0a7cdc74895d6707077ec54fcae54fb29b0d16a7c06e2cd36b1ee7')
+prepare() {
+ # remove the use of python-setuptools-scm-git-archive
+ # TODO: change upstream (and bump their setuptools-scm use to >= 7.0.5)
+ sed -e '/setuptools_scm_git_archive/d' -i $_name-$pkgver/pyproject.toml
+}
+
build() {
# setuptools wont find version from git tag
export SETUPTOOLS_SCM_PRETEND_VERSION="${pkgver}"