50 lines
2.2 KiB
Bash
50 lines
2.2 KiB
Bash
name='python3-setuptools-scm'
|
||
version='9.2.2'
|
||
release='4'
|
||
desc='Setuptools plugin for managing versions with SCM metadata'
|
||
desc_ru='Плагин Setuptools для управления версиями с метаданными SCM'
|
||
homepage='https://github.com/pypa/setuptools_scm'
|
||
maintainer='Evgeny Khramov <xpamych@yandex.ru>'
|
||
maintainer_ru='Евгений Храмов <xpamych@yandex.ru>'
|
||
architectures=('all')
|
||
license=('MIT')
|
||
provides=('setuptools-scm')
|
||
conflicts=('setuptools-scm')
|
||
|
||
deps=('python3' 'python3-setuptools' 'python3-packaging' 'python3-typing-extensions')
|
||
deps_alt=('python3' 'python3-module-setuptools' 'python3-module-packaging' 'python3-module-typing-extensions')
|
||
deps_arch=('python' 'python-setuptools' 'python-packaging' 'python-typing-extensions')
|
||
deps_debian=('python3' 'python3-setuptools' 'python3-packaging' 'python3-typing-extensions')
|
||
deps_fedora=("${deps[@]}")
|
||
deps_redos=("${deps[@]}")
|
||
deps_rhel=("${deps[@]}")
|
||
deps_rosa=("${deps[@]}")
|
||
deps_alpine=('python3' 'py3-setuptools' 'py3-packaging' 'py3-typing-extensions')
|
||
|
||
build_deps=('python3' 'python3-pip' 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel')
|
||
build_deps_alt=('python3' 'python3-module-pip' 'python3-module-build' 'python3-module-installer' 'python3-module-setuptools' 'python3-module-wheel')
|
||
build_deps_arch=('python' 'python-pip' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
|
||
build_deps_debian=('python3' 'python3-pip' 'python3-build' 'python3-installer' 'python3-setuptools' 'python3-wheel')
|
||
build_deps_fedora=("${build_deps[@]}")
|
||
build_deps_redos=("${build_deps[@]}")
|
||
build_deps_rhel=("${build_deps[@]}")
|
||
build_deps_rosa=("${build_deps[@]}")
|
||
build_deps_alpine=('python3' 'py3-pip' 'py3-build' 'py3-installer' 'py3-setuptools' 'py3-wheel')
|
||
|
||
sources=("https://files.pythonhosted.org/packages/source/s/setuptools-scm/setuptools_scm-${version}.tar.gz")
|
||
checksums=('1c674ab4665686a0887d7e24c03ab25f24201c213e82ea689d2f3e169ef7ef57')
|
||
|
||
build() {
|
||
cd "$srcdir/setuptools_scm-${version}"
|
||
python -m build --wheel --no-isolation
|
||
}
|
||
|
||
package() {
|
||
cd "$srcdir/setuptools_scm-${version}"
|
||
python -m installer --destdir="$pkgdir" --prefix=/usr dist/*.whl
|
||
}
|
||
|
||
files() {
|
||
files-find-lib
|
||
}
|