community/py3-platformdirs: upgrade to 2.5.2

This commit is contained in:
Duncan Bellamy 2022-04-28 19:10:02 +00:00 committed by alice
parent ff570cd846
commit ced52f5785
2 changed files with 11 additions and 21 deletions

View File

@ -1,32 +1,34 @@
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-platformdirs
pkgver=2.5.1
pkgver=2.5.2
pkgrel=0
pkgdesc="Module for determining appropriate platform-specific dirs"
url="https://github.com/platformdirs/platformdirs"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
makedepends="py3-build py3-hatchling py3-hatch-vcs py3-installer"
checkdepends="py3-pytest py3-pytest-mock"
source="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz
fix-version.patch"
source="https://files.pythonhosted.org/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz"
builddir="$srcdir/platformdirs-$pkgver"
build() {
python3 setup.py build
python3 -m build --no-isolation --wheel
}
check() {
PYTHONPATH=build/lib pytest
python3 -m installer -d testenv \
dist/platformdirs-$pkgver-py3-none-any.whl
local sitedir="$(python3 -c 'import site;print(site.getsitepackages()[0])')"
PYTHONPATH="$PWD/testenv/$sitedir" python3 -m pytest
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
python3 -m installer -d "$pkgdir" \
dist/platformdirs-$pkgver-py3-none-any.whl
}
sha512sums="
44e31df3f76475de2db4ca0e998d0540b87d7eb514fa139b80f26c2217bf7040d725ea1b89751f8660f0c41a59f63a9efc8c70919d0db8a1ce479821c7051e73 platformdirs-2.5.1.tar.gz
dff46866fafb3b8739a84cd95dcb96cd633c82fcd55a4ce4df6f18424e7ff29a2a4c7d47e72c3bc9d93912dc4f36bfe07a1f2a0f397e375ffb7ae6159b357d47 fix-version.patch
b0b0dee3ac4176e64f302b3d34e253b2e33784160051b9dafb563962e597df75f2c9f714c050d5bdeb1769a1f56c2878a47e9a42361596e287ae7b2afe870370 platformdirs-2.5.2.tar.gz
"

View File

@ -1,12 +0,0 @@
diff --git a/setup.cfg b/setup.cfg
index c56ca83..31bacd8 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -3,6 +3,7 @@ name = platformdirs
description = A small Python module for determining appropriate platform-specific dirs, e.g. a "user data dir".
long_description = file: README.rst
long_description_content_type = text/x-rst
+version = attr: platformdirs.__version__
url = https://github.com/platformdirs/platformdirs
maintainer = Bernát Gábor, Julian Berman, Ofek Lev, Ronny Pfannschmidt
maintainer_email = gaborjbernat@gmail.com, Julian@GrayVines.com, oss@ofek.dev, opensource@ronnypfannschmidt.de