Date: Thursday, February 16, 2023 @ 09:17:37
Author: idevolder
Revision: 1400814
archrelease: copy trunk to community-any
Added:
awxkit/repos/community-any/PKGBUILD
(from rev 1400813, awxkit/trunk/PKGBUILD)
Deleted:
awxkit/repos/community-any/PKGBUILD
----------+
PKGBUILD | 78 +++++++++++++++++++++++++++++++++++++++++--------------------
1 file changed, 53 insertions(+), 25 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-16 09:17:30 UTC (rev 1400813)
+++ PKGBUILD 2023-02-16 09:17:37 UTC (rev 1400814)
@@ -1,25 +0,0 @@
-# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
-
-pkgname=awxkit
-_pkgname=awx
-pkgver=21.12.0
-pkgrel=1
-pkgdesc="cli client and python library for ansible awx (tower)"
-arch=('any')
-url="https://github.com/ansible/awx"
-license=('Apache')
-depends=('python-six' 'python-yaml' 'python-requests' 'python-wheel')
-makedepends=('python-pip' 'python-setuptools' 'git')
-options=(!emptydirs)
-source=("${_pkgname}::git+https://github.com/ansible/${_pkgname}#tag=${pkgver}")
-sha512sums=('SKIP')
-
-build() {
- cd "${_pkgname}/${pkgname}"
- python setup.py build
-}
-
-package() {
- cd "${_pkgname}/${pkgname}"
- python setup.py install --root="$pkgdir/" --optimize=1
-}
Copied: awxkit/repos/community-any/PKGBUILD (from rev 1400813,
awxkit/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-16 09:17:37 UTC (rev 1400814)
@@ -0,0 +1,53 @@
+# Maintainer: BlackIkeEagle <ike DOT devolder AT gmail DOT com>
+
+pkgname=awxkit
+_pkgname=awx
+_commit=05af2972bf3799d3059363dd721d300435ccdbb4 # refs/tags/21.12.0
+pkgver=21.12.0
+pkgrel=2
+pkgdesc="The official command line interface for Ansible AWX"
+arch=('any')
+url="https://github.com/ansible/awx"
+license=('Apache')
+depends=(
+ 'python'
+ 'python-pytest' # unreferenced, required in awxkit/yaml_file.py
+ 'python-pyyaml'
+ 'python-requests'
+ 'python-setuptools' # unreferenced, required in awxkit/cli/client.py
+)
+makedepends=('git' 'python-build' 'python-installer' 'python-setuptools'
'python-setuptools-scm' 'python-wheel')
+checkdepends=(
+ 'jq'
+ 'python-pytest'
+ 'python-cryptography'
+ # 'python-websocket-client' # TODO: needs to be packaged
+)
+optdepends=(
+ 'jq: for formatting'
+ # 'python-websocket-client: for websockets support' # TODO: needs to be
packaged
+ 'python-cryptography: for cryptography support'
+)
+options=(!emptydirs)
+source=("${_pkgname}::git+https://github.com/ansible/${_pkgname}#tag=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd "${_pkgname}/${pkgname}"
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ local deselected=(
+ # NOTE: deselect tests that require python-websocket-client
+ --deselect test/test_ws.py::test_explicit_hostname
+ --deselect test/test_ws.py::test_urlparsing
+ )
+ cd "${_pkgname}/${pkgname}"
+ pytest -vv "${deselected[@]}"
+}
+
+package() {
+ cd "${_pkgname}/${pkgname}"
+ python -m installer --destdir="$pkgdir" dist/*.whl
+}