[arch-commits] Commit in molecule/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at archlinux.org
Mon May 31 18:55:37 UTC 2021


    Date: Monday, May 31, 2021 @ 18:55:36
  Author: dvzrv
Revision: 952873

archrelease: copy trunk to community-any

Added:
  molecule/repos/community-any/PKGBUILD
    (from rev 952872, molecule/trunk/PKGBUILD)
Deleted:
  molecule/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  141 +++++++++++++++++++++++++++++++------------------------------
 1 file changed, 72 insertions(+), 69 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-05-31 18:55:26 UTC (rev 952872)
+++ PKGBUILD	2021-05-31 18:55:36 UTC (rev 952873)
@@ -1,69 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=molecule
-pkgver=3.3.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-cerberus' 'python-click'
-'python-click-completion' '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=('893f2594a3936ea1769aa9f3f6087790bd5a190a1bd272a8e6a73f1ebdd4fba81f43b8ef3fdd578bbf6be2d12a16abaf55cb9be21cd322b3e87e6150e878e0fa')
-b2sums=('70702b2bce1711a1be2877a47d8dfbb4b26f6ae5ec1e1a0b68ff17e0b8d14b26c8ac9304a32ad1ee2df1eb001bcb7f70f535f49fc8a68af668938b050852d729')
-
-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
-}
-
-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 952872, molecule/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-05-31 18:55:36 UTC (rev 952873)
@@ -0,0 +1,72 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule
+pkgver=3.3.2
+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=('5b76757e526453a858207a8a1378b2afe75f9e44ad256e98bb83fc7f258c25a5a626667195ebb137b604443db0428c5f72eb04d12f39ab4cc5a84ecef230f07c')
+b2sums=('e71d2400728e186154744f5bd87c02428ba32dddce846ec4fce35345ea26a114a7e09a84085f80373f561cdfc8586487dc5c5ec0e8154006886f4e3b77c7fe3d')
+
+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