Date: Wednesday, April 5, 2023 @ 17:56:07
  Author: felixonmars
Revision: 1437854

archrelease: copy trunk to community-staging-any

Added:
  python-poetry-core/repos/community-staging-any/
  python-poetry-core/repos/community-staging-any/PKGBUILD
    (from rev 1437853, python-poetry-core/trunk/PKGBUILD)

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

Copied: python-poetry-core/repos/community-staging-any/PKGBUILD (from rev 
1437853, python-poetry-core/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-05 17:56:07 UTC (rev 1437854)
@@ -0,0 +1,46 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+# Contributor: George Rawlinson <[email protected]>
+
+_pkgname=poetry-core
+pkgname=python-poetry-core
+pkgver=1.5.2
+pkgrel=2
+pkgdesc='Poetry PEP 517 Build Backend & Core Utilities'
+arch=('any')
+url="https://github.com/python-poetry/${_pkgname}";
+license=('MIT')
+_pydeps=(jsonschema
+         lark-parser
+         packaging
+         tomlkit)
+depends=("${_pydeps[@]/#/python-}")
+makedepends=(python-{build,installer})
+checkdepends=(git
+              python-pytest
+              python-pytest-mock
+              python-setuptools
+              python-virtualenv)
+conflicts=('python-poetry<1.1.0')
+_archive="$_pkgname-$pkgver"
+source=("$url/archive/$pkgver/$_archive.tar.gz")
+sha256sums=('d2c4c1dd4445d592e77c29d565ec763a7372fad281c1c5803888f2b8cc564fa8')
+
+build() {
+       cd "$_archive"
+       python -m build -wn
+}
+
+check() {
+       cd "$_archive"
+       export PYTHONPATH="$PWD/src"
+       # only works inside git repositories
+       pytest \
+               -k 'not test_default_with_excluded_data and not 
test_default_src_with_excluded_data'
+}
+
+package() {
+       cd "$_archive"
+       python -m installer -d "$pkgdir" dist/*.whl
+       install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}

Reply via email to