[arch-commits] Commit in molecule/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at archlinux.org
Mon Jun 7 20:57:50 UTC 2021
Date: Monday, June 7, 2021 @ 20:57:50
Author: dvzrv
Revision: 958232
archrelease: copy trunk to community-any
Added:
molecule/repos/community-any/PKGBUILD
(from rev 958231, molecule/trunk/PKGBUILD)
Deleted:
molecule/repos/community-any/PKGBUILD
----------+
PKGBUILD | 144 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 72 insertions(+), 72 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-07 20:57:43 UTC (rev 958231)
+++ PKGBUILD 2021-06-07 20:57:50 UTC (rev 958232)
@@ -1,72 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=molecule
-pkgver=3.3.3
-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-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=('cac124923390133e883816cc9ddb1ffb7dc1f5e07b4c4ea90b159873ce69be028e10ca04df0b0d56bcefe53648eb3791cc1c22bec6ffe334c03c5a90a98b0367')
-b2sums=('e792d96d40bc4db6560e30bc2867acbec088ffa0521d5dab813e23e727820b8fdd2f5065af0ed48d109aedf79d927f31498825d4b86dd4b675de4c48ec85488a')
-
-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 958231, molecule/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-06-07 20:57:50 UTC (rev 958232)
@@ -0,0 +1,72 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule
+pkgver=3.3.4
+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-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=('8ccc6e121d028bc9d477504a3e5067486d4a3e37f2c27a9686b068c9dac2185db7f965960affb4f9e958bb68d3c3a72786459ea3d221d781377d899b0d75d5a5')
+b2sums=('af704a8a8d709323441e6e6057bf7a62b0d89aa582eff4d9139b521ed0729c36836f324cd1741f441fae4ed4b9c148de76c2502a01ce5a7b142bfe32bc7fd391')
+
+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}"
+}
More information about the arch-commits
mailing list