Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
archrelease: copy trunk to community-any
Browse files Browse the repository at this point in the history
git-svn-id: file:///srv/repos/svn-community/svn@1290929 9fca08f4-af9d-4005-b8df-a31f2cc04f65
  • Loading branch information
felixonmars committed Sep 2, 2022
1 parent 23db1d0 commit 1d14f8b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions repos/community-any/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Maintainer: Felix Yan <felixonmars@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
}

0 comments on commit 1d14f8b

Please sign in to comment.