mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-20 17:55:15 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
34 lines
1.1 KiB
Text
34 lines
1.1 KiB
Text
# Contributor: Dmitry Romanenko <dmitry@romanenko.in>
|
|
# Maintainer: Dmitry Romanenko <dmitry@romanenko.in>
|
|
pkgname=py3-setuptools_scm
|
|
_pkgname=setuptools_scm
|
|
pkgver=7.1.0
|
|
pkgrel=0
|
|
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 py3-typing-extensions"
|
|
checkdepends="py3-pytest mercurial"
|
|
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
options="!check" # fail due to weird git things
|
|
|
|
replaces="py-setuptools_scm" # Backwards compatibility
|
|
provides="py-setuptools_scm=$pkgver-r$pkgrel" # Backwards compatibility
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
TZ=UTC PYTHONPATH=$PWD/src pytest -v -k 'not test_pip_download'
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
bd7260672c213db6b8c5842dbb6ac69e69ce040777865c935033971f65d905bd8e6b54e174190a924e452c302e69d4c1de231cbc8f603176ba013a739840dad3 setuptools_scm-7.1.0.tar.gz
|
|
"
|