diff options
author | Michael Laß | 2023-07-30 14:31:59 +0200 |
---|---|---|
committer | Michael Laß | 2023-07-30 14:32:29 +0200 |
commit | 11b1a461e154498dd1c1d9a62ecb8d99eef50449 (patch) | |
tree | 9140c7b179c39aec8d93af75b351a84190e029f7 | |
parent | a961172cd7b65df493d307b743b9ce76d5f8fc94 (diff) | |
download | aur-11b1a461e154498dd1c1d9a62ecb8d99eef50449.tar.gz |
Adopt PEP 517, fix build warnings
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 19 | ||||
-rw-r--r-- | fix-setup.cfg.patch | 10 |
3 files changed, 29 insertions, 7 deletions
@@ -1,12 +1,17 @@ pkgbase = python-dotmap pkgdesc = Ordered, dynamically-expandable dot-access dictionary pkgver = 1.3.30 - pkgrel = 1 + pkgrel = 2 url = https://github.com/drgrib/dotmap arch = any license = MIT + makedepends = python-build + makedepends = python-installer makedepends = python-setuptools + makedepends = python-wheel source = https://files.pythonhosted.org/packages/source/d/dotmap/dotmap-1.3.30.tar.gz + source = fix-setup.cfg.patch sha256sums = 5821a7933f075fb47563417c0e92e0b7c031158b4c9a6a7e56163479b658b368 + sha256sums = b2f1d6972fbd169684f36c4958f7167c81a85d4aab126c11d1fcad1bfbc121ee pkgname = python-dotmap @@ -6,24 +6,31 @@ pkgname=python-dotmap _name=dotmap pkgver=1.3.30 -pkgrel=1 +pkgrel=2 pkgdesc="Ordered, dynamically-expandable dot-access dictionary" arch=('any') url="https://github.com/drgrib/dotmap" license=('MIT') -makedepends=('python-setuptools') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") -sha256sums=('5821a7933f075fb47563417c0e92e0b7c031158b4c9a6a7e56163479b658b368') +makedepends=(python-build python-installer python-setuptools python-wheel) +source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz" + fix-setup.cfg.patch) +sha256sums=('5821a7933f075fb47563417c0e92e0b7c031158b4c9a6a7e56163479b658b368' + 'b2f1d6972fbd169684f36c4958f7167c81a85d4aab126c11d1fcad1bfbc121ee') + +prepare() { + cd "$_name-$pkgver" + patch -p1 < "$srcdir"/fix-setup.cfg.patch +} build() { cd "$_name-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { cd "$_name-$pkgver" - python setup.py install --root="$pkgdir" --optimize=1 --skip-build + python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } diff --git a/fix-setup.cfg.patch b/fix-setup.cfg.patch new file mode 100644 index 000000000000..1790da833f53 --- /dev/null +++ b/fix-setup.cfg.patch @@ -0,0 +1,10 @@ +diff -u dotmap-1.3.30.orig/setup.cfg dotmap-1.3.30/setup.cfg +--- dotmap-1.3.30.orig/setup.cfg 2023-07-30 14:29:47.356871660 +0200 ++++ dotmap-1.3.30/setup.cfg 2023-07-30 14:30:13.563521346 +0200 +@@ -1,5 +1,5 @@ + [metadata] +-description-file = README.rst ++description_file = README.rst + + [egg_info] + tag_build = |