Date: Thursday, April 13, 2023 @ 17:25:05
  Author: dvzrv
Revision: 1445922

archrelease: copy trunk to community-staging-any

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

----------+
 PKGBUILD |  130 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 60 insertions(+), 70 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-13 17:24:56 UTC (rev 1445921)
+++ PKGBUILD    2023-04-13 17:25:05 UTC (rev 1445922)
@@ -1,70 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=ansible-compat
-pkgname=python-ansible-compat
-pkgver=3.0.1
-pkgrel=2
-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=('d7dc5e4b7fade9b7375c568a24475b7be81024cac2a20caef3260ef0b51287b4')
-b2sums=('a1d08311e1b61d8387ef82db65581df4ab7cb4a2520bff9173845fa5b9fe18d173afd4306874967fb40c007546f36d78349a503bd09ae14257a38a59e1cbb22f')
-
-build() {
-  cd $_name-$pkgver
-  python -m build --wheel --skip-dependency-check --no-isolation
-}
-
-check() {
-  local pytest_options=(
-    # 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
-    # even more broken tests with Python 3.11: 
https://github.com/ansible/ansible-compat/issues/229
-    --deselect test/test_runtime.py::test_prepare_environment_with_collections
-    --deselect test/test_runtime.py::test_require_collection_wrong_version
-    --deselect test/test_runtime.py::test_require_collection
-    --deselect test/test_runtime.py::test_install_collection
-    --deselect test/test_runtime.py::test_install_collection_dest
-    --deselect test/test_runtime.py::test_upgrade_collection
-    --deselect test/test_runtime.py::test_require_collection_no_cache_dir
-    --deselect test/test_runtime.py::test_install_collection_from_disk[normal]
-    --deselect test/test_runtime.py::test_install_collection_from_disk[deep]
-    --deselect test/test_runtime_example.py::test_runtime_example
-  )
-  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"
-  pytest -vv -c /dev/null "${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/"
-}

Copied: python-ansible-compat/repos/community-staging-any/PKGBUILD (from rev 
1445921, python-ansible-compat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-04-13 17:25:05 UTC (rev 1445922)
@@ -0,0 +1,60 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=ansible-compat
+pkgname=python-ansible-compat
+pkgver=3.0.1
+pkgrel=3
+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=('d7dc5e4b7fade9b7375c568a24475b7be81024cac2a20caef3260ef0b51287b4')
+b2sums=('a1d08311e1b61d8387ef82db65581df4ab7cb4a2520bff9173845fa5b9fe18d173afd4306874967fb40c007546f36d78349a503bd09ae14257a38a59e1cbb22f')
+
+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