From 7d8a531c7a2ad2f9259f45b35216cec54639acf0 Mon Sep 17 00:00:00 2001 From: felixonmars Date: Fri, 2 Sep 2022 17:45:00 +0000 Subject: [PATCH] upgpkg: python-poetry-plugin-export 1.0.6-2: temporarily remove dependency on poetry to break circular dependendy for https://github.com/pypa/build/issues/511 git-svn-id: file:///srv/repos/svn-community/svn@1290951 9fca08f4-af9d-4005-b8df-a31f2cc04f65 --- trunk/PKGBUILD | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/trunk/PKGBUILD b/trunk/PKGBUILD index 0a5c97e367e3..4590fcd8a7e4 100644 --- a/trunk/PKGBUILD +++ b/trunk/PKGBUILD @@ -3,7 +3,7 @@ _pkgname=poetry-plugin-export pkgname=python-poetry-plugin-export pkgver=1.0.6 -pkgrel=1 +pkgrel=2 pkgdesc="Poetry plugin to export the dependencies to various formats " url="https://github.com/sdispater/poetry-plugin-export" license=('MIT') @@ -14,6 +14,13 @@ checkdepends=('python-pytest-mock') source=("https://github.com/python-poetry/poetry-plugin-export/archive/$pkgver/$pkgname-$pkgver.tar.gz") sha512sums=('61afdbff0dd0e7ded56b1b4c428cd0b4dd07c66e8bfa236a4ab178f08a12e6e13600a7274b7802f6cd339ccad1c40846a700dc42349cfadf180123734f333a03') +prepare() { + cd poetry-plugin-export-$pkgver + # Patch out the dependency on poetry because `build` couldn't handle circular dependency: + # https://github.com/pypa/build/issues/511 + sed -i '/^poetry =/d' pyproject.toml +} + build() { cd poetry-plugin-export-$pkgver python -m build -wn