[arch-commits] Commit in python-pdm/repos/community-any (PKGBUILD PKGBUILD)
David Runge
dvzrv at gemini.archlinux.org
Sat Aug 6 15:04:46 UTC 2022
Date: Saturday, August 6, 2022 @ 15:04:46
Author: dvzrv
Revision: 1260423
archrelease: copy trunk to community-any
Added:
python-pdm/repos/community-any/PKGBUILD
(from rev 1260422, python-pdm/trunk/PKGBUILD)
Deleted:
python-pdm/repos/community-any/PKGBUILD
----------+
PKGBUILD | 125 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 62 insertions(+), 63 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-06 15:04:34 UTC (rev 1260422)
+++ PKGBUILD 2022-08-06 15:04:46 UTC (rev 1260423)
@@ -1,63 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pdm
-pkgname=python-pdm
-# WARNING: vendored libs may change in patch level versions...
-pkgver=2.1.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-click
- python-dotenv
- python-findpython
- python-installer
- python-packaging
- python-pdm-pep517
- python-pep517
- python-pip
- python-platformdirs
- python-requests-toolbelt
- python-resolvelib
- python-rich
- python-shellingham
- python-tomli
- python-tomlkit
- python-unearth
- python-virtualenv
- python-wheel
-)
-makedepends=(python-build)
-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=('7f7c7982a9d6078b1206b73abd4fd9ef5a38f437b2e2cd32c4cc04481a1a28ebd6de4ae73443ec3427eccc86ed98c33b65c0375b4b2176b0f147e418538dd0a4')
-b2sums=('48dda9ad120ac2b244a06c0de4b84b9f5ca4fd82c4c34d40ea6c6fc7b9c79d1e85a4a78fc52f133e0be9ae11fca0c75f39a7c94cabf48a85e88c7d2459dc19ac')
-
-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'
-}
-
-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/"
-}
Copied: python-pdm/repos/community-any/PKGBUILD (from rev 1260422, python-pdm/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-08-06 15:04:46 UTC (rev 1260423)
@@ -0,0 +1,62 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pdm
+pkgname=python-pdm
+pkgver=2.1.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-blinker
+ python-cachecontrol
+ python-click
+ python-dotenv
+ python-findpython
+ python-installer
+ python-packaging
+ python-pdm-pep517
+ python-pep517
+ python-pip
+ python-platformdirs
+ python-requests-toolbelt
+ python-resolvelib
+ python-rich
+ python-shellingham
+ python-tomli
+ python-tomlkit
+ python-unearth
+ python-virtualenv
+ python-wheel
+)
+makedepends=(python-build)
+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=('1d5b0f571eb316bea28677070d325b6ae292a7383ed1f56d3a801462bd23fbd0e5269d36faf7db226a6ce740c99c8709a754703f594ec3f87d56aa5449e9de9b')
+b2sums=('fc20d97be35f042039349d7c2aa593e5547a54dbf616ef9e9866278f73f04993c460195cb0392ccf2399364dceed8ce1c6fe4a14e42eaf21787cd1c39290d76b')
+
+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'
+}
+
+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/"
+}
More information about the arch-commits
mailing list