Date: Tuesday, February 21, 2023 @ 08:02:22
  Author: arojas
Revision: 469317

archrelease: copy trunk to testing-any

Added:
  python-platformdirs/repos/testing-any/
  python-platformdirs/repos/testing-any/PKGBUILD
    (from rev 469316, python-platformdirs/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-platformdirs/repos/testing-any/PKGBUILD (from rev 469316, 
python-platformdirs/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD                                (rev 0)
+++ testing-any/PKGBUILD        2023-02-21 08:02:22 UTC (rev 469317)
@@ -0,0 +1,33 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Tobias Roettger <[email protected]>
+
+pkgname=python-platformdirs
+pkgver=3.0.0
+pkgrel=1
+pkgdesc='A small Python module for determining appropriate platform-specific 
dirs, e.g. a "user data dir"'
+arch=('any')
+url="https://github.com/platformdirs/platformdirs";
+license=('MIT')
+depends=('python-typing_extensions')
+makedepends=('python-build' 'python-installer' 'python-hatchling' 
'python-hatch-vcs')
+checkdepends=('python-pytest-mock' 'python-appdirs')
+source=("https://pypi.io/packages/source/p/platformdirs/platformdirs-$pkgver.tar.gz";)
+sha512sums=('8d21d314377fca8773a78261634ff24e3be668a2ad640f8abd16c5913873d977e04f76df943f4abc52a31d977daf79c1bbf80bc45fd12ad5e0258a27a1915059')
+
+build() {
+  cd platformdirs-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  cd platformdirs-$pkgver
+  PYTHONPATH="$PWD"/src pytest
+}
+
+package() {
+  cd platformdirs-$pkgver
+  python -m installer --destdir="$pkgdir/" dist/*.whl
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 et:

Reply via email to