Date: Monday, April 17, 2023 @ 14:06:43
  Author: dvzrv
Revision: 1446878

archrelease: copy trunk to community-any

Added:
  python-ansible-compat/repos/community-any/PKGBUILD
    (from rev 1446877, python-ansible-compat/trunk/PKGBUILD)
Deleted:
  python-ansible-compat/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   99 ++++++++++++++++++++++++++++++++++++-------------------------
 1 file changed, 60 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-17 14:06:33 UTC (rev 1446877)
+++ PKGBUILD    2023-04-17 14:06:43 UTC (rev 1446878)
@@ -1,39 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=ansible-compat
-pkgname=python-ansible-compat
-pkgver=3.0.1
-pkgrel=1
-pkgdesc="Functions that help interacting with various versions of Ansible"
-arch=(any)
-url="https://github.com/ansible-community/ansible-compat";
-license=(MIT)
-depends=(ansible-core python-jsonschema python-packaging python-pyyaml 
python-subprocess-tee)
-makedepends=(python-build python-installer python-setuptools 
python-setuptools-scm python-wheel)
-checkdepends=(python-pytest python-pytest-mock)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha256sums=('d7dc5e4b7fade9b7375c568a24475b7be81024cac2a20caef3260ef0b51287b4')
-b2sums=('a1d08311e1b61d8387ef82db65581df4ab7cb4a2520bff9173845fa5b9fe18d173afd4306874967fb40c007546f36d78349a503bd09ae14257a38a59e1cbb22f')
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
-  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-
-  cd $_name-$pkgver
-  # install to temporary location, as importlib is used
-  python -m installer --destdir=test_dir dist/*.whl
-  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
-  # disable broken tests: https://github.com/ansible/ansible-compat/issues/210
-  pytest -vv -c /dev/null -k 'not test_prerun_reqs_v1 and not 
test_prerun_reqs_v2'
-}
-
-package() {
-  cd $_name-$pkgver
-  python -m installer --destdir="$pkgdir" dist/*.whl
-  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
-  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
-}

Copied: python-ansible-compat/repos/community-any/PKGBUILD (from rev 1446877, 
python-ansible-compat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-17 14:06:43 UTC (rev 1446878)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=ansible-compat
+pkgname=python-ansible-compat
+pkgver=3.0.2
+pkgrel=1
+pkgdesc="Functions that help interacting with various versions of Ansible"
+arch=(any)
+url="https://github.com/ansible-community/ansible-compat";
+license=(MIT)
+depends=(
+  ansible-core
+  python
+  python-jsonschema
+  python-packaging
+  python-pyyaml
+  python-subprocess-tee
+)
+makedepends=(
+  python-build
+  python-installer
+  python-setuptools
+  python-setuptools-scm
+  python-wheel
+)
+checkdepends=(
+  python-pytest
+  python-pytest-mock
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('a10ea191f9efe08590ff64cb46a31af1f8142c08618db1a4bc827ed257c68230')
+b2sums=('d09ae255e08531b26f8cac7082a3ad0cc24f3772b7769b75d644a846dcc1ec0ff65fe1a7e351eeecadd70caae5ef5b5146396df5ec586e10296e116310333e6b')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  local pytest_options=(
+    -vv
+    # disable broken tests: 
https://github.com/ansible/ansible-compat/issues/210
+    --deselect test/test_runtime.py::test_prerun_reqs_v1
+    --deselect test/test_runtime.py::test_prerun_reqs_v2
+  )
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="$PWD/test_dir/$_site_packages:$PYTHONPATH"
+  pytest "${pytest_options[@]}"
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}

Reply via email to