[arch-commits] Commit in python-poetry/repos/community-any (4 files)
Sven-Hendrik Haase
svenstaro at archlinux.org
Mon Mar 2 16:41:21 UTC 2020
Date: Monday, March 2, 2020 @ 16:41:21
Author: svenstaro
Revision: 588547
archrelease: copy trunk to community-any
Added:
python-poetry/repos/community-any/PKGBUILD
(from rev 588546, python-poetry/trunk/PKGBUILD)
python-poetry/repos/community-any/poetry-completions-generator
(from rev 588546, 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-03-02 16:40:36 UTC (rev 588546)
+++ PKGBUILD 2020-03-02 16:41:21 UTC (rev 588547)
@@ -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.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
-}
Copied: python-poetry/repos/community-any/PKGBUILD (from rev 588546, python-poetry/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2020-03-02 16:41:21 UTC (rev 588547)
@@ -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.5
+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=('9743e98177552ee6229cc05a35e6a8c7e4506280db66f0f7822ae1e48e651fdc'
+ '970225289188ea8dc49fbec8a2bfe0c891aee80ff56ba6e69bdd8afef8bccab6')
+b2sums=('7a53b6b60ec04e45b40bbf1be4147aa0f05fe34258c8dedc1235a8b2e67bdb13adc5e7fca48899a62c2fa822dc4124ac53aaabd0094244aa44ddff95bdd83173'
+ '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-03-02 16:40:36 UTC (rev 588546)
+++ poetry-completions-generator 2020-03-02 16:41:21 UTC (rev 588547)
@@ -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 588546, python-poetry/trunk/poetry-completions-generator)
===================================================================
--- poetry-completions-generator (rev 0)
+++ poetry-completions-generator 2020-03-02 16:41:21 UTC (rev 588547)
@@ -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