* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/typer/
@ 2025-05-03 15:03 Oz N Tiram
0 siblings, 0 replies; 3+ messages in thread
From: Oz N Tiram @ 2025-05-03 15:03 UTC (permalink / raw
To: gentoo-commits
commit: 53e8ad67d3b6ba5c0a5318b8934b709829a35fb2
Author: Oz Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Sat May 3 15:03:26 2025 +0000
Commit: Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
CommitDate: Sat May 3 15:03:26 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=53e8ad67
dev-python/typer: new package, add 0.15.3
Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
dev-python/typer/Manifest | 1 +
dev-python/typer/metadata.xml | 16 ++++++++++++++++
dev-python/typer/typer-0.15.3.ebuild | 27 +++++++++++++++++++++++++++
3 files changed, 44 insertions(+)
diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest
new file mode 100644
index 000000000..230682e9b
--- /dev/null
+++ b/dev-python/typer/Manifest
@@ -0,0 +1 @@
+DIST typer-0.15.3.tar.gz 101641 BLAKE2B c400974553ecaa1aa8ebeacc0042b50b5c7805dadbeca33225d9bedff415b10ce644b384fc699660a34f1d3a5049ceff67e682a5e7fb5910d7b264b49ce0e4ef SHA512 0562b8305bb8d494112919962aa74ca750ecdef2f70c0fd1f956101d2b81c28e9f31b94c8258eaa7f3cf7c3f685e48c86d8469a63c9d0e65eb1b49d79e6220c6
diff --git a/dev-python/typer/metadata.xml b/dev-python/typer/metadata.xml
new file mode 100644
index 000000000..79d13253e
--- /dev/null
+++ b/dev-python/typer/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <name>Oz Tiram</name>
+ <email>oz.tiram@gmail.com</email>
+ </maintainer>
+ <maintainer type="project" proxied="no">
+ <name>Proxy Maintainers</name>
+ <email>proxy-maint@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">tiangolo/typer</remote-id>
+ <remote-id type="pypi">typer</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/typer/typer-0.15.3.ebuild b/dev-python/typer/typer-0.15.3.ebuild
new file mode 100644
index 000000000..0453ec984
--- /dev/null
+++ b/dev-python/typer/typer-0.15.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2025
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_1{1..3} )
+
+DISTUTILS_USE_PEP517="hatchling"
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="Typer, build great CLIs. Easy to code. Based on Python type hints."
+
+HOMEPAGE="https://typer.tiangolo.com/"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+DEPEND="
+ dev-python/shellingham[${PYTHON_USEDEP}]
+ >=dev-python/click-8.0.0[${PYTHON_USEDEP}]
+ >=dev-python/typing-extensions-3.7.4.3[${PYTHON_USEDEP}]
+ dev-python/rich[${PYTHON_USEDEP}]
+"
+
+RDEPEND="${DEPEND}"
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/typer/
@ 2025-05-05 8:39 Oz N Tiram
0 siblings, 0 replies; 3+ messages in thread
From: Oz N Tiram @ 2025-05-05 8:39 UTC (permalink / raw
To: gentoo-commits
commit: 8ab7a1d0df0d51d2dd5fd3f519844ef5269ef31c
Author: Oz Tiram <oz.tiram <AT> gmail <DOT> com>
AuthorDate: Mon May 5 08:37:13 2025 +0000
Commit: Oz N Tiram <oz.tiram <AT> gmail <DOT> com>
CommitDate: Mon May 5 08:39:37 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8ab7a1d0
dev-python/typer: fix build system, add use flags
Signed-off-by: Oz Tiram <oz.tiram <AT> gmail.com>
dev-python/typer/metadata.xml | 4 ++
dev-python/typer/typer-0.15.3.ebuild | 95 ++++++++++++++++++++++++++++++------
2 files changed, 84 insertions(+), 15 deletions(-)
diff --git a/dev-python/typer/metadata.xml b/dev-python/typer/metadata.xml
index 79d13253e..3e3c35e14 100644
--- a/dev-python/typer/metadata.xml
+++ b/dev-python/typer/metadata.xml
@@ -9,6 +9,10 @@
<name>Proxy Maintainers</name>
<email>proxy-maint@gentoo.org</email>
</maintainer>
+ <use>
+ <flag name="rich">Rich text output via <pkg>dev-python/rich</pkg></flag>
+ <flag name="shell-detection">detect current shell with <pkg>dev-python/shellingham</pkg> for completions</flag>
+ </use>
<upstream>
<remote-id type="github">tiangolo/typer</remote-id>
<remote-id type="pypi">typer</remote-id>
diff --git a/dev-python/typer/typer-0.15.3.ebuild b/dev-python/typer/typer-0.15.3.ebuild
index 0453ec984..70c0e3d29 100644
--- a/dev-python/typer/typer-0.15.3.ebuild
+++ b/dev-python/typer/typer-0.15.3.ebuild
@@ -1,27 +1,92 @@
-# Copyright 2025
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-PYTHON_COMPAT=( python3_1{1..3} )
+PYTHON_COMPAT=( python3_{11..13} )
+DISTUTILS_USE_PEP517=pdm-backend
-DISTUTILS_USE_PEP517="hatchling"
+inherit distutils-r1 shell-completion pypi
-inherit distutils-r1 pypi
-
-DESCRIPTION="Typer, build great CLIs. Easy to code. Based on Python type hints."
-
-HOMEPAGE="https://typer.tiangolo.com/"
+DESCRIPTION="Build great CLIs. Easy to code. Based on Python type hints."
+HOMEPAGE="
+ https://typer.tiangolo.com/
+ https://github.com/tiangolo/typer
+ https://pypi.org/project/typer/
+"
+SRC_URI="$(pypi_sdist_url "${PN}" "${PV}")"
LICENSE="MIT"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm64"
-DEPEND="
- dev-python/shellingham[${PYTHON_USEDEP}]
- >=dev-python/click-8.0.0[${PYTHON_USEDEP}]
- >=dev-python/typing-extensions-3.7.4.3[${PYTHON_USEDEP}]
- dev-python/rich[${PYTHON_USEDEP}]
+IUSE="+rich shell-detection test"
+
+BDEPEND="
+ test? (
+ $(python_gen_cond_dep '
+ dev-python/coverage[${PYTHON_USEDEP}]
+ dev-python/shellingham[${PYTHON_USEDEP}]
+ ')
+ )
+"
+RDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/click[${PYTHON_USEDEP}]
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ rich? ( dev-python/rich[${PYTHON_USEDEP}] )
+ shell-detection? ( dev-python/shellingham[${PYTHON_USEDEP}] )
+ ')
"
-RDEPEND="${DEPEND}"
+distutils_enable_tests pytest
+
+src_test() {
+ export TERMINAL_WIDTH=3000
+ export _TYPER_FORCE_DISABLE_TERMINAL=1
+
+ distutils-r1_src_test "${@}"
+}
+
+src_compile() {
+ distutils-r1_src_compile "${@}"
+
+ local shell
+ for shell in bash zsh fish; do
+ typer_gencomp ${shell}
+ done
+}
+
+typer_get_comp() {
+ local COMPLETIONSDIR="${WORKDIR}/comp"
+ local shell="$1"
+
+ case "${shell}" in
+ bash) echo "${COMPLETIONSDIR}/${PN}" ;;
+ zsh) echo "${COMPLETIONSDIR}/_${PN}" ;;
+ fish) echo "${COMPLETIONSDIR}/${PN}.fish" ;;
+ *) die "unknown shell: ${shell}" ;;
+ esac
+}
+
+typer_gencomp() {
+ local COMPLETIONSDIR="${WORKDIR}/comp"
+ mkdir "${COMPLETIONSDIR}" 2> /dev/null
+ local shell="$1"
+
+ compfile="$(typer_get_comp "${@}")"
+
+ _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 python -m typer --show-completion "${shell}" |
+ sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m//g ; s/TYPER_COMPLETE/_TYPER_COMPLETE/' > "${compfile}" ||
+ die "failed to generate ${shell} completion"
+
+ einfo "generated completion script for ${shell}: ${compfile}"
+}
+
+src_install() {
+ distutils-r1_src_install "${@}"
+
+ dobashcomp "$(typer_get_comp bash)"
+ dozshcomp "$(typer_get_comp zsh)"
+ dofishcomp "$(typer_get_comp fish)"
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-python/typer/
@ 2025-06-20 22:47 David Roman
0 siblings, 0 replies; 3+ messages in thread
From: David Roman @ 2025-06-20 22:47 UTC (permalink / raw
To: gentoo-commits
commit: 8d443ccbb74e809335a4f1991b3722bc610a9e6d
Author: David Roman <davidroman96 <AT> gmail <DOT> com>
AuthorDate: Fri Jun 20 22:47:19 2025 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Fri Jun 20 22:47:19 2025 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8d443ccb
dev-python/typer: treeclean
Signed-off-by: David Roman <davidroman96 <AT> gmail.com>
dev-python/typer/Manifest | 1 -
dev-python/typer/metadata.xml | 20 --------
dev-python/typer/typer-0.15.3.ebuild | 92 ------------------------------------
3 files changed, 113 deletions(-)
diff --git a/dev-python/typer/Manifest b/dev-python/typer/Manifest
deleted file mode 100644
index 230682e9b5..0000000000
--- a/dev-python/typer/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST typer-0.15.3.tar.gz 101641 BLAKE2B c400974553ecaa1aa8ebeacc0042b50b5c7805dadbeca33225d9bedff415b10ce644b384fc699660a34f1d3a5049ceff67e682a5e7fb5910d7b264b49ce0e4ef SHA512 0562b8305bb8d494112919962aa74ca750ecdef2f70c0fd1f956101d2b81c28e9f31b94c8258eaa7f3cf7c3f685e48c86d8469a63c9d0e65eb1b49d79e6220c6
diff --git a/dev-python/typer/metadata.xml b/dev-python/typer/metadata.xml
deleted file mode 100644
index 3e3c35e14d..0000000000
--- a/dev-python/typer/metadata.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
- <maintainer type="person" proxied="yes">
- <name>Oz Tiram</name>
- <email>oz.tiram@gmail.com</email>
- </maintainer>
- <maintainer type="project" proxied="no">
- <name>Proxy Maintainers</name>
- <email>proxy-maint@gentoo.org</email>
- </maintainer>
- <use>
- <flag name="rich">Rich text output via <pkg>dev-python/rich</pkg></flag>
- <flag name="shell-detection">detect current shell with <pkg>dev-python/shellingham</pkg> for completions</flag>
- </use>
- <upstream>
- <remote-id type="github">tiangolo/typer</remote-id>
- <remote-id type="pypi">typer</remote-id>
- </upstream>
-</pkgmetadata>
diff --git a/dev-python/typer/typer-0.15.3.ebuild b/dev-python/typer/typer-0.15.3.ebuild
deleted file mode 100644
index 70c0e3d29b..0000000000
--- a/dev-python/typer/typer-0.15.3.ebuild
+++ /dev/null
@@ -1,92 +0,0 @@
-# Copyright 1999-2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-PYTHON_COMPAT=( python3_{11..13} )
-DISTUTILS_USE_PEP517=pdm-backend
-
-inherit distutils-r1 shell-completion pypi
-
-DESCRIPTION="Build great CLIs. Easy to code. Based on Python type hints."
-HOMEPAGE="
- https://typer.tiangolo.com/
- https://github.com/tiangolo/typer
- https://pypi.org/project/typer/
-"
-SRC_URI="$(pypi_sdist_url "${PN}" "${PV}")"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm64"
-
-IUSE="+rich shell-detection test"
-
-BDEPEND="
- test? (
- $(python_gen_cond_dep '
- dev-python/coverage[${PYTHON_USEDEP}]
- dev-python/shellingham[${PYTHON_USEDEP}]
- ')
- )
-"
-RDEPEND="
- $(python_gen_cond_dep '
- dev-python/click[${PYTHON_USEDEP}]
- dev-python/typing-extensions[${PYTHON_USEDEP}]
- rich? ( dev-python/rich[${PYTHON_USEDEP}] )
- shell-detection? ( dev-python/shellingham[${PYTHON_USEDEP}] )
- ')
-"
-
-distutils_enable_tests pytest
-
-src_test() {
- export TERMINAL_WIDTH=3000
- export _TYPER_FORCE_DISABLE_TERMINAL=1
-
- distutils-r1_src_test "${@}"
-}
-
-src_compile() {
- distutils-r1_src_compile "${@}"
-
- local shell
- for shell in bash zsh fish; do
- typer_gencomp ${shell}
- done
-}
-
-typer_get_comp() {
- local COMPLETIONSDIR="${WORKDIR}/comp"
- local shell="$1"
-
- case "${shell}" in
- bash) echo "${COMPLETIONSDIR}/${PN}" ;;
- zsh) echo "${COMPLETIONSDIR}/_${PN}" ;;
- fish) echo "${COMPLETIONSDIR}/${PN}.fish" ;;
- *) die "unknown shell: ${shell}" ;;
- esac
-}
-
-typer_gencomp() {
- local COMPLETIONSDIR="${WORKDIR}/comp"
- mkdir "${COMPLETIONSDIR}" 2> /dev/null
- local shell="$1"
-
- compfile="$(typer_get_comp "${@}")"
-
- _TYPER_COMPLETE_TEST_DISABLE_SHELL_DETECTION=1 python -m typer --show-completion "${shell}" |
- sed 's/python -m //g ; s/_PYTHON _M //g ; s/python_m//g ; s/TYPER_COMPLETE/_TYPER_COMPLETE/' > "${compfile}" ||
- die "failed to generate ${shell} completion"
-
- einfo "generated completion script for ${shell}: ${compfile}"
-}
-
-src_install() {
- distutils-r1_src_install "${@}"
-
- dobashcomp "$(typer_get_comp bash)"
- dozshcomp "$(typer_get_comp zsh)"
- dofishcomp "$(typer_get_comp fish)"
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-06-20 22:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-20 22:47 [gentoo-commits] repo/proj/guru:dev commit in: dev-python/typer/ David Roman
-- strict thread matches above, loose matches on Subject: below --
2025-05-05 8:39 Oz N Tiram
2025-05-03 15:03 Oz N Tiram
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox