Date: Sunday, November 13, 2022 @ 14:11:32
  Author: dvzrv
Revision: 1347261

upgpkg: molecule-vagrant 1.0.0-3: Rebuild to remove use of unnecessary 
dependencies.

Apply upstreamed patch to remove use of python-wheel and
python-setuptools-scm-git-archive in makedepends:
https://github.com/ansible-community/molecule-vagrant/pull/198
Remove tests: https://github.com/ansible-community/molecule-vagrant/issues/199

Added:
  molecule-vagrant/trunk/molecule-vagrant-1.0.0-dependencies.patch
Modified:
  molecule-vagrant/trunk/PKGBUILD

-------------------------------------------+
 PKGBUILD                                  |   29 ++++++++++++++++++++--------
 molecule-vagrant-1.0.0-dependencies.patch |   16 +++++++++++++++
 2 files changed, 37 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-13 14:01:51 UTC (rev 1347260)
+++ PKGBUILD    2022-11-13 14:11:32 UTC (rev 1347261)
@@ -4,19 +4,28 @@
 
 pkgname=molecule-vagrant
 pkgver=1.0.0
-pkgrel=2
+pkgrel=3
 pkgdesc="Molecule Vagrant Driver"
 arch=(any)
 url="https://github.com/ansible-community/molecule-vagrant";
 license=(MIT)
-depends=(molecule python-jinja python-selinux python-yaml python-vagrant)
-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)
-sha512sums=('de55cea15c5df876b21f91f7f27b6de88896ea301a9e7c240a82abfaaea44d09a6ea85941a5ff3a84cb28991c77e344f9c2aa27f852f652c98e70f51787c8ca5')
-b2sums=('6267554e55717ecde97b062867f4a72691ffd912155fe05d7f50f61682b46ed955c26789819af1e3c386dea4f89e606810c19a65212859ac6d75a491c3ef927d')
+depends=(ansible-core molecule python-jinja python-selinux python-yaml 
python-vagrant)
+makedepends=(python-build python-installer python-setuptools 
python-setuptools-scm python-toml python-wheel)
+checkdepends=(python-filelock python-pytest)
+source=(
+  
https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz
+  $pkgname-1.0.0-dependencies.patch
+)
+sha512sums=('de55cea15c5df876b21f91f7f27b6de88896ea301a9e7c240a82abfaaea44d09a6ea85941a5ff3a84cb28991c77e344f9c2aa27f852f652c98e70f51787c8ca5'
+            
'9ffa61e4338240bf0d7c0e6149584d8ea2d3c2ad8b7c9f40173d16da250127181dcf1a15e4412e0691c0d4a4999a3444b28e83485d9f64dbf6405ffa8651bbaf')
+b2sums=('6267554e55717ecde97b062867f4a72691ffd912155fe05d7f50f61682b46ed955c26789819af1e3c386dea4f89e606810c19a65212859ac6d75a491c3ef927d'
+        
'66a19c9d2de3ead411aab50e94d83919db6a203be600ab4d9273c5ffdf214e870254c573ec98b3f0403947ca44a4538032e18baf2c30037a713e4060c7103965')
 
+prepare() {
+  # remove setuptools-scm-git-archive from makedepends: 
https://github.com/ansible-community/molecule-vagrant/pull/198
+  patch -Np1 -d $pkgname-$pkgver -i ../$pkgname-1.0.0-dependencies.patch
+}
+
 build() {
   cd $pkgname-$pkgver
   python -m build --wheel --skip-dependency-check --no-isolation
@@ -37,7 +46,11 @@
 }
 
 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"
+  # remove tests: 
https://github.com/ansible-community/molecule-vagrant/issues/199
+  rm -frv "$pkgdir/$_site_packages/molecule_vagrant/test/"
 }

Added: molecule-vagrant-1.0.0-dependencies.patch
===================================================================
--- molecule-vagrant-1.0.0-dependencies.patch                           (rev 0)
+++ molecule-vagrant-1.0.0-dependencies.patch   2022-11-13 14:11:32 UTC (rev 
1347261)
@@ -0,0 +1,16 @@
+diff --git c/pyproject.toml w/pyproject.toml
+index ce03cd2..9468b8c 100644
+--- c/pyproject.toml
++++ w/pyproject.toml
+@@ -1,9 +1,7 @@
+ [build-system]
+ requires = [
+-  "setuptools >= 42.0.0",  # required by pyproject+setuptools_scm integration
+-  "setuptools_scm[toml] >= 3.5.0",  # required for "no-local-version" scheme
+-  "setuptools_scm_git_archive >= 1.0",
+-  "wheel",
++  "setuptools >= 45.0.0",  # required by pyproject+setuptools_scm integration
++  "setuptools_scm[toml] >= 7.0.0",  # required for "no-local-version" scheme
+ ]
+ build-backend = "setuptools.build_meta"
+ 

Reply via email to