Date: Tuesday, February 21, 2023 @ 11:50:18
Author: dvzrv
Revision: 1403225
archrelease: copy trunk to community-any
Added:
python-pdm/repos/community-any/PKGBUILD
(from rev 1403224, python-pdm/trunk/PKGBUILD)
Deleted:
python-pdm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 138 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 69 insertions(+), 69 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-02-21 11:50:08 UTC (rev 1403224)
+++ PKGBUILD 2023-02-21 11:50:18 UTC (rev 1403225)
@@ -1,69 +0,0 @@
-# Maintainer: David Runge <[email protected]>
-
-_name=pdm
-pkgname=python-pdm
-pkgver=2.4.5
-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=('92aa4f20feeb7eb51ebf9f213258b9edd1cbaa83b7ef9de4b8b4a9638a015f3d66e8e13c7229db8d54ebad8bacca6460b3f2413abb9a8176649d9a29b2c55338')
-b2sums=('39f7331f61d923751f470c7cc2c83a3f94a8f7450272c15c5abac92e39fcaba8499cdfdfd4b2aad6537df765942a10073f63d5a0c64b69deb5be31358d5769ec')
-
-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 1403224,
python-pdm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-02-21 11:50:18 UTC (rev 1403225)
@@ -0,0 +1,69 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=pdm
+pkgname=python-pdm
+pkgver=2.4.6
+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=('d1cd0129ff0d07b85b069f5e55570cbd2ec6dd07a42e9411e406b2cd196a525f5d9fd0eb3129cf95764b5a9ba2f4d1dbb585d27782d4a4a6d65fa41aed8f38e3')
+b2sums=('6abfef003c6d3616a7e7fd9331fd70a97c50774733bb7301af44fa08b206dbac1de2000331f2102daadca0881eeee74ea9cabcc4b28667b3a55080432411dca1')
+
+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"
+}