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

David Runge dvzrv at archlinux.org
Fri Mar 26 17:35:59 UTC 2021


    Date: Friday, March 26, 2021 @ 17:35:58
  Author: dvzrv
Revision: 904624

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-03-26 17:35:51 UTC (rev 904623)
+++ PKGBUILD	2021-03-26 17:35:58 UTC (rev 904624)
@@ -1,69 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=molecule
-pkgver=3.2.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' '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'
-'yamllint')
-makedepends=('python-setuptools-scm' 'python-simplejson')
-checkdepends=('ansible-lint' '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')
-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=('f4a4f33faf124da50748e15ea3996491ed389568fb114ae1a0a009fbad214c2fdaa3905b83f17c4b891f04c1b1e1a0d676e6377d1bb2cca301a1f916dec3a784')
-b2sums=('54e31b2f0b3dbfb2356fc9ee573863500f9d533cf92a1c74021a994a035877d00ff4288bf4f495777b81553cbb436a3f04991060b273db0ee07608e6361353ff')
-
-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 904623, molecule/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-03-26 17:35:58 UTC (rev 904624)
@@ -0,0 +1,69 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule
+pkgver=3.3.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' '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'
+'yamllint')
+makedepends=('python-setuptools-scm' 'python-simplejson' 'python-toml')
+checkdepends=('ansible-lint' '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')
+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=('2d72ad4da9c654adc62a9263593ed17c2ddb21ee5dfbe6479eaa5a71c52329098b2c5eec3a8995ce1016cf62c39cd48116d45c66eb2288622dbf24b1d9ba0423')
+b2sums=('fa94d9637a5262c307539e1ea2c46238effe388d50eca13eff22e71e40c537e872b75e0c75695c17358d4493360213ee4c15b395df226d5ae187bb6595fdc5a1')
+
+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}"
+}



More information about the arch-commits mailing list