[arch-commits] Commit in poetry/repos (3 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Tue Mar 5 20:41:31 UTC 2019


    Date: Tuesday, March 5, 2019 @ 20:41:30
  Author: svenstaro
Revision: 437776

archrelease: copy trunk to community-any

Added:
  poetry/repos/community-any/
  poetry/repos/community-any/PKGBUILD
    (from rev 437775, poetry/trunk/PKGBUILD)
  poetry/repos/community-any/poetry.py
    (from rev 437775, poetry/trunk/poetry.py)

-----------+
 PKGBUILD  |   66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 poetry.py |    9 ++++++++
 2 files changed, 75 insertions(+)

Copied: poetry/repos/community-any/PKGBUILD (from rev 437775, poetry/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2019-03-05 20:41:30 UTC (rev 437776)
@@ -0,0 +1,66 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+# Contributor: Kaizhao Zhang <zhangkaizhao at gmail.com>
+
+pkgname=poetry
+pkgver=0.12.11
+pkgrel=1
+pkgdesc="Python dependency management and packaging made easy"
+arch=('any')
+url="https://poetry.eustace.io/"
+license=('MIT')
+depends=('python')
+conflicts=('python-poetry')
+options=(!emptydirs)
+source=(
+  "https://github.com/sdispater/poetry/releases/download/${pkgver}/poetry-${pkgver}-linux.tar.gz"
+  "https://github.com/sdispater/poetry/archive/${pkgver}.tar.gz"
+  "poetry.py"
+)
+sha256sums=(
+  '8c8702499e07a316cbbcd05fdd5cdc648ac9b100ca84942fc626965e8eb3c905'
+  '8dff52a85f5e2288858ca37a41fcfc6ac9fcf7cee7adc6be2a1f4b00bebef80d'
+  'e9fee925c0fb42df53389bdfc8ebbe01bfd4f6146ed0a55786bd2ba741169c0c'
+)
+
+package() {
+  cd "${srcdir}"
+
+  rm -rf "${pkgdir}/usr/lib/poetry/poetry"
+
+  install -d "${pkgdir}/usr/lib/poetry"
+  cp -r poetry "${pkgdir}/usr/lib/poetry/poetry"
+
+  install -Dm755 poetry.py "${pkgdir}/usr/bin/poetry"
+
+  cd "${pkgdir}/usr/lib/poetry"
+
+  # Tab completion for Bash
+  install -d "${pkgdir}/usr/share/bash-completion/completions"
+  python -B -m poetry completions bash \
+    | sed '$s/\ \/.*\/pkg\/poetry\/usr\/lib\/poetry\/poetry\/__main__.py/\ \/usr\/bin\/poetry/' \
+    | sed 's/__main__py/poetry/' \
+    | sed 's/__main__.py/poetry/' \
+    | install -Dm644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${pkgname}"
+
+  # Tab completion for Zsh
+  install -d "${pkgdir}/usr/share/zsh/site-functions"
+  python -B -m poetry completions zsh \
+    | sed '$s/\ \/.*\/pkg\/poetry\/usr\/lib\/poetry\/poetry\/__main__.py/\ \/usr\/bin\/poetry/' \
+    | sed 's/__main__py/poetry/' \
+    | sed 's/__main__.py/poetry/' \
+    | install -Dm644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_${pkgname}"
+
+  # Tab completion for Fish
+  install -d "${pkgdir}/usr/share/fish/vendor_completions"
+  python -B -m poetry completions fish \
+    | sed 's/__main__py/poetry/' \
+    | sed 's/__main__.py/poetry/' \
+    | install -Dm644 /dev/stdin "${pkgdir}/usr/share/fish/vendor_completions.d/${pkgname}.fish"
+
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  install -Dm644 CHANGELOG.md "${pkgdir}/usr/share/doc/${pkgname}/CHANGELOG.md"
+  install -Dm644 CONTRIBUTING.md "${pkgdir}/usr/share/doc/${pkgname}/CONTRIBUTING.md"
+  install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}

Copied: poetry/repos/community-any/poetry.py (from rev 437775, poetry/trunk/poetry.py)
===================================================================
--- community-any/poetry.py	                        (rev 0)
+++ community-any/poetry.py	2019-03-05 20:41:30 UTC (rev 437776)
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+import sys
+
+POETRY_DIR = '/usr/lib/poetry'
+sys.path.insert(0, POETRY_DIR)
+
+if __name__ == '__main__':
+    from poetry.console import main
+    sys.exit(main())


More information about the arch-commits mailing list