Date: Thursday, January 13, 2022 @ 22:43:32 Author: dvzrv Revision: 1103014
archrelease: copy trunk to community-any Added: python-ansible-compat/repos/community-any/PKGBUILD (from rev 1103013, python-ansible-compat/trunk/PKGBUILD) Deleted: python-ansible-compat/repos/community-any/PKGBUILD ----------+ PKGBUILD | 75 +++++++++++++++++++++++++++---------------------------------- 1 file changed, 34 insertions(+), 41 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-01-13 22:43:26 UTC (rev 1103013) +++ PKGBUILD 2022-01-13 22:43:32 UTC (rev 1103014) @@ -1,41 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=ansible-compat -pkgname=python-ansible-compat -pkgver=0.5.0 -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=('python-subprocess-tee' 'python-yaml') -makedepends=('python-setuptools-scm' 'python-setuptools-scm-git-archive') -checkdepends=('ansible' 'python-flaky' 'python-pytest' 'python-pytest-mock') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha256sums=('0730fbbb32710d19f4244a4cabad9c6b33b4b92ddf72aee353484e17543405f5') -b2sums=('468dbcf20865225c76896dd8aad6f4b9a749b7a45d661484f89e2eaab4416b29f2e0ea0477b86ea52193165cd23180a79ebd5adac571e0b7d659096e84c27bcb') - -prepare() { - mv -v "${_name}-$pkgver" "$pkgname-$pkgver" - cd "$pkgname-$pkgver" - # we do not care about pytest options - sed -e '/addopts/d' -i pyproject.toml -} - -build() { - cd "$pkgname-$pkgver" - python setup.py build -} - -check() { - cd "$pkgname-$pkgver" - export PYTHONPATH="build/lib:${PYTHONPATH}" - pytest -v -} - -package() { - cd "$pkgname-$pkgver" - python setup.py install --optimize=1 --root="${pkgdir}" - 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 1103013, python-ansible-compat/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-01-13 22:43:32 UTC (rev 1103014) @@ -0,0 +1,34 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +_name=ansible-compat +pkgname=python-ansible-compat +pkgver=1.0.0 +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-subprocess-tee python-yaml) +makedepends=(python-build python-install 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=('2ade2acbd1d7868eeb602c682afe92bc8c05480333205c328b4c2a1b09f970a4') +b2sums=('56eb32314e310777e454a5f5e020cc4dfc485e6d5720d45e99734ce8cf238377f1ff443f9f78f5b9de947944564a7001294907c0e186fe94cd4561d4d348723e') + +build() { + cd "${_name}-$pkgver" + python -m build --wheel --skip-dependency-check --no-isolation +} + +check() { + cd "${_name}-$pkgver" + export PYTHONPATH="build/lib:${PYTHONPATH}" + pytest -v -c /dev/null +} + +package() { + cd "${_name}-$pkgver" + python -m install --optimize=1 --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}" +}