Date: Friday, September 17, 2021 @ 18:15:04 Author: dvzrv Revision: 1016871
archrelease: copy trunk to community-any Added: molecule/repos/community-any/PKGBUILD (from rev 1016870, molecule/trunk/PKGBUILD) Deleted: molecule/repos/community-any/PKGBUILD ----------+ PKGBUILD | 143 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 71 insertions(+), 72 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-09-17 18:14:57 UTC (rev 1016870) +++ PKGBUILD 2021-09-17 18:15:04 UTC (rev 1016871) @@ -1,72 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -pkgname=molecule -pkgver=3.4.0 -pkgrel=1 -pkgdesc="Aids in the development and testing of Ansible roles" -arch=('any') -url="https://github.com/ansible-community/molecule" -license=('MIT') -depends=('ansible' 'ansible-lint' 'python-cerberus' 'python-click' -'python-click-help-colors' 'python-cookiecutter' 'python-enrich' 'python-jinja' -'python-packaging' 'python-paramiko' 'python-pluggy' 'python-rich' -'python-selinux' 'python-setuptools' 'python-subprocess-tee' 'python-yaml') -makedepends=('python-setuptools-scm' 'python-setuptools-scm-git-archive' 'python-simplejson' 'python-toml') -checkdepends=('python-ansi2html' 'python-mock' 'python-pexpect' -'python-pytest' 'python-pytest-helpers-namespace' 'python-pytest-html' -'python-pytest-mock' 'python-pytest-testinfra' -'python-pytest-verbose-parametrize' 'python-pytest-xdist' 'yamllint') -optdepends=('molecule-docker: for the docker driver' - 'molecule-podman: for the podman driver' - 'molecule-vagrant: for the vagrant driver' - 'python-pywinrm: for Windows support' - 'python-pytest-testinfra: for the testinfra verifier') -source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") -sha512sums=('a98892e86424acf34b3efb426b6e3a31bcf35a4b8a29e8d7a142bffdb00713c6bbc21b629690e69f96648f678f950d79a2904368a774948c8bae6dbade1cca43') -b2sums=('0ebea089879cb34a409abc0e2517ac193e524430edb75a8ab5360fb64cf8cff534ab74f03d463370cc6eea9da592492a92232edfa8ca689403a84e6828d2a9fb') - -prepare() { - cd "$pkgname-$pkgver" - # remove additional pytest options - # remove fitler to raise warnings as errors: https://github.com/ansible-community/molecule/issues/3004 - sed -e '/addopts/d' \ - -e '/testpaths/d' \ - -e '/error/d' \ - -i setup.cfg - # 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 -} - -build() { - cd "$pkgname-$pkgver" - python setup.py build -} - -check() { - cd "$pkgname-$pkgver" - local _python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" - local _test_dir='test_dir' - - # install into test location - mkdir -vp "${_test_dir}" - python setup.py install --skip-build \ - --optimize=1 \ - --root="${_test_dir}" - - export PYTHONPATH="${PWD}/${_test_dir}/usr/lib/python${_python_version}/site-packages/:${PYTHONPATH}" - export PATH="${PWD}/test_dir/usr/bin:${PATH}" - - pytest -v "${_test_dir}/usr/lib/python${_python_version}/site-packages/molecule/test/unit/" -} - -package() { - cd "$pkgname-$pkgver" - python setup.py install --skip-build \ - --optimize=1 \ - --root="${pkgdir}" - install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" - install -vDm 644 README.rst \ - -t "${pkgdir}/usr/share/doc/${pkgname}" -} Copied: molecule/repos/community-any/PKGBUILD (from rev 1016870, molecule/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-09-17 18:15:04 UTC (rev 1016871) @@ -0,0 +1,71 @@ +# Maintainer: David Runge <dv...@archlinux.org> + +pkgname=molecule +pkgver=3.5.1 +pkgrel=1 +pkgdesc="Aids in the development and testing of Ansible roles" +arch=('any') +url="https://github.com/ansible-community/molecule" +license=('MIT') +depends=('ansible' 'ansible-lint' '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-selinux' 'python-subprocess-tee' 'python-yaml') +makedepends=('python-setuptools-scm' 'python-setuptools-scm-git-archive' 'python-simplejson' 'python-toml') +checkdepends=('python-ansi2html' 'python-pexpect' 'python-pytest' +'python-pytest-html' 'python-pytest-mock' 'python-pytest-testinfra' +'python-pytest-verbose-parametrize' 'python-pytest-xdist' 'yamllint') +optdepends=('molecule-docker: for the docker driver' + 'molecule-podman: for the podman driver' + 'molecule-vagrant: for the vagrant driver' + 'python-pywinrm: for Windows support' + 'python-pytest-testinfra: for the testinfra verifier') +source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz") +sha512sums=('b59e54a991fb5ea2801dc4d6f26b17283271ddd00c4f4ec21f1568f6d39bfb87a75c3adedad5307a684098c67a45e2680ec9256f0de23bf8640ad1c2973bdad8') +b2sums=('7dd9d1e1271228d302a4d19bdf6e219c701ef17a04be3938d706275bdcf1a203eabfa1ecd0a8fe3d9925a6e4887f81da1bff9897c2b2c6df7ce0b21a932598d8') + +prepare() { + cd "$pkgname-$pkgver" + # remove additional pytest options + # remove fitler to raise warnings as errors: https://github.com/ansible-community/molecule/issues/3004 + sed -e '/addopts/d' \ + -e '/testpaths/d' \ + -e '/error/d' \ + -i setup.cfg + # 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 +} + +build() { + cd "$pkgname-$pkgver" + python setup.py build +} + +check() { + cd "$pkgname-$pkgver" + local _python_version="$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')" + local _test_dir='test_dir' + + # install into test location + mkdir -vp "${_test_dir}" + python setup.py install --skip-build \ + --optimize=1 \ + --root="${_test_dir}" + + export PYTHONPATH="${PWD}/${_test_dir}/usr/lib/python${_python_version}/site-packages/:${PYTHONPATH}" + export PATH="${PWD}/test_dir/usr/bin:${PATH}" + + pytest -v "${_test_dir}/usr/lib/python${_python_version}/site-packages/molecule/test/unit/" +} + +package() { + cd "$pkgname-$pkgver" + python setup.py install --skip-build \ + --optimize=1 \ + --root="${pkgdir}" + install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -vDm 644 README.rst \ + -t "${pkgdir}/usr/share/doc/${pkgname}" +}