Date: Sunday, October 16, 2022 @ 20:16:30
  Author: dvzrv
Revision: 1329473

upgpkg: molecule 4.0.2-1: Upgrade to 4.0.2.

Replace python-cerberus with python-jsonschema.
Remove unneeded prepare().
Remove all test files from package in package().

Modified:
  molecule/trunk/PKGBUILD

----------+
 PKGBUILD |   22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-10-16 20:14:23 UTC (rev 1329472)
+++ PKGBUILD    2022-10-16 20:16:30 UTC (rev 1329473)
@@ -1,15 +1,15 @@
 # Maintainer: David Runge <dv...@archlinux.org>
 
 pkgname=molecule
-pkgver=4.0.1
+pkgver=4.0.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=(python-ansible-compat python-cerberus python-click
+depends=(python-ansible-compat python-click
 python-click-help-colors python-cookiecutter python-enrich python-jinja
-python-packaging python-pluggy python-pyyaml python-rich)
+python-jsonschema python-packaging python-pluggy python-pyyaml python-rich)
 makedepends=(python-build python-setuptools-scm 
python-setuptools-scm-git-archive python-installer)
 checkdepends=(ansible python-ansi2html python-filelock python-pexpect
 python-pytest python-pytest-mock python-pytest-testinfra python-pytest-xdist
@@ -23,16 +23,9 @@
   'python-pytest-testinfra: for the testinfra verifier'
 )
 
source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
-sha512sums=('7515e07bf791d5586e1f5fb4ce0d2f731c94c8268c589155340b2bdc1528534084870e66e492b2d883f9e9764293c93799a4c75478523502a2f37ad0642a472d')
-b2sums=('73cf7a2257368c737b9003236bf77011de167dd6f692166702e7948c136202b33bcce1c70893b61a95af9baa90e7b5266a5fa889e3bba0e5a8c9c1e6f48fec9a')
+sha512sums=('9922785c8669540428af60cb6b1c8cdd53782a9679e53e4c456c2b3afbb41fe478d605dadcd55d4b98ae452fb018be21e2e0ccc1f127ae0acd82d2a6ad48c947')
+b2sums=('276a3a6c5d0c4c61addafddddae447c1dcfdba811e1002712b0ab469aad19284567d217bd410c0ecc24e1684d0969a96500c7638e1e51756c046a0d5266f472d')
 
-prepare() {
-  cd $pkgname-$pkgver
-  # 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 -m build --wheel --skip-dependency-check --no-isolation
@@ -53,8 +46,13 @@
 }
 
 package() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
   cd $pkgname-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
   install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
   install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+
+  # remove tests
+  rm -rvf "$pkgdir/$_site_packages/molecule/test/"
 }

Reply via email to