Date: Wednesday, December 28, 2022 @ 09:46:02
Author: dvzrv
Revision: 1369842
archrelease: copy trunk to community-any
Added:
python-pdm/repos/community-any/PKGBUILD
(from rev 1369841, python-pdm/trunk/PKGBUILD)
Deleted:
python-pdm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 132 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 66 insertions(+), 66 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-12-28 09:45:51 UTC (rev 1369841)
+++ PKGBUILD 2022-12-28 09:46:02 UTC (rev 1369842)
@@ -1,66 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=pdm
-pkgname=python-pdm
-pkgver=2.3.3
-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')
-source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
-sha512sums=('41bfcfb22ef86f44e04b0f5a85e771728cf34ca7a71fa190e50a672a09590559adb1741a2ae2a2b291064e278f8fe1039d048e0654f7f8bedf06b10ce7b34fa2')
-b2sums=('2936b496fe328dfb0b489430c0663f71bd28123232941ccb15cdd13148541fb588ddb94356f43ea7b086adbe5be04ea91328e57ec5239a1d4456feab98a1d41f')
-
-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"
-}
Copied: python-pdm/repos/community-any/PKGBUILD (from rev 1369841,
python-pdm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-12-28 09:46:02 UTC (rev 1369842)
@@ -0,0 +1,66 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pdm
+pkgname=python-pdm
+pkgver=2.3.4
+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')
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('d4a08318bd0728bb63c5be345fb8a15738db6b250f3f2d550e8259dee464a2ad0389113eae932cdbfcac3ea575426e66327d183902e3426daa0786f3920d6488')
+b2sums=('f62ef5be0d6832ecfb8e1de7fcd6ac99367d46dc6d6bf8613f58593765fe2804376698c7e93357fdd4f6a5d6ed24927d508418c2b5aceaeb1a1969bea991e0f7')
+
+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"
+}