diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-06-02 01:53:49 -0300 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-06-02 16:20:35 +0000 |
commit | 6277c462f55f1babf8acf9d6340005ac6d710126 (patch) | |
tree | 009d1d93d7831ef55120c4b3aa43216d03609efe /testing/poetry | |
parent | d30ab6d09fe7c28352a227a2804a7b4a887057ab (diff) | |
download | aports-6277c462f55f1babf8acf9d6340005ac6d710126.tar.bz2 aports-6277c462f55f1babf8acf9d6340005ac6d710126.tar.xz |
testing/poetry: new aport
Python3 dependency management and packaging system
https://poetry.eustace.io/
Closes GH-8381
Diffstat (limited to 'testing/poetry')
-rw-r--r-- | testing/poetry/APKBUILD | 40 | ||||
-rw-r--r-- | testing/poetry/poetry.py | 10 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/poetry/APKBUILD b/testing/poetry/APKBUILD new file mode 100644 index 0000000000..6fdee891f1 --- /dev/null +++ b/testing/poetry/APKBUILD @@ -0,0 +1,40 @@ +# Contributor: Leo <thinkabit.ukim@gmail.com> +# Maintainer: Leo <thinkabit.ukim@gmail.com> +pkgname=poetry +pkgver=0.12.16 +pkgrel=0 +pkgdesc="Python3 dependency management and packaging system" +url="https://poetry.eustace.io/" +arch="noarch" +license="MIT" +depends=" + python3 + py3-cleo<0.7.0 + py3-requests + py3-cachy + py3-jsonschema + py3-pyrsistent + py3-parsing + py3-cachecontrol + py3-pkginfo + py3-html5lib + py3-shellingham + py3-tomlkit + " +source=" + https://github.com/sdispater/poetry/releases/download/${pkgver}/poetry-${pkgver}-linux.tar.gz + $pkgname-$pkgver.tar.gz::https://github.com/sdispater/poetry/archive/${pkgver}.tar.gz + poetry.py + " + +package() { + rm -rf "$pkgdir"/usr/lib/poetry/poetry + + install -d "$pkgdir"/usr/lib/poetry + cp -r poetry "$pkgdir"/usr/lib/poetry/poetry + + install -Dm0755 "$srcdir"/poetry.py "$pkgdir"/usr/bin/poetry +} +sha512sums="5f45b0f0a7a96f4d53505e8c3d699690d12e3c8dbc4e1aa3257ffbdced79129f0ef3610dd2d4db138aa1a27fda7fe2b584ab0273a732898993390043cc1e4d05 poetry-0.12.16-linux.tar.gz +f3e197de5d485fcf4e3624f9e98b6ab86d01fd8f945aff8dff54753297a51feb08f5576b0a292d1ed81ad4c005b1a086c051344b78607047fc86f4da874c5535 poetry-0.12.16.tar.gz +fca6cad49967e7fae7fcdd12e6d15da649f11dd0acfc6e0904eb75ec1f3b477a28328553a4b356422087a3f375d5a4851cf9c793eb041f7ae427352b4747a6fc poetry.py" diff --git a/testing/poetry/poetry.py b/testing/poetry/poetry.py new file mode 100644 index 0000000000..5e866e29af --- /dev/null +++ b/testing/poetry/poetry.py @@ -0,0 +1,10 @@ +#!/usr/bin/env python3 +import sys + +POETRY_DIR = '/usr/lib/poetry' +sys.path.insert(0, POETRY_DIR) + +if __name__ == '__main__': + from poetry.console import main + sys.exit(main()) + |