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

Caleb Maclennan alerque at gemini.archlinux.org
Tue Feb 22 19:46:33 UTC 2022


    Date: Tuesday, February 22, 2022 @ 19:46:33
  Author: alerque
Revision: 1136103

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-02-22 19:46:26 UTC (rev 1136102)
+++ PKGBUILD	2022-02-22 19:46:33 UTC (rev 1136103)
@@ -1,53 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Contributor: George Rawlinson <george at rawlinson.net.nz>
-
-_pkgname=poetry-core
-pkgname=python-poetry-core
-pkgver=1.0.7
-pkgrel=3
-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-dephell')
-checkdepends=('git' 'python-pytest' 'python-pytest-mock' 'python-virtualenv')
-conflicts=('python-poetry<1.1.0')
-source=("${_pkgname}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
-sha256sums=('a4a99d2d0adb54d69acaa6d852bc9d41818b5a2d751aa23a9543e32bc4e6660d')
-b2sums=('570f13e3c7298fd822a38b75c49c623bde4fa780b3787c3c9cfa3939bb68fee3eeaf6190013117a6e751cb6f87a15b343ba183529fcc07d30e37988097954d4a')
-
-prepare() {
-    cd ${_pkgname}-${pkgver}
-
-    # 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
-
-    dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd ${_pkgname}-${pkgver}
-
-    # only works inside git repositories
-    pytest \
-        -k 'not test_default_with_excluded_data and not test_default_src_with_excluded_data'
-}
-
-package() {
-    cd ${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-}

Copied: python-poetry-core/repos/community-any/PKGBUILD (from rev 1136102, python-poetry-core/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-02-22 19:46:33 UTC (rev 1136103)
@@ -0,0 +1,46 @@
+# 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.7
+pkgrel=3
+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=('a4a99d2d0adb54d69acaa6d852bc9d41818b5a2d751aa23a9543e32bc4e6660d')
+b2sums=('570f13e3c7298fd822a38b75c49c623bde4fa780b3787c3c9cfa3939bb68fee3eeaf6190013117a6e751cb6f87a15b343ba183529fcc07d30e37988097954d4a')
+
+prepare() {
+	cd "$_archive"
+	# remove vendored dependencies
+	sed -i '/^__version__/!d' poetry/core/__init__.py
+	rm -r poetry/core/_vendor
+}
+
+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
+}



More information about the arch-commits mailing list