[arch-commits] Commit in python-tomli/repos/extra-any (PKGBUILD PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Sat Nov 27 23:10:25 UTC 2021


    Date: Saturday, November 27, 2021 @ 23:10:25
  Author: felixonmars
Revision: 429404

archrelease: copy trunk to extra-any

Added:
  python-tomli/repos/extra-any/PKGBUILD
    (from rev 429403, python-tomli/trunk/PKGBUILD)
Deleted:
  python-tomli/repos/extra-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-27 23:10:17 UTC (rev 429403)
+++ PKGBUILD	2021-11-27 23:10:25 UTC (rev 429404)
@@ -1,38 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgname=python-tomli
-pkgver=1.2.2
-pkgrel=1
-pkgdesc="A lil' TOML parser"
-url="https://github.com/hukkin/tomli"
-license=('MIT')
-arch=('any')
-depends=('python')
-makedepends=('python-dephell' 'python-setuptools')
-checkdepends=('python-pytest' 'python-dateutil')
-source=("https://github.com/hukkin/tomli/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha512sums=('460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605')
-
-prepare() {
-  cd tomli-$pkgver
-  # flit is not needed at runtime
-  sed -i '/flit_core/d' pyproject.toml
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd tomli-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd tomli-$pkgver
-  python -m pytest
-}
-
-package() {
-  cd tomli-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1
-
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-tomli/repos/extra-any/PKGBUILD (from rev 429403, python-tomli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-27 23:10:25 UTC (rev 429404)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tomli
+pkgver=1.2.2
+pkgrel=2
+pkgdesc="A lil' TOML parser"
+url="https://github.com/hukkin/tomli"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-pyproject2setuppy')
+checkdepends=('python-pytest' 'python-dateutil')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hukkin/tomli/archive/$pkgver.tar.gz")
+sha512sums=('460ad8ae9a342d82ef12911c0d0e246c1434a5d40d898e91f6c05bf37b7bf9921da05e004c36907d623a797a7a215c1c3faf3f9a2b940f3867b142847a188605')
+
+build() {
+  cd tomli-$pkgver
+  python -m pyproject2setuppy.main build
+}
+
+check() {
+  cd tomli-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd tomli-$pkgver
+  python -m pyproject2setuppy.main install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list