Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: python-ansible-compat 2.2.4-2: Rebuild to remove use of unnec…
Browse files Browse the repository at this point in the history
…essary dependencies.

Apply upstreamed patch to remove use of python-wheel and
python-setuptools-scm-git-archive in makedepends:
ansible/ansible-compat#186

git-svn-id: file:///srv/repos/svn-community/svn@1347122 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
dvzrv committed Nov 12, 2022
1 parent 99998ec commit 84c68ed
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
22 changes: 16 additions & 6 deletions python-ansible-compat/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,28 @@
_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"
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
Expand All @@ -28,7 +38,7 @@ check() {
# 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() {
Expand Down
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 84c68ed

Please sign in to comment.