[arch-commits] Commit in python-poetry-core/repos/community-any (PKGBUILD PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Wed Aug 31 07:57:12 UTC 2022


    Date: Wednesday, August 31, 2022 @ 07:57:12
  Author: alerque
Revision: 1289123

archrelease: copy trunk to community-any

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

----------+
 PKGBUILD |   88 +++++++++++++++++++++++++++----------------------------------
 1 file changed, 40 insertions(+), 48 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-31 07:57:02 UTC (rev 1289122)
+++ PKGBUILD	2022-08-31 07:57:12 UTC (rev 1289123)
@@ -1,48 +0,0 @@
-# Maintainer: Caleb Maclennan <caleb at alerque.com>
-# Contributor: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: George Rawlinson <george at rawlinson.net.nz>
-
-_pkgname=poetry-core
-pkgname=python-poetry-core
-pkgver=1.0.8
-pkgrel=1
-pkgdesc="Poetry PEP 517 Build Backend & Core Utilities"
-arch=('any')
-url="https://github.com/python-poetry/${_pkgname}"
-license=('MIT')
-_deps=('jsonschema' 'lark-parser' 'packaging' 'tomlkit')
-depends=("${_deps[@]/#/python-}")
-makedepends=(python-{build,installer})
-checkdepends=(git python-pytest python-pytest-mock python-virtualenv)
-conflicts=('python-poetry<1.1.0')
-_archive="$_pkgname-$pkgver"
-source=("$url/archive/$pkgver/$_archive.tar.gz")
-sha256sums=('b8795006e169a24e0e114ba1c03217716cd190e8d2716c796ddc5ed0382dbca8')
-b2sums=('1f663d927aee1f18a9ff38cbf95809538bf9c9e8079d040c240fbc1ffa9e492c6fd20c69f89ddf7e68ddea05beee3b909fdee02e93f47437fffa687dc492ec9a')
-
-prepare() {
-	cd "$_archive"
-	# remove vendored dependencies
-	sed -i '/^__version__/!d' poetry/core/__init__.py
-	rm -r poetry/core/_vendor
-	# be a proper namespace, python3-only ;)
-	rm poetry/__init__.py
-}
-
-build() {
-	cd "$_archive"
-	python -m build -wn
-}
-
-check() {
-	cd "$_archive"
-	# 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
-}

Copied: python-poetry-core/repos/community-any/PKGBUILD (from rev 1289122, python-poetry-core/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-31 07:57:12 UTC (rev 1289123)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Eli Schwartz <eschwartz at archlinux.org>
+# Contributor: George Rawlinson <george at rawlinson.net.nz>
+
+_pkgname=poetry-core
+pkgname=python-poetry-core
+pkgver=1.1.0
+pkgrel=1
+pkgdesc="Poetry PEP 517 Build Backend & Core Utilities"
+arch=('any')
+url="https://github.com/python-poetry/${_pkgname}"
+license=('MIT')
+_deps=('jsonschema' 'lark-parser' 'packaging' 'tomlkit')
+depends=("${_deps[@]/#/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=('44535d5c20e20189041714a45758774f713e4a53c3db071dca11a59d32aeba44')
+b2sums=('c5dc37579da5d260577c8027520ee9b4a31ca0c4f20f3dc6f233f4f686060aa2c2ae5af46f1d906939364f26cd04155f2c84dea9d209e8d09564b28c19d2220a')
+
+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
+}



More information about the arch-commits mailing list