Files
MSYS2-packages/python-trove-classifiers/PKGBUILD
Christoph Reiter 0566eff63a Remove makedepends on python-wheel everywhere
setuptools no longer needs it for building wheels since v70.1.0
2024-08-16 14:03:27 +02:00

40 lines
986 B
Bash

# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>
_pyname=trove_classifiers
pkgname=python-trove-classifiers
pkgver=2024.5.22
pkgrel=3
pkgdesc="Canonical source for classifiers on PyPI (pypi.org)"
arch=('any')
url="https://github.com/pypa/trove-classifiers"
msys2_references=(
"anitya: 88298"
"pypi:trove-classifiers"
)
license=('spdx:Apache-2.0')
depends=(
'python'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-calver'
)
source=("https://pypi.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
sha256sums=('8a6242bbb5c9ae88d34cf665e816b287d2212973c8777dfaef5ec18d72ac1d03')
build() {
cd "${_pyname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pyname}-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}