This repository has been archived by the owner on May 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 303
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
archrelease: copy trunk to community-any
git-svn-id: file:///srv/repos/svn-community/svn@1290929 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
1 parent
23db1d0
commit 1d14f8b
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |