Date: Monday, January 9, 2023 @ 19:17:59
  Author: dvzrv
Revision: 1382160

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-01-09 19:17:34 UTC (rev 1382159)
+++ PKGBUILD    2023-01-09 19:17:59 UTC (rev 1382160)
@@ -1,51 +0,0 @@
-# Maintainer: Maxime Gauduin <[email protected]>
-# Contributor: cclin <[email protected]>
-
-pkgname=python-aiofiles
-pkgver=22.1.0
-pkgrel=2
-pkgdesc='File support for asyncio'
-arch=(any)
-license=(APACHE)
-url=https://github.com/Tinche/aiofiles
-depends=(python)
-makedepends=(
-  git
-  python-build
-  python-installer
-  python-poetry-core
-)
-checkdepends=(
-  python-coverage
-  python-poetry
-  python-pytest-asyncio
-  python-pytest
-  python-pytest-cov
-  python-setuptools
-  python-tox
-)
-_tag=9d697f5857b5e49bad485212d9d81917ce65b607
-source=(git+https://github.com/Tinche/aiofiles.git#tag=${_tag})
-sha256sums=(SKIP)
-
-pkgver() {
-  cd aiofiles
-  git describe --tags | sed 's/^v//'
-}
-
-build() {
-  cd aiofiles
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd aiofiles
-  SETUPTOOLS_USE_DISTUTILS=stdlib tox -e py310
-}
-
-package() {
-  python -m installer --destdir="${pkgdir}" aiofiles/dist/*.whl
-  install -Dm 644 aiofiles/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-aiofiles/
-}
-
-# vim: ts=2 sw=2 et:

Copied: python-aiofiles/repos/community-any/PKGBUILD (from rev 1382159, 
python-aiofiles/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-01-09 19:17:59 UTC (rev 1382160)
@@ -0,0 +1,49 @@
+# Maintainer: Maxime Gauduin <[email protected]>
+# Contributor: cclin <[email protected]>
+
+pkgname=python-aiofiles
+pkgver=22.1.0
+pkgrel=3
+pkgdesc='File support for asyncio'
+arch=(any)
+license=(APACHE)
+url=https://github.com/Tinche/aiofiles
+depends=(python)
+makedepends=(
+  git
+  python-build
+  python-installer
+  python-poetry-core
+)
+checkdepends=(
+  python-pytest-asyncio
+  python-pytest
+)
+_tag=9d697f5857b5e49bad485212d9d81917ce65b607
+source=(git+https://github.com/Tinche/aiofiles.git#tag=${_tag})
+sha256sums=(SKIP)
+
+pkgver() {
+  cd aiofiles
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd aiofiles
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  cd aiofiles
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$site_packages:$PYTHONPATH"
+  pytest -vv
+}
+
+package() {
+  python -m installer --destdir="${pkgdir}" aiofiles/dist/*.whl
+  install -Dm 644 aiofiles/LICENSE -t 
"${pkgdir}"/usr/share/licenses/python-aiofiles/
+}
+
+# vim: ts=2 sw=2 et:

Reply via email to