Date: Thursday, January 12, 2023 @ 18:09:46
  Author: dvzrv
Revision: 1383129

archrelease: copy trunk to community-testing-any

Added:
  python-pdm/repos/community-testing-any/
  python-pdm/repos/community-testing-any/PKGBUILD
    (from rev 1383128, python-pdm/trunk/PKGBUILD)

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

Copied: python-pdm/repos/community-testing-any/PKGBUILD (from rev 1383128, 
python-pdm/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-01-12 18:09:46 UTC (rev 1383129)
@@ -0,0 +1,69 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pdm
+pkgname=python-pdm
+pkgver=2.4.0
+pkgrel=1
+pkgdesc="A modern Python package manager with PEP 582 support"
+arch=(any)
+url="https://github.com/pdm-project/pdm";
+license=(MIT)
+depends=(
+  python-blinker
+  python-cachecontrol
+  python-certifi
+  python-dotenv
+  python-findpython
+  python-installer
+  python-lockfile  # required optdepends of python-cachecontrol
+  python-packaging
+  python-pdm-pep517
+  python-platformdirs
+  python-pyproject-hooks
+  python-requests-toolbelt
+  python-resolvelib
+  python-rich
+  python-shellingham
+  python-tomli
+  python-tomlkit
+  python-unearth
+  python-virtualenv
+)
+makedepends=(python-build python-wheel)
+checkdepends=(python-pytest python-pytest-mock python-pytest-xdist)
+optdepends=(
+  'python-keyring: for storing credentials'
+  'python-pytest-mock: for pytest plugin'
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('a1a7d8d06f086a1ef652a487c85aad7d23c9dc8362e80805983ba311f8406d7d365e13011323929d1455815b65412b52100e4c4033a79b2025642471bcbeea63')
+b2sums=('c6aee5507c0c0eb6b939e26f30825ae78a5aba4d1e7d227793556cb9d174b3f2b400868320ac38ee18bbf93c807a0e4773a7049f3e313cc24f47841b84f0e4a7')
+
+build() {
+  cd $_name-$pkgver
+  export PDM_PEP517_SCM_VERSION=$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local _site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+
+  cd $_name-$pkgver
+  # install to temporary location, as importlib is used
+  python -m installer --destdir=test_dir dist/*.whl
+  export PYTHONPATH="test_dir/$_site_packages:$PYTHONPATH"
+  # skip tests that would fail because of missing interpreters: 
https://github.com/pdm-project/pdm/issues/1175
+  pytest -vv -c /dev/null -k 'not test_basic_integration and not 
test_use_invalid_wrapper_python'
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
+  # completions
+  install -vd 
"$pkgdir/usr/share/"{bash-completion/completions,fish/vendor_completions.d,zsh/site-functions}
+  "$pkgdir"/usr/bin/pdm completion bash > 
"$pkgdir/usr/share/bash-completion/completions/$_name"
+  "$pkgdir"/usr/bin/pdm completion fish > 
"$pkgdir/usr/share/fish/vendor_completions.d/$_name.fish"
+  "$pkgdir"/usr/bin/pdm completion zsh > 
"$pkgdir/usr/share/zsh/site-functions/_$_name"
+}

Reply via email to