From 4a580474f93289b19f61afde22b4373459a6b14b Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Mon, 30 Dec 2024 15:56:18 -0500 Subject: [PATCH] Update version to 1.3.0 Fix setuptools deprecated warning Follow https://wiki.archlinux.org/title/Python_package_guidelines#Standards_based_(PEP_517) --- .SRCINFO | 8 ++++---- PKGBUILD | 18 ++++++++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 39bee19..c78fada 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,13 +1,13 @@ pkgbase = python-genson pkgdesc = GenSON is a powerful, user-friendly JSON Schema generator. - pkgver = 1.2.2 - pkgrel = 1 + pkgver = 1.3.0 + pkgrel = 11 url = https://github.com/wolverdude/genson arch = any license = MIT makedepends = python-setuptools depends = python - source = https://files.pythonhosted.org/packages/source/g/genson/genson-1.2.2.tar.gz - sha256sums = 8caf69aa10af7aee0e1a1351d1d06801f4696e005f06cedef438635384346a16 + source = https://files.pythonhosted.org/packages/source/g/genson/genson-1.3.0.tar.gz + sha256sums = e02db9ac2e3fd29e65b5286f7135762e2cd8a986537c075b06fc5f1517308e37 pkgname = python-genson diff --git a/PKGBUILD b/PKGBUILD index 525714d..6df2ff9 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,18 +2,24 @@ _name=genson pkgname=python-$_name -pkgver=1.2.2 -pkgrel=1 +pkgver=1.3.0 +pkgrel=11 pkgdesc='GenSON is a powerful, user-friendly JSON Schema generator.' arch=(any) url="https://github.com/wolverdude/$_name" license=(MIT) depends=(python) -makedepends=(python-setuptools) +makedepends=(python-setuptools python-build python-installer python-wheel) source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name//-/_}/${_name//-/_}-$pkgver.tar.gz") -sha256sums=('8caf69aa10af7aee0e1a1351d1d06801f4696e005f06cedef438635384346a16') +sha256sums=('e02db9ac2e3fd29e65b5286f7135762e2cd8a986537c075b06fc5f1517308e37') + + +build() { + cd $_name-$pkgver + python -m build --wheel --no-isolation +} package() { - cd "$srcdir/${_name//-/_}-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 + cd $_name-$pkgver + python -m installer --destdir="$pkgdir" dist/*.whl }