[arch-commits] Commit in python-hatch/repos/community-any (6 files)
Santiago Torres-Arias
sangy at gemini.archlinux.org
Mon Jul 11 23:30:13 UTC 2022
Date: Monday, July 11, 2022 @ 23:30:12
Author: sangy
Revision: 1249813
archrelease: copy trunk to community-any
Added:
python-hatch/repos/community-any/PKGBUILD
(from rev 1249812, python-hatch/trunk/PKGBUILD)
python-hatch/repos/community-any/hatch_complete.sh
(from rev 1249812, python-hatch/trunk/hatch_complete.sh)
python-hatch/repos/community-any/hatch_complete.zsh
(from rev 1249812, python-hatch/trunk/hatch_complete.zsh)
Deleted:
python-hatch/repos/community-any/PKGBUILD
python-hatch/repos/community-any/hatch_complete.sh
python-hatch/repos/community-any/hatch_complete.zsh
--------------------+
PKGBUILD | 107 +++++++++++++++++++++++++--------------------------
hatch_complete.sh | 42 ++++++++++----------
hatch_complete.zsh | 56 +++++++++++++-------------
3 files changed, 102 insertions(+), 103 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2022-07-11 23:29:43 UTC (rev 1249812)
+++ PKGBUILD 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -1,54 +0,0 @@
-# Maintainer: Santiago Torres-Arias <santiago @ usualplace>
-# Contributor: Kaizhao Zhang <zhangkaizhao at gmail.com>
-
-pkgname=python-hatch
-pkgver=0.23.1
-pkgrel=1
-pkgdesc="A modern project, package, and virtual env manager"
-arch=('any')
-url="https://github.com/ofek/hatch"
-license=('MIT' 'Apache')
-depends=(
- 'python' 'python-appdirs' 'python-atomicwrites' 'python-click'
- 'python-colorama' 'python-coverage' 'python-pexpect' 'python-pip'
- 'python-pytest' 'python-semver' 'python-setuptools' 'python-sortedcontainers'
- 'python-toml' 'twine' 'python-userpath' 'python-virtualenv' 'python-wheel'
-)
-
-
-_name=${pkgname/python-/}
-source=(
- "https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
- 'hatch_complete.sh'
- 'hatch_complete.zsh'
-)
-sha256sums=('97ee540e74450c2ac1eabc678b258db7a1c2830a40409302a6a31ec3183ab559'
- 'b87254c621719188907a2062b0aa3c4eb078088872d1de7d53d6a6d61a679c44'
- 'a43679d72ebb7b5c029192519597eff835586d0b6ed9d1e3dfc93270b8720e71')
-
-build() {
- cd "${srcdir}/${_name}-${pkgver}"
- python setup.py build
-}
-
-package() {
- cd "${srcdir}/${_name}-${pkgver}"
- python setup.py install --root="${pkgdir}/" --optimize=1 --skip-build
- install -Dm644 README.rst "${pkgdir}/usr/share/doc/${pkgname}/README.rst"
- install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-MIT"
- install -Dm644 LICENSE-APACHE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE-APACHE"
-
- cd "${srcdir}"
-
- # Tab completions.
- # via https://github.com/ofek/hatch/issues/57 and
- # https://click.palletsprojects.com/en/7.x/bashcomplete/
-
- # Tab completion for Bash.
- # Generated by `_HATCH_COMPLETE=source hatch > hatch_complete.sh`
- install -Dm644 hatch_complete.sh "${pkgdir}/usr/share/bash-completion/completions/${_name}"
-
- # Tab completion for Zsh.
- # Generated by `_HATCH_COMPLETE=source_zsh hatch > hatch_complete.zsh`
- install -Dm644 hatch_complete.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_name}"
-}
Copied: python-hatch/repos/community-any/PKGBUILD (from rev 1249812, python-hatch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -0,0 +1,53 @@
+# Maintainer: Santiago Torres-Arias <santiago @ usualplace>
+# Contributor: Kaizhao Zhang <zhangkaizhao at gmail.com>
+
+pkgname=python-hatch
+pkgver=1.3.1
+pkgrel=1
+pkgdesc="A modern project, package, and virtual env manager"
+arch=('any')
+url="https://github.com/ofek/hatch"
+license=('MIT')
+depends=(
+ 'python' 'python-appdirs' 'python-atomicwrites' 'python-click'
+ 'python-colorama' 'python-coverage' 'python-pexpect' 'python-pip'
+ 'python-pytest' 'python-semver' 'python-setuptools' 'python-sortedcontainers'
+ 'python-toml' 'twine' 'python-userpath' 'python-virtualenv' 'python-wheel'
+ 'python-build'
+)
+
+
+_name=${pkgname/python-/}
+source=(
+ "https://files.pythonhosted.org/packages/source/${_name:0:1}/${_name}/${_name}-${pkgver}.tar.gz"
+ 'hatch_complete.sh'
+ 'hatch_complete.zsh'
+)
+sha256sums=('fb1bdad4a22d3443137036b246898c5d3c7552ff4ba399b4605548cef0a22496'
+ 'b87254c621719188907a2062b0aa3c4eb078088872d1de7d53d6a6d61a679c44'
+ 'a43679d72ebb7b5c029192519597eff835586d0b6ed9d1e3dfc93270b8720e71')
+
+build() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ python -m build
+}
+
+package() {
+ cd "${srcdir}/${_name}-${pkgver}"
+ PIP_CONFIG_FILE=/dev/null pip install --isolated --root="${pkgdir}" --ignore-installed --no-deps dist/*.whl
+ install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+
+ cd "${srcdir}"
+
+ # Tab completions.
+ # via https://github.com/ofek/hatch/issues/57 and
+ # https://click.palletsprojects.com/en/7.x/bashcomplete/
+
+ # Tab completion for Bash.
+ # Generated by `_HATCH_COMPLETE=source hatch > hatch_complete.sh`
+ install -Dm644 hatch_complete.sh "${pkgdir}/usr/share/bash-completion/completions/${_name}"
+
+ # Tab completion for Zsh.
+ # Generated by `_HATCH_COMPLETE=source_zsh hatch > hatch_complete.zsh`
+ install -Dm644 hatch_complete.zsh "${pkgdir}/usr/share/zsh/site-functions/_${_name}"
+}
Deleted: hatch_complete.sh
===================================================================
--- hatch_complete.sh 2022-07-11 23:29:43 UTC (rev 1249812)
+++ hatch_complete.sh 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -1,21 +0,0 @@
-_hatch_completion() {
- local IFS=$'
-'
- COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
- COMP_CWORD=$COMP_CWORD \
- _HATCH_COMPLETE=complete $1 ) )
- return 0
-}
-
-_hatch_completionetup() {
- local COMPLETION_OPTIONS=""
- local BASH_VERSION_ARR=(${BASH_VERSION//./ })
- # Only BASH version 4.4 and later have the nosort option.
- if [ ${BASH_VERSION_ARR[0]} -gt 4 ] || ([ ${BASH_VERSION_ARR[0]} -eq 4 ] && [ ${BASH_VERSION_ARR[1]} -ge 4 ]); then
- COMPLETION_OPTIONS="-o nosort"
- fi
-
- complete $COMPLETION_OPTIONS -F _hatch_completion hatch
-}
-
-_hatch_completionetup;
Copied: python-hatch/repos/community-any/hatch_complete.sh (from rev 1249812, python-hatch/trunk/hatch_complete.sh)
===================================================================
--- hatch_complete.sh (rev 0)
+++ hatch_complete.sh 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -0,0 +1,21 @@
+_hatch_completion() {
+ local IFS=$'
+'
+ COMPREPLY=( $( env COMP_WORDS="${COMP_WORDS[*]}" \
+ COMP_CWORD=$COMP_CWORD \
+ _HATCH_COMPLETE=complete $1 ) )
+ return 0
+}
+
+_hatch_completionetup() {
+ local COMPLETION_OPTIONS=""
+ local BASH_VERSION_ARR=(${BASH_VERSION//./ })
+ # Only BASH version 4.4 and later have the nosort option.
+ if [ ${BASH_VERSION_ARR[0]} -gt 4 ] || ([ ${BASH_VERSION_ARR[0]} -eq 4 ] && [ ${BASH_VERSION_ARR[1]} -ge 4 ]); then
+ COMPLETION_OPTIONS="-o nosort"
+ fi
+
+ complete $COMPLETION_OPTIONS -F _hatch_completion hatch
+}
+
+_hatch_completionetup;
Deleted: hatch_complete.zsh
===================================================================
--- hatch_complete.zsh 2022-07-11 23:29:43 UTC (rev 1249812)
+++ hatch_complete.zsh 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -1,28 +0,0 @@
-_hatch_completion() {
- local -a completions
- local -a completions_with_descriptions
- local -a response
- response=("${(@f)$( env COMP_WORDS="${words[*]}" \
- COMP_CWORD=$((CURRENT-1)) \
- _HATCH_COMPLETE="complete_zsh" \
- hatch )}")
-
- for key descr in ${(kv)response}; do
- if [[ "$descr" == "_" ]]; then
- completions+=("$key")
- else
- completions_with_descriptions+=("$key":"$descr")
- fi
- done
-
- if [ -n "$completions_with_descriptions" ]; then
- _describe -V unsorted completions_with_descriptions -U -Q
- fi
-
- if [ -n "$completions" ]; then
- compadd -U -V unsorted -Q -a completions
- fi
- compstate[insert]="automenu"
-}
-
-compdef _hatch_completion hatch;
Copied: python-hatch/repos/community-any/hatch_complete.zsh (from rev 1249812, python-hatch/trunk/hatch_complete.zsh)
===================================================================
--- hatch_complete.zsh (rev 0)
+++ hatch_complete.zsh 2022-07-11 23:30:12 UTC (rev 1249813)
@@ -0,0 +1,28 @@
+_hatch_completion() {
+ local -a completions
+ local -a completions_with_descriptions
+ local -a response
+ response=("${(@f)$( env COMP_WORDS="${words[*]}" \
+ COMP_CWORD=$((CURRENT-1)) \
+ _HATCH_COMPLETE="complete_zsh" \
+ hatch )}")
+
+ for key descr in ${(kv)response}; do
+ if [[ "$descr" == "_" ]]; then
+ completions+=("$key")
+ else
+ completions_with_descriptions+=("$key":"$descr")
+ fi
+ done
+
+ if [ -n "$completions_with_descriptions" ]; then
+ _describe -V unsorted completions_with_descriptions -U -Q
+ fi
+
+ if [ -n "$completions" ]; then
+ compadd -U -V unsorted -Q -a completions
+ fi
+ compstate[insert]="automenu"
+}
+
+compdef _hatch_completion hatch;
More information about the arch-commits
mailing list