[arch-commits] Commit in molecule-vagrant/trunk (PKGBUILD)

2022-02-21 Thread David Runge via arch-commits
Date: Monday, February 21, 2022 @ 15:31:42
  Author: dvzrv
Revision: 1135558

upgpkg: molecule-vagrant 1.0.0-2: Rebuild to fix typo in pkgdesc: 
https://bugs.archlinux.org/task/73912

Modified:
  molecule-vagrant/trunk/PKGBUILD

--+
 PKGBUILD |   14 +++---
 1 file changed, 7 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2022-02-21 12:16:40 UTC (rev 1135557)
+++ PKGBUILD2022-02-21 15:31:42 UTC (rev 1135558)
@@ -4,8 +4,8 @@
 
 pkgname=molecule-vagrant
 pkgver=1.0.0
-pkgrel=1
-pkgdesc="Molecule Vangrant Driver"
+pkgrel=2
+pkgdesc="Molecule Vagrant Driver"
 arch=(any)
 url="https://github.com/ansible-community/molecule-vagrant;
 license=(MIT)
@@ -13,7 +13,7 @@
 makedepends=(python-build python-installer python-setuptools
 python-setuptools-scm python-setuptools-scm-git-archive python-toml 
python-wheel)
 checkdepends=(ansible python-filelock python-pytest)
-source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/${pkgname}/${pkgname}-${pkgver}.tar.gz;)
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
 
sha512sums=('de55cea15c5df876b21f91f7f27b6de88896ea301a9e7c240a82abfaaea44d09a6ea85941a5ff3a84cb28991c77e344f9c2aa27f852f652c98e70f51787c8ca5')
 
b2sums=('6267554e55717ecde97b062867f4a72691ffd912155fe05d7f50f61682b46ed955c26789819af1e3c386dea4f89e606810c19a65212859ac6d75a491c3ef927d')
 
@@ -25,15 +25,15 @@
 check() {
   cd $pkgname-$pkgver
   local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
-  local _test_dir="${PWD}/test_dir"
+  local _test_dir="$PWD/test_dir"
 
   # install to test location
-  mkdir -vp "${_test_dir}"
+  mkdir -vp "$_test_dir"
   python -m installer --destdir="$_test_dir" dist/*.whl
 
-  export PYTHONPATH="${_test_dir}/${_site_packages}:${PYTHONPATH}"
+  export PYTHONPATH="$_test_dir/$_site_packages:$PYTHONPATH"
   # ignore tests that require running molecule
-  pytest -v "${_test_dir}/${_site_packages}/molecule_vagrant/test/" --ignore 
"${_test_dir}/${_site_packages}/molecule_vagrant/test/functional/" -c /dev/null
+  pytest -v "$_test_dir/$_site_packages/molecule_vagrant/test/" --ignore 
"$_test_dir/$_site_packages/molecule_vagrant/test/functional/" -c /dev/null
 }
 
 package() {



[arch-commits] Commit in molecule-vagrant/trunk (PKGBUILD)

2021-10-27 Thread Ike Devolder via arch-commits
Date: Wednesday, October 27, 2021 @ 20:20:30
  Author: idevolder
Revision: 1034786

upgpkg: molecule-vagrant 0.6.3-1

Modified:
  molecule-vagrant/trunk/PKGBUILD

--+
 PKGBUILD |   27 +++
 1 file changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2021-10-27 20:17:41 UTC (rev 1034785)
+++ PKGBUILD2021-10-27 20:20:30 UTC (rev 1034786)
@@ -1,9 +1,10 @@
-# Maintainer: Christian Rebischke 
+# Maintainer: Ike Devolder 
+# Contributor: Marc Straube 
 
 pkgname=molecule-vagrant
-_pyname=molecule-vagrant
-pkgver=0.2
-pkgrel=2
+_module_name=molecule_vagrant
+pkgver=0.6.3
+pkgrel=1
 pkgdesc="Molecule Vangrant Driver"
 arch=('any')
 url="https://github.com/ansible-community/molecule-vagrant;
@@ -10,27 +11,29 @@
 license=('MIT')
 depends=('python' 'ansible' 'molecule' 'python-pyaml' 'python-vagrant')
 makedepends=('python-setuptools' 'python-setuptools-scm' 'molecule'
-'python-vagrant' 'python-pyaml')
+'python-vagrant' 'python-pyaml' 'python-pip')
 
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ansible-community/molecule-vagrant/archive/${pkgver}.tar.gz;)
-sha512sums=('8da5d444925d8dcb35abcaccb7b6f8e23492a61c5dd05a4cfd129801577b3df76cca87d8abccc1580742727b42f133731ab4720a13a3c553c3163957fb42df47')
+sha512sums=('09165da30b6d678084760f8bf8ae552a5ece255b98e1cc86e76a9294bcbf720c951641208fad34d926ef3b1a97a0f65d181982ffed6f058413d2bf0846ea846e')
 
 prepare() {
-  cd ${_pyname}-${pkgver}
+  cd ${pkgname}-${pkgver}
   echo "Version: ${pkgver}" > PKG-INFO
 }
 
 build() {
-  cd ${_pyname}-${pkgver}
+  cd ${pkgname}-${pkgver}
   python setup.py build
 }
 
 #check() {
-#  cd ${_pyname}-${pkgver}
-#  py.test
+#  cd ${pkgname}-${pkgver}
+#  python setup.py test
 #}
 
 package() {
-  cd ${_pyname}-${pkgver}
+  pylibpath="$(dirname "$(python-config --configdir)")"
+  cd ${pkgname}-${pkgver}
   python setup.py install -O1 --root="${pkgdir}" --skip-build
-  cp -R molecule_vagrant/cookiecutter 
"${pkgdir}/usr/lib/python3.9/site-packages/molecule_vagrant"
+  cp -R ${_module_name}/cookiecutter 
"${pkgdir}${pylibpath}/site-packages/${_module_name}"
+  cp -R ${_module_name}/playbooks 
"${pkgdir}${pylibpath}/site-packages/${_module_name}"
 }