Date: Saturday, April 22, 2023 @ 12:24:31
  Author: alerque
Revision: 1448302

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   69 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 35 insertions(+), 34 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-22 12:24:23 UTC (rev 1448301)
+++ PKGBUILD    2023-04-22 12:24:31 UTC (rev 1448302)
@@ -1,34 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Kewl <[email protected](rot13)>
-# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
-
-pkgname=python-pytimeparse
-_pyname=${pkgname#python-}
-pkgver=1.1.8
-pkgrel=4
-pkgdesc='A small library to parse various kinds of time expressions'
-arch=(any)
-url="https://github.com/wroberts/$_pyname";
-license=(MIT)
-depends=(python)
-makedepends=(python-setuptools)
-checkdepends=(python-nose)
-_archive="$_pyname-$pkgver"
-source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz";)
-sha256sums=('e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a')
-
-build() {
-       cd "$_archive"
-       python setup.py build
-}
-
-check() {
-       cd "$_archive"
-       nosetests
-}
-
-package() {
-       cd "$_archive"
-       python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
-}

Copied: python-pytimeparse/repos/community-any/PKGBUILD (from rev 1448301, 
python-pytimeparse/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-22 12:24:31 UTC (rev 1448302)
@@ -0,0 +1,35 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Kewl <[email protected](rot13)>
+# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com>
+
+pkgname=python-pytimeparse
+_pyname=${pkgname#python-}
+pkgver=1.1.8
+pkgrel=6
+pkgdesc='A small library to parse various kinds of time expressions'
+arch=(any)
+url="https://github.com/wroberts/$_pyname";
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools)
+checkdepends=(python-nose)
+_archive="$_pyname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/$_pyname/$_archive.tar.gz";)
+sha256sums=('e86136477be924d7e670646a98561957e8ca7308d44841e21f5ddea757556a0a')
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+check() {
+       cd "$_archive"
+       nosetests
+}
+
+package() {
+       cd "$_archive"
+       python -m installer -d "$pkgdir" dist/*.whl
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE.rst
+}

Reply via email to