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

Antonio Rojas arojas at gemini.archlinux.org
Sat Apr 16 20:21:44 UTC 2022


    Date: Saturday, April 16, 2022 @ 20:21:44
  Author: arojas
Revision: 1186732

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 32 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-04-16 20:21:32 UTC (rev 1186731)
+++ PKGBUILD	2022-04-16 20:21:44 UTC (rev 1186732)
@@ -1,38 +0,0 @@
-# Maintainer: Kyle Keen <keenerd at gmail.com>
-
-pkgname=python-entrypoints
-_name=entrypoints
-pkgver=0.4
-pkgrel=1
-pkgdesc="Discover and load entry points from installed packages."
-arch=('any')
-url="https://github.com/takluyver/entrypoints"
-#url="https://pypi.python.org/pypi/entrypoints"
-license=('MIT')
-depends=('python')
-makedepends=('python')
-#makedepends=('python-pip')
-# several sources because the WHL doesn't come with a license
-# and pypi version is the only one with setup.py
-source=("$pkgname-$pkgver.tgz::https://github.com/takluyver/entrypoints/archive/$pkgver.tar.gz"
-        "https://files.pythonhosted.org/packages/py3/e/$_name/$_name-$pkgver-py3-none-any.whl"
-        "$pkgname-pypi-$pkgver.tgz::https://pypi.io/packages/source/e/$_name/$_name-$pkgver.tar.gz")
-md5sums=('9d37abd7147c6b7e0af55adc95691062'
-         '1c8f717951f0d2f0125739753eda6bdc'
-         '3acd8b72119a8fb1eac7030c24ac6b49')
-
-package() {
-  cd "$srcdir"
-  # install is like this because of dist-info related bug report
-  # pip actually doesn't do much and is remarkably slow
-  #pip install --compile --no-deps --ignore-installed --root="$pkgdir" *.whl
-  install -Dm644 entrypoints.py "$pkgdir/usr/lib/python3.10/site-packages/entrypoints.py"
-  _dist="entrypoints-$pkgver.dist-info"
-  cd $_dist
-  for _i in ./*; do
-    install -Dm644 $_i "$pkgdir/usr/lib/python3.10/site-packages/$_dist/$_i"
-  done
-
-  cd "$srcdir/entrypoints-$pkgver"
-  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}

Copied: python-entrypoints/repos/community-any/PKGBUILD (from rev 1186731, python-entrypoints/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-04-16 20:21:44 UTC (rev 1186732)
@@ -0,0 +1,32 @@
+# Maintainer: Kyle Keen <keenerd at gmail.com>
+
+pkgname=python-entrypoints
+_name=entrypoints
+pkgver=0.4
+pkgrel=2
+pkgdesc="Discover and load entry points from installed packages."
+arch=('any')
+url="https://github.com/takluyver/entrypoints"
+license=('MIT')
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-flit-core')
+checkdepends=('python-pytest')
+source=(https://github.com/takluyver/entrypoints/archive/$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('d2197a94aa73e70a7f60600e654ac9918ca2a0ee5480eb875296c42220a02272')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -v
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}



More information about the arch-commits mailing list