[arch-commits] Commit in molecule/repos/community-staging-any (PKGBUILD PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Dec 3 02:02:40 UTC 2021
Date: Friday, December 3, 2021 @ 02:02:39
Author: felixonmars
Revision: 1064703
archrelease: copy trunk to community-staging-any
Added:
molecule/repos/community-staging-any/PKGBUILD
(from rev 1064702, molecule/trunk/PKGBUILD)
Deleted:
molecule/repos/community-staging-any/PKGBUILD
----------+
PKGBUILD | 142 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 71 insertions(+), 71 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2021-12-03 02:02:31 UTC (rev 1064702)
+++ PKGBUILD 2021-12-03 02:02:39 UTC (rev 1064703)
@@ -1,71 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-pkgname=molecule
-pkgver=3.5.2
-pkgrel=2
-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=('04a7d1f7e7e098c0ada71d8dc9a3e3a94320033942d8ee03f2c51ec185405d2ee13fcb44000a4942ec66923f0426717ab7e2c3a785ddda7a23515096474dc3c3')
-b2sums=('b6c6bb8ecdb4230d23161e25fa003c8979f48fc1705bfba7d14204fbaa3e9c235a71db0c4ccbab5c4328ddb8a0725d3c2ba7cb4b624afda21c6453c8be824f3e')
-
-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-staging-any/PKGBUILD (from rev 1064702, molecule/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2021-12-03 02:02:39 UTC (rev 1064703)
@@ -0,0 +1,71 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule
+pkgver=3.5.2
+pkgrel=3
+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=('04a7d1f7e7e098c0ada71d8dc9a3e3a94320033942d8ee03f2c51ec185405d2ee13fcb44000a4942ec66923f0426717ab7e2c3a785ddda7a23515096474dc3c3')
+b2sums=('b6c6bb8ecdb4230d23161e25fa003c8979f48fc1705bfba7d14204fbaa3e9c235a71db0c4ccbab5c4328ddb8a0725d3c2ba7cb4b624afda21c6453c8be824f3e')
+
+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