[arch-commits] Commit in python-installer/repos/community-any (PKGBUILD PKGBUILD)

Filipe Laíns ffy00 at gemini.archlinux.org
Thu Feb 17 03:16:46 UTC 2022


    Date: Thursday, February 17, 2022 @ 03:16:46
  Author: ffy00
Revision: 1133639

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   98 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 49 insertions(+), 49 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-17 03:16:42 UTC (rev 1133638)
+++ PKGBUILD	2022-02-17 03:16:46 UTC (rev 1133639)
@@ -1,49 +0,0 @@
-# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-_pkgname=installer
-pkgname=python-$_pkgname
-pkgver=0.5.0
-pkgrel=1
-pkgdesc='Low-level library for installing a Python package from a wheel distribution'
-arch=('any')
-url='https://github.com/pradyunsg/installer'
-license=('MIT')
-depends=('python')
-makedepends=('git' 'python-flit-core' 'python-setuptools'
-             'python-sphinx' 'python-sphinx-furo' 'python-myst-parser'
-             'python-sphinx-argparse')
-checkdepends=('python-pytest' 'python-mock')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
-sha256sums=('0cd6bdab3b358cf7e8749370b99aef9e12202751271c5ddb22126599b34dc665')
-sha512sums=('7ff44c24d43080737261ad6b422b202638a414429cfc674d54f66a53e28a451dc29c73dc721bcd26bb447b80e965dc2c6a1c8bc5543eb39763776f6f4ed2bfcc')
-
-build() {
-  cd $_pkgname-$pkgver
-
-  python setup.py build
-
-  PYTHONPATH=src sphinx-build -b dirhtml -v docs docs/build/html
-}
-
-check() {
-  cd $_pkgname-$pkgver
-
-  PYTHONPATH=src pytest
-}
-
-package() {
-  cd $_pkgname-$pkgver
-
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-
-  # remove windows entrypoint scripts executables
-  rm "$pkgdir"/usr/lib/python*/site-packages/installer/_scripts/*.exe
-
-  # install documentation
-  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
-  cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
-  rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
-
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
-}

Copied: python-installer/repos/community-any/PKGBUILD (from rev 1133638, python-installer/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-17 03:16:46 UTC (rev 1133639)
@@ -0,0 +1,49 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+_pkgname=installer
+pkgname=python-$_pkgname
+pkgver=0.5.0
+pkgrel=2
+pkgdesc='Low-level library for installing a Python package from a wheel distribution'
+arch=('any')
+url='https://github.com/pradyunsg/installer'
+license=('MIT')
+depends=('python')
+makedepends=('git' 'python-flit-core' 'python-build'
+             'python-sphinx' 'python-sphinx-furo' 'python-myst-parser'
+             'python-sphinx-argparse')
+checkdepends=('python-pytest' 'python-mock')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
+sha256sums=('e993aa80138d7aa463f1950f013a884c7bad9b1148f083753351d97f3727dc4c')
+sha512sums=('8731bbf8a51b1094dc87f84575eec07a650988bdeddf205d04cf80a5088eac0d8b2927022864f4011a9562fcaae9f511747e5672f94ec3cce1dccdfa833c4fce')
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python -m build -wn
+
+  PYTHONPATH=src sphinx-build -b dirhtml -v docs docs/build/html
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=src pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=src python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # remove windows entrypoint scripts executables
+  rm "$pkgdir"/usr/lib/python*/site-packages/installer/_scripts/*.exe
+
+  # install documentation
+  install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
+  cp -r -a --no-preserve=ownership docs/build/html "$pkgdir"/usr/share/doc/$pkgname
+  rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list