Date: Thursday, September 29, 2022 @ 13:43:13
  Author: dvzrv
Revision: 1316077

archrelease: copy trunk to community-any

Added:
  molecule-docker/repos/community-any/PKGBUILD
    (from rev 1316076, molecule-docker/trunk/PKGBUILD)
Deleted:
  molecule-docker/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   81 ++++++++++++++++++++++++++++++++-----------------------------
 1 file changed, 43 insertions(+), 38 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD    2022-09-29 13:42:51 UTC (rev 1316076)
+++ PKGBUILD    2022-09-29 13:43:13 UTC (rev 1316077)
@@ -1,38 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-pkgname=molecule-docker
-pkgver=2.0.0
-pkgrel=1
-pkgdesc="Molecule Docker Driver"
-arch=(any)
-url="https://github.com/ansible-community/molecule-docker";
-license=(MIT)
-depends=(molecule python-ansible-compat python-docker python-requests 
python-selinux)
-makedepends=(python-build python-installer python-pip python-setuptools-scm 
python-setuptools-scm-git-archive python-wheel)
-checkdepends=(ansible-core python-filelock python-pytest 
python-pytest-helpers-namespace)
-optdepends=(
-  'docker: for using a local docker setup'
-)
-source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
-sha512sums=('adc3367b58110da78876522865b268de866b5f0fead6de31c79c61357a83b1dc927190a2016ee7cc608c318c65e5e287ec2edd5278c15e622e06f6a14dac5b60')
-b2sums=('854eb8a519bad49f560acc91811dbb4fd0a5c50e727e369e89126ddf4159af3bca50528acc1945c6ea5602cc6169d4676c65c05ee27587523dbf017369a01b8f')
-
-build() {
-  cd $pkgname-$pkgver
-  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
-  python -m build --wheel --no-isolation
-}
-
-check() {
-  cd $pkgname-$pkgver
-  # disable tests that require the driver to be installed for the system
-  # version of molecule that we are testing with
-  pytest -c /dev/null -vv --ignore "src/molecule_docker/test/test_func.py"
-}
-
-package() {
-  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"
-}

Copied: molecule-docker/repos/community-any/PKGBUILD (from rev 1316076, 
molecule-docker/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2022-09-29 13:43:13 UTC (rev 1316077)
@@ -0,0 +1,43 @@
+# Maintainer: David Runge <[email protected]>
+
+pkgname=molecule-docker
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Molecule Docker Driver"
+arch=(any)
+url="https://github.com/ansible-community/molecule-docker";
+license=(MIT)
+depends=(molecule python-docker python-requests python-selinux)
+makedepends=(python-build python-installer python-pip python-setuptools-scm 
python-setuptools-scm-git-archive python-wheel)
+checkdepends=(ansible-core python-filelock python-pytest 
python-pytest-helpers-namespace)
+optdepends=(
+  'ansible-core: for Dockerfile validation'
+  'docker: for using a local docker setup'
+)
+source=(https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz)
+sha512sums=('3c3dc493eb183ab3acc01738d8fd2260718a44f2c1a15073dac7b9da0899a3672fc5f2bfae98aa27ea2472170ec83d049bf15943fdbccf6dc1e4efd39d833450')
+b2sums=('c4c86520f779b52d15f7c5c0985f3b54edc9d19a39afd1afbe2610fbb733b12731c1f3dc16026c02680286904633dce74d5708495dffc03ac54fd59554300415')
+
+build() {
+  cd $pkgname-$pkgver
+  export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd $pkgname-$pkgver
+  # disable tests that require the driver to be installed for the system
+  # version of molecule that we are testing with
+  pytest -c /dev/null -vv --ignore "src/molecule_docker/test/test_func.py"
+}
+
+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"
+
+  rm -rv "$pkgdir/$site_packages/molecule_docker/test/"
+}

Reply via email to