[arch-commits] Commit in python-poetry-plugin-export/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Sep 2 16:36:54 UTC 2022
Date: Friday, September 2, 2022 @ 16:36:53
Author: felixonmars
Revision: 1290929
archrelease: copy trunk to community-any
Added:
python-poetry-plugin-export/repos/community-any/
python-poetry-plugin-export/repos/community-any/PKGBUILD
(from rev 1290928, python-poetry-plugin-export/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-poetry-plugin-export/repos/community-any/PKGBUILD (from rev 1290928, python-poetry-plugin-export/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-09-02 16:36:53 UTC (rev 1290929)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+_pkgname=poetry-plugin-export
+pkgname=python-poetry-plugin-export
+pkgver=1.0.6
+pkgrel=1
+pkgdesc="Poetry plugin to export the dependencies to various formats "
+url="https://github.com/sdispater/poetry-plugin-export"
+license=('MIT')
+arch=('any')
+depends=('python-poetry')
+makedepends=('python-build' 'python-installer')
+checkdepends=('python-pytest-mock')
+source=("https://github.com/python-poetry/poetry-plugin-export/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('61afdbff0dd0e7ded56b1b4c428cd0b4dd07c66e8bfa236a4ab178f08a12e6e13600a7274b7802f6cd339ccad1c40846a700dc42349cfadf180123734f333a03')
+
+build() {
+ cd poetry-plugin-export-$pkgver
+ python -m build -wn
+}
+
+check() {
+ cd poetry-plugin-export-$pkgver
+ python -m installer -d tmp_install dist/*.whl
+ PYTHONPATH="$PWD/tmp_install/usr/lib/python3.10/site-packages" pytest
+}
+
+package() {
+ cd poetry-plugin-export-$pkgver
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
More information about the arch-commits
mailing list