Date: Saturday, June 18, 2022 @ 15:46:01 Author: dvzrv Revision: 1238433
upgpkg: molecule 4.0.0-1: Upgrade to 4.0.0. Remove unnecessary quotes and curly braces. Modified: molecule/trunk/PKGBUILD ----------+ PKGBUILD | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-06-18 15:34:55 UTC (rev 1238432) +++ PKGBUILD 2022-06-18 15:46:01 UTC (rev 1238433) @@ -1,7 +1,7 @@ # Maintainer: David Runge <dv...@archlinux.org> pkgname=molecule -pkgver=3.6.1 +pkgver=4.0.0 pkgrel=1 pkgdesc="Aids in the development and testing of Ansible roles" arch=(any) @@ -9,13 +9,13 @@ license=(MIT) depends=(python-ansible-compat python-cerberus python-click python-click-help-colors python-cookiecutter python-enrich python-jinja -python-packaging python-paramiko python-pluggy python-rich python-yaml) +python-packaging python-pluggy python-pyyaml python-rich) makedepends=(python-build python-setuptools-scm python-setuptools-scm-git-archive python-installer) checkdepends=(ansible python-ansi2html python-filelock python-pexpect -python-pytest python-pytest-html python-pytest-mock python-pytest-testinfra -python-pytest-xdist yamllint) +python-pytest python-pytest-mock python-pytest-testinfra python-pytest-xdist +yamllint) optdepends=( - 'ansible: for local ansible support' + 'ansible: for the ansible verifier' 'molecule-docker: for the docker driver' 'molecule-podman: for the podman driver' 'molecule-vagrant: for the vagrant driver' @@ -23,11 +23,11 @@ 'python-pytest-testinfra: for the testinfra verifier' ) source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('229f709e2d8f68013ada9f022e4d65e9ededa9b6ffb72fd804fef941ce5c548d582767fc12b86f02b179241891848a2ed3ebe292e69422940eaac1d8a2470dd4') -b2sums=('17417ef21ec5cbb72174271556eb3b3fa3c87409ff4af950dfa620a3c399c8fc3893f4616f19f4171ab8c515f9a4e808e46095bf27a8913e422053448ec2e9d6') +sha512sums=('920a47ecdebb413c1faec09ca8e4597a15f6f073685136ecf5c30211685920156394f5af8618d1040b81513c7480bfc1c0778bac0a88e99c9afaedd83f306371') +b2sums=('cd22f094848bd92ab50fd18d32a2492a700fcc222c2d32b7884a7893c798c4b15abed2ba00a5b7874eef6850645e7b9bb696b500f1508335587cac37620722ba') prepare() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver # allegedly cerberus is not compatible with py39, but we don't mind: # https://github.com/pyeve/cerberus/issues/568 sed -e '/cerberus/ s/,.*//' -i setup.cfg @@ -34,27 +34,27 @@ } build() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver python -m build --wheel --skip-dependency-check --no-isolation } check() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])") - local _test_dir="${PWD}/test_dir" + local _test_dir="$PWD/test_dir" # install into test location - mkdir -vp "${_test_dir}" + mkdir -vp "$_test_dir" python -m installer --destdir="$_test_dir" dist/*.whl - export PYTHONPATH="${_test_dir}/${_site_packages}:${PYTHONPATH}" - export PATH="${_test_dir}/usr/bin:${PATH}" - pytest -v "${_test_dir}/${_site_packages}/molecule/test/unit/" -c /dev/null + export PYTHONPATH="$_test_dir/$_site_packages:$PYTHONPATH" + export PATH="$_test_dir/usr/bin:$PATH" + pytest -v "$_test_dir/$_site_packages/molecule/test/unit/" -c /dev/null } package() { - cd "$pkgname-$pkgver" + cd $pkgname-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl - install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}" + install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/" }