Date: Wednesday, January 4, 2023 @ 12:40:25
Author: dvzrv
Revision: 1375133
archrelease: copy trunk to community-any
Added:
python-ansible-compat/repos/community-any/PKGBUILD
(from rev 1375132, python-ansible-compat/trunk/PKGBUILD)
Deleted:
python-ansible-compat/repos/community-any/PKGBUILD
----------+
PKGBUILD | 77 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 39 insertions(+), 38 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-01-04 12:40:05 UTC (rev 1375132)
+++ PKGBUILD 2023-01-04 12:40:25 UTC (rev 1375133)
@@ -1,38 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=ansible-compat
-pkgname=python-ansible-compat
-pkgver=2.2.6
-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=(python-jsonschema python-packaging python-pyyaml
python-subprocess-tee)
-makedepends=(python-build python-installer python-setuptools
python-setuptools-scm python-wheel)
-checkdepends=(ansible python-flaky python-pytest python-pytest-mock)
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha256sums=('8bb3488327125a0948d38b766389a4819573343d5673aa78a7bed23eb9d5b28d')
-b2sums=('5022676dca1c2cb24e8f3e3387de8ef214979124b6d4a819f6328b2ffa0b19bddc5ef60131eb0133d809a214ecdf39fb5c01b197a44111e05a23740d4955c00c')
-
-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"
- pytest -vv -c /dev/null
-}
-
-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 1375132,
python-ansible-compat/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-01-04 12:40:25 UTC (rev 1375133)
@@ -0,0 +1,39 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=ansible-compat
+pkgname=python-ansible-compat
+pkgver=2.2.7
+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=(python-jsonschema python-packaging python-pyyaml
python-subprocess-tee)
+makedepends=(python-build python-installer python-setuptools
python-setuptools-scm python-wheel)
+checkdepends=(ansible python-flaky python-pytest python-pytest-mock)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha256sums=('08deddcd0a1dc6baabe674b07c6ff882118492c123d281f56f01905271a7ffc4')
+b2sums=('58f3b19400fb7646d37c585df07435e65a60f3e57d445c98e8089c6a2ed853cb5dbab682d85cee1a604e1b4de6dd137faa12bf78fe7913752839f95bd651435f')
+
+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/"
+}