summaryrefslogtreecommitdiff
path: root/dev-db
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-07-10 03:04:33 -0500
committerroot <root@alpha.trunkmasters.com>2026-07-10 03:04:33 -0500
commited2e0f29bf24219e96271574d9c99c971dff3698 (patch)
treeaa4cdcbf1a9384d5495104e034018b2d6fadcaac /dev-db
parenta96a971c845e2cd3ffad3b8f63558c6408897f0a (diff)
downloadbaldeagleos-repo-ed2e0f29bf24219e96271574d9c99c971dff3698.tar.gz
baldeagleos-repo-ed2e0f29bf24219e96271574d9c99c971dff3698.tar.xz
baldeagleos-repo-ed2e0f29bf24219e96271574d9c99c971dff3698.zip
Adding metadata
Diffstat (limited to 'dev-db')
-rw-r--r--dev-db/mycli/Manifest2
-rw-r--r--dev-db/mycli/mycli-2.1.1.ebuild165
2 files changed, 167 insertions, 0 deletions
diff --git a/dev-db/mycli/Manifest b/dev-db/mycli/Manifest
index 6fee611af41b..cbdc5540f34c 100644
--- a/dev-db/mycli/Manifest
+++ b/dev-db/mycli/Manifest
@@ -4,3 +4,5 @@ DIST mycli-1.76.0.tar.gz 480878 BLAKE2B 2027ff017974f70464ccc407db49e071711e6b70
DIST mycli-1.76.0.tar.gz.provenance 9534 BLAKE2B 0eb30a7849d18dabe9967258dd4f59d007274fb6b1de810678ba71a1e0278f7c2b6f21e3feacd591d41c89e6f7cb4bb7cbba8d8c202d10483f682b527fa60d4b SHA512 f74ff4f923a6c6cf16ab5454cea4aa9e3705e3a4c016ecc598e7eecb74d3fc8006d93f8e318327f7b167129c2f41af777134bd22f98b6217284c0f21f0c4fded
DIST mycli-2.0.0.tar.gz 474615 BLAKE2B 6ceb3e72a9d30c319e0f5db1985f6c705a8815110ad149a06020e31a3842bc671ce4f90c406c551c4ee82cc065d49331586ceb6e2d3a4da35ca48cc52eaefb10 SHA512 ce198a98c417927893bfd1b0a1ed8c4bcab0cd47a3c3dcd54f8cbafd6130df02cb3e2d094d3aa5aa94bfe0cd78d6877d935765adfe8154283d870915cb8fb918
DIST mycli-2.0.0.tar.gz.provenance 9616 BLAKE2B 62f55830442844523b59310aff689e285c6acc57c04c37e5b36df849556d020401fc99e299dfe8b1d8b7719a85fb4f5a460d000c2baac7cce1b524684f34e13a SHA512 43250989c5a6fbdd2e185acb51cf5356231741440829fb9b86605a4fc366f406c353ad8a3f89860921a4e25155430abddcdca0ee1870d3935f2f5ac837cb01db
+DIST mycli-2.1.1.tar.gz 481669 BLAKE2B cdc112f2c11f65784a63d3ac2b0b2efef9a11ca4dc845cec89bff360aa8f9067b41edafdfaf3325b7d160f74815b240bf949662f742caf387430f46894135429 SHA512 fccbe2a008ac5c2d1fa1f385ff0551d1db1cc28a1443570e7d2f8e2bff8cebb5f67011448b66867f1a116c4a947398b4b93d924b1d3a64fc061467fd34f262ec
+DIST mycli-2.1.1.tar.gz.provenance 9702 BLAKE2B 9a95977129ecdd9a8ff2e6bacf53dec9cac4605cace5250bfd6254d57a72cd7885e8163877de9a96e049e4621340e9b932020da002af2b5294a73e26a035bbdc SHA512 ddc5b254bb59c35914c1e2c73b639eebed30aa4923b3003286f5434f1762e4007b02ffc2e963ec180fed8d743aaf0beecab8a34e2f379da672a77a08f26489ee
diff --git a/dev-db/mycli/mycli-2.1.1.ebuild b/dev-db/mycli/mycli-2.1.1.ebuild
new file mode 100644
index 000000000000..47d4a8cc0cc3
--- /dev/null
+++ b/dev-db/mycli/mycli-2.1.1.ebuild
@@ -0,0 +1,165 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_SINGLE_IMPL=yes
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+PYPI_VERIFY_REPO=https://github.com/dbcli/mycli
+inherit distutils-r1 edo multiprocessing pypi
+
+DESCRIPTION="CLI for MySQL Database with auto-completion and syntax highlighting"
+HOMEPAGE="
+ https://www.mycli.net/
+ https://github.com/dbcli/mycli/
+ https://pypi.org/project/mycli/
+"
+
+LICENSE="BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+# optional llm unpackaged
+
+# <pymysql-1.2: Upstream pins per version and test failures with
+# test_ssl_mode_off and test_ssl_mode_overrides_ssl
+
+RDEPEND="
+ $(python_gen_cond_dep '
+ >=dev-python/cli-helpers-2.15.0[${PYTHON_USEDEP}]
+ >=dev-python/click-8.3.1[${PYTHON_USEDEP}]
+ >=dev-python/clickdc-0.1.1[${PYTHON_USEDEP}]
+ >=dev-python/configobj-5.0.9[${PYTHON_USEDEP}]
+ >=dev-python/cryptography-46.0.5[${PYTHON_USEDEP}]
+ >=dev-python/keyring-25.7.0[${PYTHON_USEDEP}]
+ >=dev-python/prompt-toolkit-3.0.41[${PYTHON_USEDEP}]
+ <dev-python/prompt-toolkit-4.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pycryptodome-3.23.0[${PYTHON_USEDEP}]
+ >=dev-python/pyfzf-0.3.1[${PYTHON_USEDEP}]
+ >=dev-python/pygments-2.19.2[${PYTHON_USEDEP}]
+ <dev-python/pymysql-1.2[${PYTHON_USEDEP}]
+ >=dev-python/pymysql-1.1.2[${PYTHON_USEDEP}]
+ >=dev-python/pyperclip-1.11.0[${PYTHON_USEDEP}]
+ >=dev-python/rapidfuzz-3.14.3[${PYTHON_USEDEP}]
+ >=dev-python/sqlglot-30.8.0[${PYTHON_USEDEP}]
+ <dev-python/sqlparse-0.6.0[${PYTHON_USEDEP}]
+ >=dev-python/sqlparse-0.3.0[${PYTHON_USEDEP}]
+ >=dev-python/yaspin-3.4.0[${PYTHON_USEDEP}]
+ >=dev-python/wcwidth-0.6.0[${PYTHON_USEDEP}]
+ ')
+"
+BDEPEND="
+ $(python_gen_cond_dep '
+ dev-python/setuptools-scm[${PYTHON_USEDEP}]
+ test? (
+ dev-db/mysql[server]
+ >=dev-python/behave-1.3.3[${PYTHON_USEDEP}]
+ >=dev-python/pexpect-4.9.0[${PYTHON_USEDEP}]
+ )
+ ')
+"
+
+EPYTEST_PLUGINS=()
+distutils_enable_tests pytest
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=${PV}
+
+python_prepare_all() {
+ # no coverage please
+ sed -e 's/import coverage ; coverage.process_startup(); //' \
+ -i test/features/environment.py test/features/steps/wrappers.py || die
+
+ # dont pin dependencies
+ sed -e '/^dependencies = \[/,/^\]$/ s/"\(.*\) ~=/"\1 >=/' \
+ -i pyproject.toml || die
+
+ # convert from pycryptodomex to pycryptodome
+ sed -e 's/pycryptodomex/pycryptodome/' -i pyproject.toml || die
+ sed -e 's/from Cryptodome/from Crypto/' -i mycli/config.py || die
+
+ # network-sandbox messes with these
+ sed -e '/run mycli on localhost without port/i @gentoo_skip' \
+ -e '/run mycli on TCP host without port/i @gentoo_skip' \
+ -e '/run mycli without host and port/i @gentoo_skip' \
+ -i test/features/connection.feature || die
+
+ # Requires an old school vi and the symlink for vi itself messes with this
+ sed -e '/edit sql in file with external editor/i @gentoo_skip' \
+ -i test/features/iocommands.feature || die
+
+ distutils-r1_python_prepare_all
+}
+
+src_test() {
+ # test/utils.py
+ local -x PYTEST_PASSWORD="notsecure"
+ local -x PYTEST_HOST="127.0.0.1"
+ local -x PYTEST_PORT="43307"
+ local -x PYTEST_CHARSET="utf8"
+
+ einfo "Creating mysql test instance ..."
+ mysqld \
+ --no-defaults \
+ --initialize-insecure \
+ --basedir="${EPREFIX}/usr" \
+ --datadir="${T}/mysql" 1>"${T}"/mysql_install.log || die
+
+ einfo "Starting mysql test instance ..."
+ mysqld \
+ --no-defaults \
+ --character-set-server="${PYTEST_CHARSET}" \
+ --bind-address="${PYTEST_HOST}" \
+ --port="${PYTEST_PORT}" \
+ --pid-file="${T}/mysqld.pid" \
+ --socket="${T}/mysqld.sock" \
+ --datadir="${T}/mysql" 1>"${T}/mysqld.log" 2>&1 &
+
+ # wait for it to start
+ local i
+ for (( i = 0; i < 10; i++ )); do
+ [[ -S ${T}/mysqld.sock ]] && break
+ sleep 1
+ done
+ [[ ! -S ${T}/mysqld.sock ]] && die "mysqld failed to start"
+
+ einfo "Configuring test mysql instance ..."
+ mysql \
+ -u root \
+ --socket="${T}/mysqld.sock" \
+ -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '${PYTEST_PASSWORD}'" \
+ || die "Failed to change mysql user password"
+
+ EPYTEST_IGNORE=(
+ # Requires unpackaged llm
+ test/pytests/test_special_llm.py
+ )
+
+ local failures=()
+ if ! nonfatal epytest -o addopts= ; then
+ failures+=( pytest )
+ fi
+
+ if ! nonfatal edo behave \
+ --jobs=$(get_makeopts_jobs) \
+ --summary --verbose \
+ --tags="not @gentoo_skip" \
+ test/features ; then
+ failures+=( behave )
+ fi
+
+ einfo "Stopping mysql test instance ..."
+ pkill -F "${T}"/mysqld.pid || die
+ # wait for it to stop
+ local i
+ for (( i = 0; i < 10; i++ )); do
+ [[ -S ${T}/mysqld.sock ]] || break
+ sleep 1
+ done
+
+ rm -rf "${T}"/mysql || die
+
+ if [[ ${#failures[@]} -gt 0 ]]; then
+ die "Tests failed with ${EPYTHON}: ${failures}"
+ fi
+}