Date: Sunday, January 8, 2023 @ 17:34:25
  Author: foxboron
Revision: 1382028

archrelease: copy trunk to community-any

Added:
  python-formencode/repos/community-any/PKGBUILD
    (from rev 1382027, python-formencode/trunk/PKGBUILD)
Deleted:
  python-formencode/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   71 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 38 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-08 17:34:05 UTC (rev 1382027)
+++ PKGBUILD    2023-01-08 17:34:25 UTC (rev 1382028)
@@ -1,33 +0,0 @@
-# Maintainer: Morten Linderud <[email protected]>
-
-pkgname=python-formencode
-_pkgname=formencode
-_pypi=FormEncode
-pkgver=2.0.1
-pkgrel=2
-pkgdesc="A validation library for Python."
-arch=("any")
-url="http://www.formencode.org/en/latest/";
-license=("MIT")
-depends=("python" "python-six")
-checkdepends=("python-pytest" "python-dnspython" "python-pycountry")
-makedepends=("python-setuptools" "python-setuptools-scm-git-archive")
-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')
-
-build() {
-  cd "${_pypi}-${pkgver}"
-  python setup.py build
-}
-
-check(){
-  cd "${_pypi}-${pkgver}"
-  python -m unittest
-}
-
-package() {
-  cd "${_pypi}-${pkgver}"
-  python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
-  install -Dm0644 LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}

Copied: python-formencode/repos/community-any/PKGBUILD (from rev 1382027, 
python-formencode/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-08 17:34:25 UTC (rev 1382028)
@@ -0,0 +1,38 @@
+# Maintainer: Morten Linderud <[email protected]>
+
+pkgname=python-formencode
+_pkgname=formencode
+_pypi=FormEncode
+pkgver=2.0.1
+pkgrel=3
+pkgdesc="A validation library for Python."
+arch=("any")
+url="http://www.formencode.org/en/latest/";
+license=("MIT")
+depends=("python" "python-six")
+checkdepends=("python-pytest" "python-dnspython" "python-pycountry")
+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 -m build --wheel --no-isolation
+}
+
+check(){
+  cd "${_pypi}-${pkgver}"
+  python -m unittest
+}
+
+package() {
+  cd "${_pypi}-${pkgver}"
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm0644 LICENSE.txt 
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}

Reply via email to