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

Daniel M. Capella polyzen at gemini.archlinux.org
Tue Sep 6 05:23:25 UTC 2022


    Date: Tuesday, September 6, 2022 @ 05:23:24
  Author: polyzen
Revision: 1294177

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   90 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 48 insertions(+), 42 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-06 05:23:05 UTC (rev 1294176)
+++ PKGBUILD	2022-09-06 05:23:24 UTC (rev 1294177)
@@ -1,42 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Josh Holbrook <josh.holbrook at gmail.com>
-
-pkgname=python-pyee
-pkgver=9.0.4
-pkgrel=1
-pkgdesc="Port of node.js's EventEmitter to python"
-arch=('any')
-url=https://github.com/jfhbrook/pyee
-license=('MIT')
-depends=('python-typing-extensions')
-makedepends=('python-setuptools')
-checkdepends=('python-mock' 'python-pytest-asyncio' 'python-pytest-trio'
-              'python-twisted')
-optdepends=('python-trio' 'python-twisted')
-source=("https://files.pythonhosted.org/packages/source/p/pyee/pyee-$pkgver.tar.gz")
-sha256sums=('2770c4928abc721f46b705e6a72b0c59480c4a69c9a83ca0b00bb994f1ea4b32')
-b2sums=('4402d50f5de27ccda64e731450d90cc62f80584e8603a0fda385f6b5598e905d6abaa760aa8e987443dc5990600535f2bd756334cf5b6d0e9d8bf59b4fcdba60')
-
-prepare() {
-  cd pyee-$pkgver
-  # Remove setup_requires list
-  sed -i '/setup_requires/,/\],/d' setup.py
-}
-
-build() {
-  cd pyee-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd pyee-$pkgver
-  python -m venv --system-site-packages test-env
-  test-env/bin/python setup.py install --optimize=1 --skip-build
-  test-env/bin/python -m pytest
-}
-
-package() {
-  cd pyee-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}

Copied: python-pyee/repos/community-any/PKGBUILD (from rev 1294176, python-pyee/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-06 05:23:24 UTC (rev 1294177)
@@ -0,0 +1,48 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Josh Holbrook <josh.holbrook at gmail.com>
+
+pkgname=python-pyee
+pkgver=9.0.4
+pkgrel=2
+pkgdesc="Port of node.js's EventEmitter to python"
+arch=('any')
+url=https://github.com/jfhbrook/pyee
+license=('MIT')
+depends=('python-typing-extensions')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+checkdepends=('python-mock' 'python-pytest-asyncio' 'python-pytest-trio'
+              'python-twisted')
+optdepends=('python-trio' 'python-twisted')
+source=("https://files.pythonhosted.org/packages/source/p/pyee/pyee-$pkgver.tar.gz")
+sha256sums=('2770c4928abc721f46b705e6a72b0c59480c4a69c9a83ca0b00bb994f1ea4b32')
+b2sums=('4402d50f5de27ccda64e731450d90cc62f80584e8603a0fda385f6b5598e905d6abaa760aa8e987443dc5990600535f2bd756334cf5b6d0e9d8bf59b4fcdba60')
+
+prepare() {
+  cd pyee-$pkgver
+  # Remove setup_requires list
+  sed -i '/setup_requires/,/\],/d' setup.py
+}
+
+build() {
+  cd pyee-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd pyee-$pkgver
+  python -m venv --system-site-packages test-env
+  test-env/bin/python -m installer dist/*.whl
+  test-env/bin/python -m pytest
+}
+
+package() {
+  cd pyee-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+
+  # Symlink license file
+  local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+  install -d "$pkgdir"/usr/share/licenses/$pkgname
+  ln -s "$site_packages"/pyee-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list