Date: Sunday, January 8, 2023 @ 17:34:05
  Author: foxboron
Revision: 1382027

upgpkg: python-formencode 2.0.1-3

Modified:
  python-formencode/trunk/PKGBUILD

----------+
 PKGBUILD |   13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-08 16:43:36 UTC (rev 1382026)
+++ PKGBUILD    2023-01-08 17:34:05 UTC (rev 1382027)
@@ -4,7 +4,7 @@
 _pkgname=formencode
 _pypi=FormEncode
 pkgver=2.0.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A validation library for Python."
 arch=("any")
 url="http://www.formencode.org/en/latest/";
@@ -11,14 +11,19 @@
 license=("MIT")
 depends=("python" "python-six")
 checkdepends=("python-pytest" "python-dnspython" "python-pycountry")
-makedepends=("python-setuptools" "python-setuptools-scm-git-archive")
+makedepends=('python-build' 'python-installer' 'python-wheel' 
'python-setuptools' 'python-setuptools-scm')
 
source=("$pkgname-$pkgver.tar.gz::https://github.com/formencode/formencode/archive/$pkgver.tar.gz";)
 
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pypi}-${pkgver}.tar.gz";)
 sha256sums=('8f2974112c2557839d5bae8b76490104c03830785d923abbdef148bf3f710035')
 
+prepare() {
+  cd "${_pypi}-${pkgver}"
+  sed '/setuptools_scm_git_archive/d' -i setup.py 
+}
+
 build() {
   cd "${_pypi}-${pkgver}"
-  python setup.py build
+  python -m build --wheel --no-isolation
 }
 
 check(){
@@ -28,6 +33,6 @@
 
 package() {
   cd "${_pypi}-${pkgver}"
-  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
+  python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm0644 LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
 }

Reply via email to