Date: Tuesday, January 3, 2023 @ 12:02:54
  Author: dvzrv
Revision: 1374920

upgpkg: python-proxy.py 2.4.3-2: Rebuild to remove 
python-setuptools-scm-git-archive.

Remove the use of python-setuptools-scm-git-archive.
Add python-setuptools to depends as it is required for version check.

Modified:
  python-proxy.py/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-03 11:57:12 UTC (rev 1374919)
+++ PKGBUILD    2023-01-03 12:02:54 UTC (rev 1374920)
@@ -2,14 +2,14 @@
 pkgname=python-proxy.py
 _name=${pkgname#python-}
 pkgver=2.4.3
-pkgrel=1
+pkgrel=2
 pkgdesc='Lightweight HTTP, HTTPS, HTTP2 and WebSockets proxy server'
 arch=('any')
 url='https://github.com/abhinavsingh/proxy.py'
 license=('BSD')
-depends=('python')
+depends=('python' 'python-setuptools')
 makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
-             'python-setuptools-scm-git-archive' 'python-wheel')
+             'python-wheel')
 checkdepends=('python-httpx' 'python-pytest' 'python-pytest-asyncio' 
'python-pytest-cov' 'python-pytest-mock')
 optdepends=('python-httpx: Cloudflare DNS resolver plugin support'
             'python-paramiko: proxy over SSH tunnel support')
@@ -20,6 +20,9 @@
 
 prepare() {
        cd "$_name-$pkgver"
+       # remove the use of python-setuptools-scm-git
+       # TODO: add upstream ticket/ change upstream and bump use of 
python-setuptools-scm to >= 7.0.5
+       sed -e '/setuptools-scm-git-archive/d' -i pyproject.toml
        # Fix pytest-asyncio 0.17.0 DeprecationWarning 
(https://github.com/abhinavsingh/proxy.py/pull/998)
        patch --forward --strip=1 
--input="$srcdir/python-proxy.py-2.4.0_fix-asyncio-deprecationwarning.patch"
 }

Reply via email to