Date: Sunday, May 14, 2023 @ 21:05:23
  Author: dvzrv
Revision: 1461714

archrelease: copy trunk to community-testing-any

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

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

Copied: python-pdm/repos/community-testing-any/PKGBUILD (from rev 1461713, 
python-pdm/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-05-14 21:05:23 UTC (rev 1461714)
@@ -0,0 +1,84 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pdm
+pkgname=python-pdm
+pkgver=2.6.1
+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
+  python-blinker
+  python-cachecontrol
+  python-certifi
+  python-dotenv
+  python-findpython
+  python-installer
+  python-lockfile  # required optdepends of python-cachecontrol
+  python-packaging
+  python-pdm-backend
+  python-platformdirs
+  python-pyproject-hooks
+  python-requests  # required by python-requests-toolbelt
+  python-requests-toolbelt
+  python-resolvelib
+  python-rich
+  python-shellingham
+  python-tomlkit
+  python-unearth
+  python-virtualenv
+)
+makedepends=(
+  python-build
+  python-wheel
+)
+checkdepends=(
+  python-setuptools
+  python-pytest
+  python-pytest-httpserver
+  python-pytest-mock
+)
+optdepends=(
+  'python-keyring: for storing credentials'
+  'python-pytest-mock: for pytest plugin'
+  'python-setuptools: for parsing setup.py files'
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('91d0967f407f1f1e2d23e9b43e268d105ed14ec7772eaa433bf20912fa710478ee7a33d01691d795b875cf6385d61bb3d431d176d53c16d3018670e28794b9c5')
+b2sums=('65a3f8e8badf4bd6da2d801ea38f1e85c1e6ccf204a8c4fb1aa7be31c9093ae8ac93b882a511a00814b4838a479fd7b0cfdcea452198388abfec7cdc00b6b610')
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+}
+
+check() {
+  local pytest_options=(
+    -vv
+    # https://github.com/pdm-project/pdm/issues/1831
+    --deselect tests/cli/test_others.py::test_build_distributions
+    # we don't want to run tests that require the internet
+    --deselect tests/test_project.py::test_access_index_with_auth
+  )
+  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="$PWD/test_dir/$site_packages:$PYTHONPATH"
+  pytest "${pytest_options[@]}"
+}
+
+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