Date: Monday, May 15, 2023 @ 22:36:49
Author: antiz
Revision: 1461887
archrelease: copy trunk to community-testing-any
Added:
ansible-core/repos/community-testing-any/
ansible-core/repos/community-testing-any/PKGBUILD
(from rev 1461886, ansible-core/trunk/PKGBUILD)
----------+
PKGBUILD | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 94 insertions(+)
Copied: ansible-core/repos/community-testing-any/PKGBUILD (from rev 1461886,
ansible-core/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2023-05-15 22:36:49 UTC (rev 1461887)
@@ -0,0 +1,94 @@
+# Maintainer: David Runge <[email protected]>
+# Maintainer: Sven-Hendrik Haase <[email protected]>
+# Maintainer: Robin Candau <[email protected]>
+# Contributor: Bartłomiej Piotrowski <[email protected]>
+# Contributor: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: Chris <[email protected]>
+# Contributor: m0ikz <[email protected]>
+# Contributor: atweiden <[email protected]>
+
+pkgname=ansible-core
+pkgver=2.15.0
+pkgrel=1
+pkgdesc='Radically simple IT automation platform'
+arch=('any')
+url='https://pypi.org/project/ansible-core'
+license=('GPL3')
+depends=(
+ 'python'
+ 'python-cryptography'
+ 'python-jinja'
+ 'python-packaging'
+ 'python-pyyaml'
+ 'python-resolvelib'
+ # not directly required, but either convenient or indirectly required
+ 'python-paramiko'
+ 'python-typing-extensions'
+)
+makedepends=(
+ 'python-build'
+ 'python-docutils'
+ 'python-installer'
+ 'python-setuptools'
+ 'python-straight.plugin'
+ 'python-wheel'
+)
+checkdepends=(
+ 'git'
+ 'openssh'
+ 'python-bcrypt'
+ 'python-botocore'
+ 'python-passlib'
+ 'python-pexpect'
+ 'python-py' # missing as dependency of python-pytest-forked
+ 'python-pytest'
+ 'python-pytest-mock'
+ 'python-pytest-xdist'
+ 'python-pytest-forked'
+ 'python-pywinrm'
+ 'python-voluptuous'
+)
+optdepends=(
+ 'python-dnspython: for dig lookup'
+ 'python-jmespath: json_query support'
+ 'python-netaddr: for the ipaddr filter'
+ 'python-passlib: crypt values for vars_prompt'
+ 'python-pip: for module to manage Python libarary dependencies'
+ 'python-pywinrm: connect to Windows machines'
+ 'python-setuptools: for module to manage Python libarary dependencies'
+ 'python-systemd: for journald support'
+ 'sshpass: for ssh connections with password'
+)
+provides=('python-ansible' 'ansible-base')
+replaces=('ansible-base')
+backup=('etc/ansible/ansible.cfg')
+source=("https://pypi.python.org/packages/source/a/ansible-core/ansible-core-${pkgver}.tar.gz")
+sha512sums=('aebb43840380854e7759656a0b08579a8fbdddbf2d204c47fb16cdb73ffd540df5ad56e5bf4a78a338804a3d40f9b042ea50b2b1853aaef6b7c2f0aab7a95432')
+b2sums=('58d92d3d8cbc87d9c2c606317bae3b6841c66b9600153b38be912b02dbc19069ff8e755daa574e394ac5d12c04859640f0e2af17ed0adeb8a12da76979c163d3')
+
+build() {
+ cd $pkgname-$pkgver
+ python -m build --wheel --no-isolation
+
+ make docs
+}
+
+check() {
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+
+ # tests require upstream wrapper to find ansible-core internals:
https://github.com/ansible/ansible/issues/80472
+ cd $pkgname-$pkgver
+ # we do not have libselinux packaged
+ rm -v test/units/module_utils/basic/test_selinux.py
+ bin/ansible-test units --python $python_version --truncate 0
+}
+
+package() {
+ cd $pkgname-$pkgver
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ install -Dm644 COPYING -t "${pkgdir}"/usr/share/doc/${pkgname}/
+ install -Dm644 examples/ansible.cfg -t "${pkgdir}"/etc/ansible/
+ install -Dm644 examples/{ansible.cfg,hosts} -t
"${pkgdir}"/usr/share/ansible/doc/examples/
+ install -Dm644 docs/man/man1/*.1 -t "${pkgdir}"/usr/share/man/man1/
+}