Date: Tuesday, March 14, 2023 @ 07:34:01
  Author: alerque
Revision: 1420097

archrelease: copy trunk to community-testing-any

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

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

Copied: python-poetry-core/repos/community-testing-any/PKGBUILD (from rev 
1420096, python-poetry-core/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD                              (rev 0)
+++ community-testing-any/PKGBUILD      2023-03-14 07:34:01 UTC (rev 1420097)
@@ -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=1
+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