Date: Sunday, July 31, 2022 @ 11:34:55 Author: dvzrv Revision: 1259306
archrelease: copy trunk to community-any Added: python-pdm/repos/community-any/PKGBUILD (from rev 1259305, python-pdm/trunk/PKGBUILD) Deleted: python-pdm/repos/community-any/PKGBUILD ----------+ PKGBUILD | 125 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 63 insertions(+), 62 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-31 11:34:40 UTC (rev 1259305) +++ PKGBUILD 2022-07-31 11:34:55 UTC (rev 1259306) @@ -1,62 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=pdm -pkgname=python-pdm -pkgver=2.0.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-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=('4bc727275df9d36008c848a5b3dbf8bf40eabaad393eaf24d793bd605d27d6705c4edb7f0dacd1c826d8bd31e7697df6a36b780ae03980d94e9e664ca36c1382') -b2sums=('8c8291c8991081b4840b6f93909ba3e38ee978fc197f5fb9185d79b7ac9b080ad06fdca20e62da1946416211d8e184a86178398cd800e678026e11f589c967f4') - -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 1259305, python-pdm/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-31 11:34:55 UTC (rev 1259306) @@ -0,0 +1,63 @@ +# Maintainer: David Runge <dv...@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/" +}