[arch-commits] Commit in python-poetry/repos/community-any (4 files)

Sven-Hendrik Haase svenstaro at archlinux.org
Mon Feb 3 14:53:42 UTC 2020


    Date: Monday, February 3, 2020 @ 14:53:42
  Author: svenstaro
Revision: 561936

archrelease: copy trunk to community-any

Added:
  python-poetry/repos/community-any/PKGBUILD
    (from rev 561935, python-poetry/trunk/PKGBUILD)
  python-poetry/repos/community-any/poetry-completions-generator
    (from rev 561935, python-poetry/trunk/poetry-completions-generator)
Deleted:
  python-poetry/repos/community-any/PKGBUILD
  python-poetry/repos/community-any/poetry-completions-generator

------------------------------+
 PKGBUILD                     |  146 ++++++++++++++++++++---------------------
 poetry-completions-generator |   30 ++++----
 2 files changed, 88 insertions(+), 88 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-02-03 14:53:32 UTC (rev 561935)
+++ PKGBUILD	2020-02-03 14:53:42 UTC (rev 561936)
@@ -1,73 +0,0 @@
-# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
-# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
-
-_pkgname=poetry
-pkgname=python-poetry
-pkgver=1.0.2
-pkgrel=1
-pkgdesc="Python dependency management and packaging made easy"
-arch=('any')
-url="https://poetry.eustace.io/"
-license=('MIT')
-_deps=('cachecontrol' 'cachy' 'cleo' 'html5lib' 'jsonschema' 'lockfile'
-       'pkginfo' 'pyparsing' 'pyrsistent' 'requests' 'requests-toolbelt'
-       'shellingham' 'tomlkit' 'keyring' 'pexpect')
-depends=("${_deps[@]/#/python-}")
-checkdepends=('git' 'python-pytest' 'python-pytest-mock' 'python-httpretty')
-provides=('poetry')
-conflicts=('poetry')
-replaces=('poetry')
-source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/sdispater/${_pkgname}/archive/${pkgver}.tar.gz"
-        "poetry-completions-generator")
-sha256sums=('837c429e70851af65c761af55ae509a8114d4acba5b6559b904d82ee3b230566'
-            '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
-b2sums=('853fcae57f6b8e205bc1cc6d95b9373ea3fd893e3aa49836d9f14725c4bf7a1f7e364188891b2b120697dc97c3964636698e15dd9fb16abace64621a252dcac6'
-        '3fd62e7936d7547dcd06a1a7519f176a1597553ecc959144a4be799bb7e2d688e187f14604d3e359ed10c128c722ebd588c07ca318e0be0a31d276dcb388e2e1')
-
-prepare() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    python -m poetry build -f sdist
-    tar xf dist/${_pkgname}-${pkgver}.tar.gz
-}
-
-build() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}
-
-    python setup.py build
-}
-
-check() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}
-
-    # only works inside git repositories
-    pytest \
-        -k 'not test_default_with_excluded_data ' \
-        --ignore tests/console/commands/test_add.py \
-        --ignore tests/console/commands/test_export.py \
-        --ignore tests/console/commands/test_show.py
-}
-
-package() {
-    cd "${srcdir}"/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
-    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
-
-    # install completions, which for some crazy reason hardcode the filename
-    # used to invoke which is __main__.py if we use python -m poetry, and also
-    # adds the full directory path???
-    install -m755 "${srcdir}"/poetry-completions-generator ./poetry-completions-generator
-    ./poetry-completions-generator completions bash | sed "\|${srcdir}|d" | \
-        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/bash-completion/completions/poetry
-    ./poetry-completions-generator completions zsh | sed "\|${srcdir}|d" | \
-        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/zsh/site-functions/_poetry
-    ./poetry-completions-generator completions fish | \
-        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/fish/vendor_completions.d/poetry.fish
-
-    sed -i \
-        -e "s/pyrsistent.*/pyrsistent/g" \
-        -e "s/requests-toolbelt.*/requests-toolbelt/g" \
-        -e "s/keyring.*/keyring/g" \
-        "${pkgdir}"/usr/lib/python3.8/site-packages/poetry-${pkgver}-py3.8.egg-info/requires.txt
-}

Copied: python-poetry/repos/community-any/PKGBUILD (from rev 561935, python-poetry/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-02-03 14:53:42 UTC (rev 561936)
@@ -0,0 +1,73 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
+
+_pkgname=poetry
+pkgname=python-poetry
+pkgver=1.0.3
+pkgrel=1
+pkgdesc="Python dependency management and packaging made easy"
+arch=('any')
+url="https://poetry.eustace.io/"
+license=('MIT')
+_deps=('cachecontrol' 'cachy' 'cleo' 'html5lib' 'jsonschema' 'lockfile'
+       'pkginfo' 'pyparsing' 'pyrsistent' 'requests' 'requests-toolbelt'
+       'shellingham' 'tomlkit' 'keyring' 'pexpect')
+depends=("${_deps[@]/#/python-}")
+checkdepends=('git' 'python-pytest' 'python-pytest-mock' 'python-httpretty')
+provides=('poetry')
+conflicts=('poetry')
+replaces=('poetry')
+source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/sdispater/${_pkgname}/archive/${pkgver}.tar.gz"
+        "poetry-completions-generator")
+sha256sums=('29fa6d7ddefbe50338e826ffecba332cf94c81afdc28e6e9e94577a78fc40046'
+            '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
+b2sums=('2b0ca38c4abd496021f7730805b12df211af3cdb91de1b6f76b92a648c07f01c3c5bd6070bf38e5637f5a49c803d8e12f355c846017a5b56de1f267586310968'
+        '3fd62e7936d7547dcd06a1a7519f176a1597553ecc959144a4be799bb7e2d688e187f14604d3e359ed10c128c722ebd588c07ca318e0be0a31d276dcb388e2e1')
+
+prepare() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    python -m poetry build -f sdist
+    tar xf dist/${_pkgname}-${pkgver}.tar.gz
+}
+
+build() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}
+
+    python setup.py build
+}
+
+check() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}
+
+    # only works inside git repositories
+    pytest \
+        -k 'not test_default_with_excluded_data ' \
+        --ignore tests/console/commands/test_add.py \
+        --ignore tests/console/commands/test_export.py \
+        --ignore tests/console/commands/test_show.py
+}
+
+package() {
+    cd "${srcdir}"/${_pkgname}-${pkgver}/${_pkgname}-${pkgver}
+
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+
+    # install completions, which for some crazy reason hardcode the filename
+    # used to invoke which is __main__.py if we use python -m poetry, and also
+    # adds the full directory path???
+    install -m755 "${srcdir}"/poetry-completions-generator ./poetry-completions-generator
+    ./poetry-completions-generator completions bash | sed "\|${srcdir}|d" | \
+        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/bash-completion/completions/poetry
+    ./poetry-completions-generator completions zsh | sed "\|${srcdir}|d" | \
+        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/zsh/site-functions/_poetry
+    ./poetry-completions-generator completions fish | \
+        install -Dm644 /dev/stdin "${pkgdir}"/usr/share/fish/vendor_completions.d/poetry.fish
+
+    sed -i \
+        -e "s/pyrsistent.*/pyrsistent/g" \
+        -e "s/requests-toolbelt.*/requests-toolbelt/g" \
+        -e "s/keyring.*/keyring/g" \
+        "${pkgdir}"/usr/lib/python3.8/site-packages/poetry-${pkgver}-py3.8.egg-info/requires.txt
+}

Deleted: poetry-completions-generator
===================================================================
--- poetry-completions-generator	2020-02-03 14:53:32 UTC (rev 561935)
+++ poetry-completions-generator	2020-02-03 14:53:42 UTC (rev 561936)
@@ -1,15 +0,0 @@
-#!/usr/bin/python3
-
-# This is a dummy script that fakes its own sys.argv[0] to make the completions
-# subcommand do the correct thing when run from the build directory. cleo's
-# completion generator uses this to generate completions for sys.argv[0] as well
-# as (???) os.path.join(os.getcwd(), sys.argv[0]) for mysterious reasons.
-#
-# We don't want to complete 'poetry/__main__.py'....
-
-import sys
-from poetry.console import main
-
-sys.argv = ['poetry', 'completions', sys.argv.pop()]
-
-main()

Copied: python-poetry/repos/community-any/poetry-completions-generator (from rev 561935, python-poetry/trunk/poetry-completions-generator)
===================================================================
--- poetry-completions-generator	                        (rev 0)
+++ poetry-completions-generator	2020-02-03 14:53:42 UTC (rev 561936)
@@ -0,0 +1,15 @@
+#!/usr/bin/python3
+
+# This is a dummy script that fakes its own sys.argv[0] to make the completions
+# subcommand do the correct thing when run from the build directory. cleo's
+# completion generator uses this to generate completions for sys.argv[0] as well
+# as (???) os.path.join(os.getcwd(), sys.argv[0]) for mysterious reasons.
+#
+# We don't want to complete 'poetry/__main__.py'....
+
+import sys
+from poetry.console import main
+
+sys.argv = ['poetry', 'completions', sys.argv.pop()]
+
+main()



More information about the arch-commits mailing list