Date: Wednesday, March 1, 2023 @ 08:01:22
  Author: felixonmars
Revision: 1405777

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   62 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 31 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-01 08:01:09 UTC (rev 1405776)
+++ PKGBUILD    2023-03-01 08:01:22 UTC (rev 1405777)
@@ -1,31 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-dict2xml
-pkgver=1.7.2
-pkgrel=1
-pkgdesc="Small utility to convert a python dictionary into an XML string"
-arch=('any')
-url="https://github.com/delfick/python-dict2xml";
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools')
-checkdepends=('python-pytest' 'python-noseofyeti')
-source=("https://github.com/delfick/python-dict2xml/archive/release-$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('5da174aaa005a51177335d956977e9b82be55f343f1209515346bdf6ec27fe2909796928995f261aa88f1bb4ff0ec62facedf22febab4562ab868e0dd71ad7ab')
-
-build() {
-  cd python-dict2xml-release-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd python-dict2xml-release-$pkgver
-  pytest
-}
-
-package() {
-  cd python-dict2xml-release-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-dict2xml/repos/community-any/PKGBUILD (from rev 1405776, 
python-dict2xml/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-03-01 08:01:22 UTC (rev 1405777)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-dict2xml
+pkgver=1.7.3
+pkgrel=1
+pkgdesc="Small utility to convert a python dictionary into an XML string"
+arch=('any')
+url="https://github.com/delfick/python-dict2xml";
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-hatchling')
+checkdepends=('python-pytest' 'python-noseofyeti')
+source=("https://github.com/delfick/python-dict2xml/archive/release-$pkgver/$pkgname-$pkgver.tar.gz";)
+sha512sums=('5520c10fe9965c507684d282adbf31a80604c0f043d9cfe912a235779536af2a671d34570a0fea31d16b686c679ceca54a3641f727a4ba4f2036d6c5784df433')
+
+build() {
+  cd python-dict2xml-release-$pkgver
+  python -m build -nw
+}
+
+check() {
+  cd python-dict2xml-release-$pkgver
+  pytest
+}
+
+package() {
+  cd python-dict2xml-release-$pkgver
+  python -m installer -d "$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to