# Contributor: Dmitry Romanenko # Maintainer: Peter Shkenev pkgname=py3-setuptools_scm _pkgname=setuptools_scm pkgver=7.1.0 pkgrel=5 pkgdesc="The blessed package to manage your versions by scm tags" url="https://github.com/pypa/setuptools_scm" arch="noarch" license="MIT" depends="py3-setuptools py3-packaging" makedepends="py3-gpep517 py3-wheel" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz typing-ext.patch " builddir="$srcdir"/$_pkgname-$pkgver options="!check" # here -> pytest -> pluggin -> here replaces="py-setuptools_scm" # Backwards compatibility provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl TZ=UTC .testenv/bin/python3 -m pytest -k 'not test_pip_download and not test_pyproject_support_with_git and not test_pretend_version_named_pyproject_integration' } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" bd7260672c213db6b8c5842dbb6ac69e69ce040777865c935033971f65d905bd8e6b54e174190a924e452c302e69d4c1de231cbc8f603176ba013a739840dad3 setuptools_scm-7.1.0.tar.gz 6c6f62c977584527632effbba90e290f2c4513c616179c8e62bf9722d00058999ca79e918061dad2f283f3e74eda6b3c5a1f95f37d38346f6ea4714a18ba7f18 typing-ext.patch "