try changing to hatchling builds

This commit is contained in:
Richard PALO 2025-02-25 08:58:25 +01:00
parent 6226843b5c
commit 74624f2dbb
2 changed files with 6 additions and 5 deletions

View file

@ -1,15 +1,15 @@
pkgbase = python-schwifty pkgbase = python-schwifty
pkgdesc = Validate/generate IBANS and BICS pkgdesc = Validate/generate IBANS and BICS
pkgver = 2024.11.0 pkgver = 2024.11.0
pkgrel = 2 pkgrel = 3
url = http://github.com/mdomke/schwifty url = http://github.com/mdomke/schwifty
arch = any arch = any
license = MIT license = MIT
makedepends = python-build makedepends = python-build
makedepends = python-installer makedepends = python-installer
makedepends = python-setuptools
makedepends = python-setuptools-scm
makedepends = python-wheel makedepends = python-wheel
makedepends = python-hatchling
makedepends = python-hatch-vcs
depends = python>=3.9 depends = python>=3.9
depends = python-iso3166 depends = python-iso3166
depends = python-pycountry depends = python-pycountry

View file

@ -2,12 +2,12 @@
pkgname=python-schwifty pkgname=python-schwifty
_name=${pkgname#python-} _name=${pkgname#python-}
pkgver=2024.11.0 pkgver=2024.11.0
pkgrel=2 pkgrel=3
pkgdesc="Validate/generate IBANS and BICS" pkgdesc="Validate/generate IBANS and BICS"
arch=('any') arch=('any')
url="http://github.com/mdomke/schwifty" url="http://github.com/mdomke/schwifty"
license=('MIT') license=('MIT')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-setuptools-scm' 'python-wheel') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-hatchling' 'python-hatch-vcs')
optdepends=('python-pydantic>=2.0: data validation') optdepends=('python-pydantic>=2.0: data validation')
depends=('python>=3.9' 'python-iso3166' 'python-pycountry' 'python-rstr') depends=('python>=3.9' 'python-iso3166' 'python-pycountry' 'python-rstr')
source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz) source=(https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz)
@ -21,4 +21,5 @@ build() {
package() { package() {
cd "$srcdir/$_name-$pkgver" cd "$srcdir/$_name-$pkgver"
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 "${srcdir}/${_name}-${pkgver}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
} }