Date: Saturday, November 12, 2022 @ 21:58:40 Author: dvzrv Revision: 1347122
upgpkg: python-ansible-compat 2.2.4-2: 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/ansible-compat/pull/186 Added: python-ansible-compat/trunk/python-ansible-compat-2.2.4-dependencies.patch Modified: python-ansible-compat/trunk/PKGBUILD ------------------------------------------------+ PKGBUILD | 22 ++++++++++++++++------ python-ansible-compat-2.2.4-dependencies.patch | 15 +++++++++++++++ 2 files changed, 31 insertions(+), 6 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2022-11-12 21:57:45 UTC (rev 1347121) +++ PKGBUILD 2022-11-12 21:58:40 UTC (rev 1347122) @@ -3,7 +3,7 @@ _name=ansible-compat pkgname=python-ansible-compat pkgver=2.2.4 -pkgrel=1 +pkgrel=2 pkgdesc="Functions that help interacting with various versions of Ansible" arch=(any) url="https://github.com/ansible-community/ansible-compat" @@ -10,12 +10,22 @@ license=(MIT) # python-packaging is a direct dependency: https://github.com/ansible/ansible-compat/issues/169 depends=(python-jsonschema python-packaging python-pyyaml python-subprocess-tee) -makedepends=(python-build python-installer python-setuptools-scm python-setuptools-scm-git-archive python-wheel) +makedepends=(python-build python-installer python-setuptools python-setuptools-scm python-wheel) checkdepends=(ansible python-flaky python-pytest python-pytest-mock) -source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz) -sha256sums=('6a2c3ade5005530cdfdd8e961c784b1718f17ad480a1be5a8014bff89c9c9c2e') -b2sums=('a4874675086956e11de4df4068e3b17b65b4f9f7610bb88bfba308d880fe478e39a4450a362bb06a555a36a41731f336c51756893ebe65715fc022421c51a293') +source=( + https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz + $pkgname-2.2.4-dependencies.patch +) +sha256sums=('6a2c3ade5005530cdfdd8e961c784b1718f17ad480a1be5a8014bff89c9c9c2e' + 'c35e029bba2dd65cc7b6881abf3c3c7dccfc5075a6cbaf8bd87e5b54716b71a3') +b2sums=('a4874675086956e11de4df4068e3b17b65b4f9f7610bb88bfba308d880fe478e39a4450a362bb06a555a36a41731f336c51756893ebe65715fc022421c51a293' + '2f9144e6bbc56d85bb7ee24c4f81c68554c9057b003d45b26ea35634352284ddcb430f26475bce8d4e24f6da3d2dc0c221da87ea245e892168f0d26a3febe12e') +prepare() { + # remove python-setuptools-scm-git-archive from makedepends: https://github.com/ansible/ansible-compat/pull/186 + patch -Np1 -d $_name-$pkgver -i ../$pkgname-2.2.4-dependencies.patch +} + build() { cd $_name-$pkgver python -m build --wheel --skip-dependency-check --no-isolation @@ -28,7 +38,7 @@ # install to temporary location, as importlib is used python -m installer --destdir=test_dir dist/*.whl export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH" - pytest -v -c /dev/null + pytest -vv -c /dev/null } package() { Added: python-ansible-compat-2.2.4-dependencies.patch =================================================================== --- python-ansible-compat-2.2.4-dependencies.patch (rev 0) +++ python-ansible-compat-2.2.4-dependencies.patch 2022-11-12 21:58:40 UTC (rev 1347122) @@ -0,0 +1,15 @@ +diff --git c/pyproject.toml w/pyproject.toml +index 2f2aa27..8e28a5f 100644 +--- c/pyproject.toml ++++ w/pyproject.toml +@@ -1,9 +1,7 @@ + [build-system] + requires = [ + "setuptools >= 45.0.0", # required by pyproject+setuptools_scm integration +- "setuptools_scm >= 6.3.1", # required for "no-local-version" scheme +- "setuptools_scm_git_archive >= 1.0", +- "wheel", ++ "setuptools_scm[toml] >= 7.0.0", # required for "no-local-version" scheme + ] + build-backend = "setuptools.build_meta" +
