[arch-commits] Commit in molecule/trunk (2 files)

David Runge dvzrv at archlinux.org
Thu Jul 9 21:31:51 UTC 2020


    Date: Thursday, July 9, 2020 @ 21:31:49
  Author: dvzrv
Revision: 663035

upgpkg: molecule 3.0.5-1: Upgrading to 3.0.5.

Removing now unneeded patch for python-sh version pinning.
Minor cleanups.

Modified:
  molecule/trunk/PKGBUILD
Deleted:
  molecule/trunk/64b8b7608513bd4aceb6e58f3bdbd775913064da.patch

------------------------------------------------+
 64b8b7608513bd4aceb6e58f3bdbd775913064da.patch |   71 -----------------------
 PKGBUILD                                       |   16 ++---
 2 files changed, 7 insertions(+), 80 deletions(-)

Deleted: 64b8b7608513bd4aceb6e58f3bdbd775913064da.patch
===================================================================
--- 64b8b7608513bd4aceb6e58f3bdbd775913064da.patch	2020-07-09 21:30:45 UTC (rev 663034)
+++ 64b8b7608513bd4aceb6e58f3bdbd775913064da.patch	2020-07-09 21:31:49 UTC (rev 663035)
@@ -1,71 +0,0 @@
-From 64b8b7608513bd4aceb6e58f3bdbd775913064da Mon Sep 17 00:00:00 2001
-From: Arnaud Patard <apatard at hupstream.com>
-Date: Wed, 29 Apr 2020 16:44:58 +0200
-Subject: [PATCH] Fix environment handling for sh.py >= 1.13
-
-Since sh.py 1.13, a new check on the environment variables has been added
-with commit https://github.com/amoffat/sh/commit/5b274778fb4be647bbb95f9bec14153f186bcc1f.
-
-This leads to failures in the testsuite since the code is passing
-os.environ, which is not a dict().
-
-It's also breaking MOLECULE_ENV_FILE handling with errors like (from the testsuite):
-
-E           TypeError: Invalid special arguments:
-E
-E             'env': value None of env key 'MOLECULE_ENV_FILE' must be a str
-
-so:
-- use dict() to convert os.environ to a dict in _rebake_command(),
-- use str() when defining MOLECULE_ENV_FILE to make sure self.env_file is a string.
-
-To avoid any other surprise with 1.14 or newer, I've changed the sh.py requirement
-to < 1.14. The requirement is not 1.13 but 1.13.1 to get the fix for sh.py bug #520
-(https://github.com/amoffat/sh/issues/520).
-
-Signed-off-by: Arnaud Patard <apatard at hupstream.com>
----
- molecule/config.py        | 2 +-
- molecule/test/conftest.py | 2 +-
- setup.cfg                 | 2 +-
- 3 files changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/molecule/config.py b/molecule/config.py
-index 86b92acde..9d25f2c40 100644
---- a/molecule/config.py
-+++ b/molecule/config.py
-@@ -169,7 +169,7 @@ def env(self):
-         return {
-             "MOLECULE_DEBUG": str(self.debug),
-             "MOLECULE_FILE": self.config_file,
--            "MOLECULE_ENV_FILE": self.env_file,
-+            "MOLECULE_ENV_FILE": str(self.env_file),
-             "MOLECULE_STATE_FILE": self.state.state_file,
-             "MOLECULE_INVENTORY_FILE": self.provisioner.inventory_file,
-             "MOLECULE_EPHEMERAL_DIRECTORY": self.scenario.ephemeral_directory,
-diff --git a/molecule/test/conftest.py b/molecule/test/conftest.py
-index 23f53dc8d..649bdbd64 100644
---- a/molecule/test/conftest.py
-+++ b/molecule/test/conftest.py
-@@ -45,7 +45,7 @@ def run_command(cmd, env=os.environ, log=True):
- 
- 
- def _rebake_command(cmd, env, out=LOG.out, err=LOG.error):
--    return cmd.bake(_env=env, _out=out, _err=err)
-+    return cmd.bake(_env=dict(env), _out=out, _err=err)
- 
- 
- def is_subset(subset, superset):
-diff --git a/setup.cfg b/setup.cfg
-index db8631792..ddc213c3d 100644
---- a/setup.cfg
-+++ b/setup.cfg
-@@ -77,7 +77,7 @@ install_requires =
- 	pexpect >= 4.6.0, < 5
- 	pluggy >= 0.7.1, < 1.0
- 	PyYAML >= 5.1, < 6
--	sh >= 1.12.14, < 1.13
-+	sh >= 1.13.1, < 1.14
- 	tabulate >= 0.8.4
- 	tree-format >= 0.1.2
- 	yamllint >= 1.15.0, < 2

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-09 21:30:45 UTC (rev 663034)
+++ PKGBUILD	2020-07-09 21:31:49 UTC (rev 663035)
@@ -1,8 +1,8 @@
 # Maintainer: David Runge <dvzrv at archlinux.org>
 
 pkgname=molecule
-pkgver=3.0.4
-pkgrel=3
+pkgver=3.0.5
+pkgrel=1
 pkgdesc="Aids in the development and testing of Ansible roles"
 arch=('any')
 url="https://github.com/ansible-community/molecule"
@@ -23,17 +23,14 @@
             'podman: for the podman driver'
             'python-pywinrm: for Windows support'
             'python-testinfra: for the testinfra verifier')
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz"
-        "64b8b7608513bd4aceb6e58f3bdbd775913064da.patch")
-sha512sums=('84420677d62aea7e4a3570b97884d85c48a0fe1d94ccdecc400e962a37d772c37bb64b569ac9c2f6e1b034f85758554ff1e16a2a9d5a42120d27d54d8691bdc0'
-            '6b3bcfde754ad54439e1adab1457b95afcf7b7850047df9405b98bd1a592f00e06568e6e2ea792efe3e275e31bc5d94b74497b1de2b55f42ddeab6e017b52a1e')
+source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e8bfcf6d072c07d6dfc1d5c6671716747aa295616c12c2a56c84b387255c5d0126f11548be32b91e8b401e67e0a9a7673bd96f527cb3281dd205d40f6d0b19f2')
+b2sums=('8c6372f3518652f78b30f4969993fc262c3ae51ebc5d679276cdb3e67611e6769c694665e08e4a29c0471f37b83b373421437b20374c03ff38d9d862ee7b73fc')
 
 prepare() {
   cd "$pkgname-$pkgver"
   # python-pre-commit is absolutely not a runtime dependency
   sed -e '/pre-commit/d' -i setup.cfg
-  # increase python-sh requirement
-  patch -p1 -i "$srcdir/64b8b7608513bd4aceb6e58f3bdbd775913064da.patch"
 }
 
 build() {
@@ -69,5 +66,6 @@
     --prefix=/usr \
     --root="${pkgdir}"
   install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
-  install -vDm 644 {AUTHORS,CHANGELOG,CONTRIBUTING,README}.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+  install -vDm 644 {CHANGELOG,README}.rst \
+    -t "${pkgdir}/usr/share/doc/${pkgname}"
 }



More information about the arch-commits mailing list