[arch-commits] Commit in molecule/repos (3 files)

Levente Polyak anthraxx at archlinux.org
Wed May 12 19:48:55 UTC 2021


    Date: Wednesday, May 12, 2021 @ 19:48:54
  Author: anthraxx
Revision: 932632

archrelease: copy trunk to community-testing-any

Added:
  molecule/repos/community-testing-any/
  molecule/repos/community-testing-any/PKGBUILD
    (from rev 932631, molecule/trunk/PKGBUILD)
  molecule/repos/community-testing-any/molecule-click-8.0.patch
    (from rev 932631, molecule/trunk/molecule-click-8.0.patch)

--------------------------+
 PKGBUILD                 |   73 +++++++++++++++++++++++++++++++++++++++++++++
 molecule-click-8.0.patch |   32 +++++++++++++++++++
 2 files changed, 105 insertions(+)

Copied: molecule/repos/community-testing-any/PKGBUILD (from rev 932631, molecule/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2021-05-12 19:48:54 UTC (rev 932632)
@@ -0,0 +1,73 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+pkgname=molecule
+pkgver=3.3.0
+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' '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' 'ansible-lint')
+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')
+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"
+        molecule-click-8.0.patch)
+sha512sums=('2d72ad4da9c654adc62a9263593ed17c2ddb21ee5dfbe6479eaa5a71c52329098b2c5eec3a8995ce1016cf62c39cd48116d45c66eb2288622dbf24b1d9ba0423'
+            '5858631ebc5ca86fe3109abb4ca38d78431e2e81f565df7f3e7a3d99d9f982d4bde14497079a6461401a50f2fdca7b5252da30f05ad0302104cc0c11ffda6a9e')
+b2sums=('fa94d9637a5262c307539e1ea2c46238effe388d50eca13eff22e71e40c537e872b75e0c75695c17358d4493360213ee4c15b395df226d5ae187bb6595fdc5a1'
+        'e628017797a9b11a27bfffb0f6a2913eb28efd44275911f812de1796979ea57044cf41f741598c7d2b65fbca242fcb3d939eacb9b1628fc9380c4e24552e2e1a')
+
+prepare() {
+  cd "$pkgname-$pkgver"
+  patch -Np1 < ../molecule-click-8.0.patch
+  # 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-testing-any/molecule-click-8.0.patch (from rev 932631, molecule/trunk/molecule-click-8.0.patch)
===================================================================
--- community-testing-any/molecule-click-8.0.patch	                        (rev 0)
+++ community-testing-any/molecule-click-8.0.patch	2021-05-12 19:48:54 UTC (rev 932632)
@@ -0,0 +1,32 @@
+From 13c880d5ac956fc2cabdae0b8481bcba9f4e7f8c Mon Sep 17 00:00:00 2001
+From: anthraxx <levente at leventepolyak.net>
+Date: Wed, 12 May 2021 20:02:14 +0200
+Subject: [PATCH] fix(deps): add compatibility for click 8.0 via
+ click-help-colors
+
+The incompatibility was marked in 0650abe7dd3bed5e477f91adefe26630cee22da0
+as click-help-colors was not compatible. In the meanwhile version 0.9
+added compatibility via https://github.com/click-contrib/click-help-colors/commit/00cdd2ca327624a8db4b5706d86b8e66da5c9dc6
+---
+ setup.cfg | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 0f26b262..910019ca 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -68,9 +68,9 @@ setup_requires =
+ install_requires =
+ 	ansible-lint >= 5.0.5  # only for the prerun functionality
+ 	cerberus >= 1.3.1
+-	click >= 7.0, < 8.0  # https://github.com/click-contrib/click-help-colors/issues/12
++	click >= 7.0
+ 	click-completion >= 0.5.1
+-	click-help-colors >= 0.6
++	click-help-colors >= 0.9
+ 	cookiecutter >= 1.6.0, != 1.7.1
+ 	dataclasses; python_version<"3.7"
+ 	enrich >= 1.2.5
+-- 
+2.31.1
+



More information about the arch-commits mailing list