public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/mycli] f44: Update to 2.30.2
Date: Sun, 15 Nov 2026 09:28:38 GMT [thread overview]
Message-ID: <179473491892.1.5867767683040990144.rpms-mycli-5ae18c511fe0@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/mycli
Branch : f44
Commit : 5ae18c511fe048704a63e3909e40b0283f1192b0
Author : Terje Røsten <terjeros@gmail.com>
Date : 2026-11-03T19:40:28+01:00
Stats : +131/-552 in 12 file(s)
URL : https://src.fedoraproject.org/rpms/mycli/c/5ae18c511fe048704a63e3909e40b0283f1192b0?branch=f44
Log:
Update to 2.30.2
---
diff --git a/.gitignore b/.gitignore
index 17de6d7..2b7da73 100644
--- a/.gitignore
+++ b/.gitignore
@@ -41,3 +41,5 @@
/mycli-1.51.1.tar.gz
/mycli-1.62.0.tar.gz
/mycli-1.66.0.tar.gz
+/mycli-2.29.4.tar.gz
+/mycli-2.30.2.tar.gz
diff --git a/0001-Revert-to-older-toml-format.patch b/0001-Revert-to-older-toml-format.patch
deleted file mode 100644
index cb86025..0000000
--- a/0001-Revert-to-older-toml-format.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From d1bbbf9ba05e5babc1a977a1374ea51e577717b5 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Mon, 17 Nov 2025 11:23:37 +0100
-Subject: [PATCH 1/7] Revert to older toml format
-
----
- pyproject.toml | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index 5470ea9..bc7e905 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -4,7 +4,7 @@ dynamic = ["version"]
- description = "CLI for MySQL Database. With auto-completion and syntax highlighting."
- readme = "README.md"
- requires-python = ">=3.10"
--license = "BSD-3-Clause"
-+license = { text = "BSD" }
- authors = [{ name = "Mycli Core Team" }]
-
- dependencies = [
---
-2.53.0
-
diff --git a/0002-Fix-tox-config-and-some-test-fixes.patch b/0002-Fix-tox-config-and-some-test-fixes.patch
deleted file mode 100644
index 9b73242..0000000
--- a/0002-Fix-tox-config-and-some-test-fixes.patch
+++ /dev/null
@@ -1,86 +0,0 @@
-From 74a2cd0aa5466dd2ee0fa2412ba4a7355ed35564 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Thu, 29 Jan 2026 18:40:04 +0100
-Subject: [PATCH 2/7] Fix tox config and some test fixes
-
----
- test/test_main.py | 12 ++++++------
- tox.ini | 4 +---
- 2 files changed, 7 insertions(+), 9 deletions(-)
-
-diff --git a/test/test_main.py b/test/test_main.py
-index f47e5be..cb56632 100644
---- a/test/test_main.py
-+++ b/test/test_main.py
-@@ -708,7 +708,7 @@ def test_reserved_space_is_integer(monkeypatch):
- mycli = MyCli()
- assert isinstance(mycli.get_reserved_space(), int)
-
--
-+@dbtest
- def test_list_dsn(monkeypatch):
- monkeypatch.setattr(MyCli, "system_config_files", [])
- monkeypatch.setattr(MyCli, "pwd_config_file", os.devnull)
-@@ -749,7 +749,7 @@ def test_unprettify_statement():
- unpretty_statement = m.handle_unprettify_binding(statement)
- assert unpretty_statement == "SELECT 1;"
-
--
-+@dbtest
- def test_list_ssh_config():
- runner = CliRunner()
- # keep Windows from locking the file with delete=False
-@@ -777,7 +777,7 @@ def test_list_ssh_config():
- except Exception as e:
- print(f"An error occurred while attempting to delete the file: {e}")
-
--
-+@dbtest
- def test_dsn(monkeypatch):
- # Setup classes to mock mycli.main.MyCli
- class Formatter:
-@@ -1038,7 +1038,7 @@ def test_dsn(monkeypatch):
- assert MockMyCli.connect_args['database'] == 'dsn_database'
- assert MockMyCli.connect_args['character_set'] == 'utf8mb3'
-
--
-+@dbtest
- def test_password_flag_uses_sentinel(monkeypatch):
- class Formatter:
- format_name = None
-@@ -1232,7 +1232,7 @@ def test_mysql_user_envvar_overrides_dsn_resolution(monkeypatch):
- and MockMyCli.connect_args['database'] == 'dsn_database'
- )
-
--
-+@dbtest
- def test_ssh_config(monkeypatch):
- # Setup classes to mock mycli.main.MyCli
- class Formatter:
-@@ -1508,7 +1508,7 @@ def test_execute_arg_supersedes_batch_file(monkeypatch):
- finally:
- os.remove(batch_file.name)
-
--
-+@dbtest
- def test_null_string_config(monkeypatch):
- monkeypatch.setattr(MyCli, 'system_config_files', [])
- monkeypatch.setattr(MyCli, 'pwd_config_file', os.devnull)
-diff --git a/tox.ini b/tox.ini
-index e1dee79..e85aee0 100644
---- a/tox.ini
-+++ b/tox.ini
-@@ -10,9 +10,7 @@ passenv = PYTEST_HOST
- PYTEST_PORT
- PYTEST_CHARSET
- commands = uv pip install -e .[dev,ssh,llm]
-- coverage run -m pytest -v test
-- coverage report -m
-- behave test/features
-+ coverage run -m pytest -v test {posargs}
-
- [testenv:style]
- skip_install = true
---
-2.53.0
-
diff --git a/0003-Disable-more-test-which-requires-db-server.patch b/0003-Disable-more-test-which-requires-db-server.patch
deleted file mode 100644
index b27b6c1..0000000
--- a/0003-Disable-more-test-which-requires-db-server.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 7ade66abd89b9de3d5cad9055e7b0461a7b12760 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Wed, 4 Feb 2026 18:11:15 +0100
-Subject: [PATCH 3/7] Disable more test which requires db server
-
----
- test/test_main.py | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/test/test_main.py b/test/test_main.py
-index cb56632..df5fb28 100644
---- a/test/test_main.py
-+++ b/test/test_main.py
-@@ -142,12 +142,12 @@ def test_select_from_empty_table(executor):
- +----+""")
- assert expected in result.output
-
--
-+@dbtest
- def test_is_valid_connection_scheme_valid(executor, capsys):
- is_valid, scheme = is_valid_connection_scheme(f"mysql://test@{DEFAULT_HOST}:{DEFAULT_PORT}/dev")
- assert is_valid
-
--
-+@dbtest
- def test_is_valid_connection_scheme_invalid(executor, capsys):
- is_valid, scheme = is_valid_connection_scheme(f"nope://test@{DEFAULT_HOST}:{DEFAULT_PORT}/dev")
- assert not is_valid
---
-2.53.0
-
diff --git a/0004-Revert-to-sqlglot-5.1.3.patch b/0004-Revert-to-sqlglot-5.1.3.patch
deleted file mode 100644
index ba0a08e..0000000
--- a/0004-Revert-to-sqlglot-5.1.3.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From d225d702d3a7f097bd9a27c98308941fed28d2a4 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Mon, 17 Nov 2025 11:21:16 +0100
-Subject: [PATCH 4/7] Revert to sqlglot 5.1.3
-
----
- mycli/packages/hybrid_redirection.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/mycli/packages/hybrid_redirection.py b/mycli/packages/hybrid_redirection.py
-index 1937daf..4cc29e5 100644
---- a/mycli/packages/hybrid_redirection.py
-+++ b/mycli/packages/hybrid_redirection.py
-@@ -2,6 +2,7 @@ import functools
- import logging
-
- import sqlglot
-+import sqlglot.tokens
-
- from mycli.compat import WIN
- from mycli.packages.special.delimitercommand import DelimiterCommand
-@@ -130,7 +131,7 @@ def get_redirect_components(command: str) -> tuple[str | None, str | None, str |
- """Get the parts of a hybrid shell-style redirect command."""
-
- try:
-- tokens = sqlglot.tokenize(command)
-+ tokens = sqlglot.tokens.Tokenizer().tokenize(command)
- except sqlglot.errors.TokenError:
- return None, None, None, None
-
---
-2.53.0
-
diff --git a/0005-Relax-various-reqs.patch b/0005-Relax-various-reqs.patch
deleted file mode 100644
index f0a8628..0000000
--- a/0005-Relax-various-reqs.patch
+++ /dev/null
@@ -1,71 +0,0 @@
-From aafe27abfa08ed9587165cde03eb29ad71f40bc1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Mon, 17 Nov 2025 11:26:05 +0100
-Subject: [PATCH 5/7] Relax various reqs
-
----
- pyproject.toml | 38 +++++++++++++++++++-------------------
- 1 file changed, 19 insertions(+), 19 deletions(-)
-
-diff --git a/pyproject.toml b/pyproject.toml
-index bc7e905..0978c70 100644
---- a/pyproject.toml
-+++ b/pyproject.toml
-@@ -8,21 +8,21 @@ license = { text = "BSD" }
- authors = [{ name = "Mycli Core Team" }]
-
- dependencies = [
-- "click ~= 8.3.1",
-- "cryptography ~= 46.0.5",
-- "Pygments ~= 2.19.2",
-+ "click >= 8.1.7",
-+ "cryptography >= 1.0.0",
-+ "Pygments >= 2.18.0",
- "prompt_toolkit>=3.0.6,<4.0.0",
-- "PyMySQL ~= 1.1.2",
-- "sqlparse>=0.3.0,<0.6.0",
-- "sqlglot[c] ~= 30.0.0",
-- "configobj ~= 5.0.9",
-- "cli_helpers[styles] ~= 2.12.0",
-- "wcwidth ~= 0.6.0",
-- "pyperclip ~= 1.11.0",
-- "pycryptodomex ~= 3.23.0",
-- "pyfzf ~= 0.3.1",
-- "rapidfuzz ~= 3.14.3",
-- "keyring ~= 25.7.0",
-+ "PyMySQL >= 0.9.2",
-+ "sqlparse >=0.3.0,<0.6.0",
-+ "sqlglot >= 5.1.3",
-+ "configobj >= 5.0.5",
-+ "cli_helpers[styles] >= 2.7.0",
-+ "wcwidth >= 0.2.13",
-+ "pyperclip >= 1.8.2",
-+ "pycryptodomex",
-+ "pyfzf >= 0.3.1",
-+ "rapidfuzz >= 3.11.0",
-+ "keyring >= 25.6.0",
- ]
-
- [project.urls]
-@@ -41,13 +41,13 @@ build-backend = "setuptools.build_meta"
-
- [project.optional-dependencies]
- ssh = [
-- "paramiko ~= 3.5.1",
-- "sshtunnel ~= 0.4.0",
-+ "paramiko >= 3.5.1",
-+ "sshtunnel >= 0.4.0",
- ]
- llm = [
-- "llm ~= 0.28.0",
-- "setuptools == 82.*", # Required by llm commands to install models
-- "pip == 26.*",
-+ "llm >= 0.28.0",
-+ "setuptools >= 78.1.1", # Required by llm commands to install models
-+ "pip >= 25.1.1",
- ]
- all = [
- "mycli[ssh]",
---
-2.53.0
-
diff --git a/0006-Work-with-older-cli-helpers.patch b/0006-Work-with-older-cli-helpers.patch
deleted file mode 100644
index f2f6d64..0000000
--- a/0006-Work-with-older-cli-helpers.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-From af0635855bdc4878ea125eafe49b39d554e8f4b4 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Tue, 10 Mar 2026 18:19:17 +0100
-Subject: [PATCH 6/7] Work with older cli helpers
-
----
- mycli/main.py | 7 ++++++-
- 1 file changed, 6 insertions(+), 1 deletion(-)
-
-diff --git a/mycli/main.py b/mycli/main.py
-index d5f2b40..793d8b7 100755
---- a/mycli/main.py
-+++ b/mycli/main.py
-@@ -1835,7 +1835,12 @@ class MyCli:
-
- if use_formatter.format_name not in sql_format.supported_formats and binary_display != 'utf8':
- # will run before preprocessors defined as part of the format in cli_helpers
-- output_kwargs["preprocessors"] = (preprocessors.convert_to_undecoded_string,)
-+ # cli_helpers < 2.9.0 don't have convert_to_undecoded_string.
-+ # Provide compatibility with both old and new versions.
-+ if hasattr(preprocessors, "convert_to_undecoded_string"):
-+ convert_to_undecoded_string = preprocessors.convert_to_undecoded_string
-+ else:
-+ convert_to_undecoded_string = preprocessors.bytes_to_string
-
- if result.preamble:
- output = itertools.chain(output, [result.preamble])
---
-2.53.0
-
diff --git a/0007-Skip-test-failures-due-to-older-click.patch b/0007-Skip-test-failures-due-to-older-click.patch
deleted file mode 100644
index ec41bc9..0000000
--- a/0007-Skip-test-failures-due-to-older-click.patch
+++ /dev/null
@@ -1,61 +0,0 @@
-From 91a57231ccddce1ed8ec7eb8116b45e66cb774cc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Mon, 23 Mar 2026 20:16:44 +0100
-Subject: [PATCH 7/7] Skip test failures due to older click
-
----
- test/test_main.py | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/test/test_main.py b/test/test_main.py
-index df5fb28..28bc6a8 100644
---- a/test/test_main.py
-+++ b/test/test_main.py
-@@ -1096,7 +1096,7 @@ def test_password_flag_uses_sentinel(monkeypatch):
- assert result.exit_code == 0, result.output + ' ' + str(result.exception)
- assert MockMyCli.connect_args['passwd'] == EMPTY_PASSWORD_FLAG_SENTINEL
-
--
-+@dbtest
- def test_username_option_and_mysql_user_envvar(monkeypatch):
- class Formatter:
- format_name = None
-@@ -1445,7 +1445,7 @@ def _noninteractive_mock_mycli(monkeypatch):
- monkeypatch.setattr(mycli.main, 'MyCli', MockMyCli)
- return mycli.main, MockMyCli
-
--
-+@dbtest
- def test_batch_file(monkeypatch):
- mycli_main, MockMyCli = _noninteractive_mock_mycli(monkeypatch)
- runner = CliRunner()
-@@ -1464,7 +1464,7 @@ def test_batch_file(monkeypatch):
- finally:
- os.remove(batch_file.name)
-
--
-+@dbtest
- def test_execute_arg_warns_about_ignoring_stdin(monkeypatch):
- mycli_main, MockMyCli = _noninteractive_mock_mycli(monkeypatch)
- runner = CliRunner()
-@@ -1477,7 +1477,7 @@ def test_execute_arg_warns_about_ignoring_stdin(monkeypatch):
- assert result.exit_code == 0
- assert 'Ignoring STDIN' in result.output
-
--
-+@dbtest
- def test_batch_file_open_error(monkeypatch):
- mycli_main, MockMyCli = _noninteractive_mock_mycli(monkeypatch)
- runner = CliRunner()
-@@ -1487,7 +1487,7 @@ def test_batch_file_open_error(monkeypatch):
- assert result.exit_code != 0
- assert 'Failed to open --batch file' in result.output
-
--
-+@dbtest
- def test_execute_arg_supersedes_batch_file(monkeypatch):
- mycli_main, MockMyCli = _noninteractive_mock_mycli(monkeypatch)
- runner = CliRunner()
---
-2.53.0
-
diff --git a/0008-Adapt-test-suite-to-pygments-2.20.patch b/0008-Adapt-test-suite-to-pygments-2.20.patch
deleted file mode 100644
index ebd3c60..0000000
--- a/0008-Adapt-test-suite-to-pygments-2.20.patch
+++ /dev/null
@@ -1,155 +0,0 @@
-From 0db5eb63b7d94ae357cad06f0ed8f91e2d6f6059 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Terje=20R=C3=B8sten?= <terjeros@gmail.com>
-Date: Thu, 14 May 2026 15:30:29 +0200
-Subject: [PATCH 8/8] Adapt test suite to pygments 2.20
-
----
- test/test_naive_completion.py | 8 ++++-
- ...est_smart_completion_public_schema_only.py | 36 +++++++++++++++++--
- test/utils.py | 7 +++-
- 3 files changed, 46 insertions(+), 5 deletions(-)
-
-diff --git a/test/test_naive_completion.py b/test/test_naive_completion.py
-index fd4be76..1414f6a 100644
---- a/test/test_naive_completion.py
-+++ b/test/test_naive_completion.py
-@@ -4,6 +4,7 @@ from prompt_toolkit.completion import Completion
- from prompt_toolkit.document import Document
- import pytest
-
-+from test.utils import pygments_at_least
-
- @pytest.fixture
- def completer():
-@@ -37,7 +38,7 @@ def test_function_name_completion(completer, complete_event):
- text = "SELECT MA"
- position = len("SELECT MA")
- result = list(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
-- assert sorted(x.text for x in result) == [
-+ expected = [
- 'MAKEDATE',
- 'MAKETIME',
- 'MAKE_SET',
-@@ -80,6 +81,11 @@ def test_function_name_completion(completer, complete_event):
- 'MAX_USER_CONNECTIONS',
- ]
-
-+ if pygments_at_least("2.20"):
-+ expected.extend([
-+ 'MANUAL',
-+ ])
-+ assert sorted(x.text for x in result) == sorted(expected)
-
- def test_column_name_completion(completer, complete_event):
- text = "SELECT FROM users"
-diff --git a/test/test_smart_completion_public_schema_only.py b/test/test_smart_completion_public_schema_only.py
-index bf4e729..f46fb9b 100644
---- a/test/test_smart_completion_public_schema_only.py
-+++ b/test/test_smart_completion_public_schema_only.py
-@@ -7,6 +7,8 @@ from prompt_toolkit.completion import Completion
- from prompt_toolkit.document import Document
- import pytest
-
-+from test.utils import pygments_at_least
-+
- import mycli.packages.special.main as special
-
- metadata = {
-@@ -815,12 +817,11 @@ def test_backticked_column_completion_component(completer, complete_event):
- Completion(text='`uncommitted`', start_position=-4),
- ]
-
--
- def test_backticked_column_completion_two_character(completer, complete_event):
- text = 'select `f'
- position = len(text)
- result = list(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
-- assert result == [
-+ expected = [
- # todo it would be nicer if the column name "first_name" sorted to the top
- Completion(text='`for`', start_position=-2),
- Completion(text='`from`', start_position=-2),
-@@ -884,12 +885,27 @@ def test_backticked_column_completion_two_character(completer, complete_event):
- Completion(text='`references`', start_position=-2),
- ]
-
-+ if pygments_at_least("2.20"):
-+ expected.extend([
-+ Completion(text='`file_format`', start_position=-2),
-+ Completion(text='`file_name`', start_position=-2),
-+ Completion(text='`file_pattern`', start_position=-2),
-+ Completion(text='`file_prefix`', start_position=-2),
-+ Completion(text='`files`', start_position=-2),
-+ Completion(text='`from_vector`', start_position=-2),
-+ ])
-+
-+ assert sorted(
-+ (x.text, x.start_position) for x in result
-+ ) == sorted(
-+ (x.text, x.start_position) for x in expected
-+ )
-
- def test_backticked_column_completion_three_character(completer, complete_event):
- text = 'select `fi'
- position = len(text)
- result = list(completer.get_completions(Document(text=text, cursor_position=position), complete_event))
-- assert result == [
-+ expected = [
- # todo it would be nicer if the column name "first_name" sorted to the top
- Completion(text='`file`', start_position=-3),
- Completion(text='`field`', start_position=-3),
-@@ -914,6 +930,20 @@ def test_backticked_column_completion_three_character(completer, complete_event)
- Completion(text='`foreign key`', start_position=-3),
- ]
-
-+ if pygments_at_least("2.20"):
-+ expected.extend([
-+ Completion(text='`file_format`', start_position=-3),
-+ Completion(text='`file_name`', start_position=-3),
-+ Completion(text='`file_pattern`', start_position=-3),
-+ Completion(text='`file_prefix`', start_position=-3),
-+ Completion(text='`files`', start_position=-3),
-+ ])
-+
-+ assert sorted(
-+ (x.text, x.start_position) for x in result
-+ ) == sorted(
-+ (x.text, x.start_position) for x in expected
-+ )
-
- def test_backticked_column_completion_four_character(completer, complete_event):
- text = 'select `fir'
-diff --git a/test/utils.py b/test/utils.py
-index 7d278f4..c6e95ad 100644
---- a/test/utils.py
-+++ b/test/utils.py
-@@ -9,6 +9,9 @@ import time
- import pymysql
- import pytest
-
-+from packaging.version import Version
-+import pygments
-+
- from mycli.constants import (
- DEFAULT_CHARSET,
- DEFAULT_HOST,
-@@ -29,13 +32,15 @@ SSH_HOST = os.getenv("PYTEST_SSH_HOST", None)
- SSH_PORT = int(os.getenv("PYTEST_SSH_PORT", "22"))
- TEMPFILE_PREFIX = 'mycli_test_suite_'
-
-+PYGMENTS_VERSION = Version(pygments.__version__)
-+def pygments_at_least(version: str) -> bool:
-+ return PYGMENTS_VERSION >= Version(version)
-
- def db_connection(dbname=None):
- conn = pymysql.connect(user=USER, host=HOST, port=PORT, database=dbname, password=PASSWORD, charset=CHARACTER_SET, local_infile=False)
- conn.autocommit = True
- return conn
-
--
- try:
- db_connection()
- CAN_CONNECT_TO_DB = True
---
-2.54.0
-
diff --git a/mycli-2.29.4-no-version-dep.patch b/mycli-2.29.4-no-version-dep.patch
new file mode 100644
index 0000000..ea459cc
--- /dev/null
+++ b/mycli-2.29.4-no-version-dep.patch
@@ -0,0 +1,112 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 0dd8f19..f458f37 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -25,25 +25,24 @@ classifiers = [
+ ]
+
+ dependencies = [
+- "click ~= 8.5.0",
+- "clickdc ~= 0.1.1",
+- "cryptography ~= 50.0.2",
+- "Pygments ~= 2.21.0",
+- "prompt_toolkit ~= 3.0.53",
+- "PyMySQL ~= 1.2.3",
+- "sqlparse ~= 0.6.0",
+- "sqlglot ~= 30.23.0",
+- "sqlglotc ~= 30.23.0",
+- "configobj ~= 5.0.9",
+- "cli_helpers[styles] ~= 2.15.3",
+- "wcwidth ~= 0.9.2",
+- "pyperclip ~= 1.11.0",
+- "pycryptodomex ~= 3.24.1",
+- "rapidfuzz ~= 3.14.6",
+- "keyring ~= 25.7.0",
+- "jinja2 ~= 3.1.6",
+- "markupsafe ~= 3.0.4", # removeme: transitive dependency forced for binary 3.15 wheel
+- "yaspin ~= 3.5.1",
++ "click",
++ "clickdc",
++ "cryptography",
++ "Pygments",
++ "prompt_toolkit",
++ "PyMySQL",
++ "sqlparse",
++ "sqlglot",
++ "configobj",
++ "cli_helpers[styles]",
++ "wcwidth",
++ "pyperclip",
++ "pycryptodomex",
++ "rapidfuzz",
++ "keyring",
++ "jinja2",
++ "markupsafe", # removeme: transitive dependency forced for binary 3.15 wheel
++ "yaspin",
+ ]
+
+ [project.urls]
+@@ -54,7 +53,7 @@ Issues = 'https://github.com/dbcli/mycli/issues'
+ Changelog = 'https://github.com/dbcli/mycli/blob/main/changelog.md'
+
+ [build-system]
+-requires = ["setuptools>=64.0", "setuptools-scm>=8"]
++requires = ["setuptools", "setuptools-scm"]
+ build-backend = "setuptools.build_meta"
+
+ [tool.setuptools_scm]
+@@ -62,29 +61,29 @@ build-backend = "setuptools.build_meta"
+
+ [project.optional-dependencies]
+ llm = [
+- "llm ~= 0.36",
+- "setuptools == 84.*", # Required by llm commands to install models
+- "pip ~= 26.2.2",
++ "llm",
++ "setuptools", # Required by llm commands to install models
++ "pip",
+ ]
+ dataframe = [
+- "polars ~= 2.0.0",
+- "altair ~= 6.3.0",
+- "vl-convert-python ~= 1.9.0",
++ "polars",
++ "altair",
++ "vl-convert-python",
+ ]
+ all = [
+ "mycli[llm,dataframe]",
+ ]
+ dev = [
+- "behave ~= 1.3.3",
+- "coverage ~= 7.16.2",
+- "mypy ~= 2.4.0",
+- "pexpect ~= 4.9.0",
+- "pytest ~= 9.1.1",
+- "pytest-cov ~= 7.1.0",
+- "pytest-random-order ~= 1.2.0",
+- "tox ~= 4.64.9",
+- "pdbpp ~= 0.12.1",
+- "ruff ~= 0.17.0", # keep in sync with the tool.tox.env.style stanza below
++ "behave",
++ "coverage",
++ "mypy",
++ "pexpect",
++ "pytest",
++ "pytest-cov",
++ "pytest-random-order",
++ "tox",
++ "pdbpp",
++ "ruff", # keep in sync with the tool.tox.env.style stanza below
+ ]
+
+ [project.scripts]
+@@ -173,8 +172,5 @@ skip_install = true
+ commands = [['uv', 'run', '--no-sync', '--frozen', '--', 'python', '-m', 'ensurepip'],
+ ['uv', 'run', '--no-sync', '--frozen', '--', 'python', '-m', 'mypy', '--no-pretty', '--install-types', '--non-interactive', '.']]
+
+-[tool.pytest]
+-addopts = ['--random-order']
+-
+ [tool.coverage.run]
+ source = ['mycli']
diff --git a/mycli.spec b/mycli.spec
index 7958b54..69e4b58 100644
--- a/mycli.spec
+++ b/mycli.spec
@@ -1,22 +1,13 @@
-#global server_tests 1
-
%global pypi_name mycli
Summary: Interactive CLI for MySQL Database with auto-completion and syntax highlighting
Name: mycli
-Version: 1.66.0
-Release: 4%{?dist}
+Version: 2.30.2
+Release: 1%{?dist}
# Automatically converted from old format: BSD - review is highly recommended.
License: LicenseRef-Callaway-BSD
URL: https://mycli.net
Source0: %{pypi_source}
-Patch: 0001-Revert-to-older-toml-format.patch
-Patch: 0002-Fix-tox-config-and-some-test-fixes.patch
-Patch: 0003-Disable-more-test-which-requires-db-server.patch
-Patch: 0004-Revert-to-sqlglot-5.1.3.patch
-Patch: 0005-Relax-various-reqs.patch
-Patch: 0006-Work-with-older-cli-helpers.patch
-Patch: 0007-Skip-test-failures-due-to-older-click.patch
-Patch: 0008-Adapt-test-suite-to-pygments-2.20.patch
+Patch: mycli-2.29.4-no-version-dep.patch
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros
@@ -32,79 +23,45 @@ BuildRequires: python3dist(configobj) >= 5.0.5
BuildRequires: python3dist(pycryptodomex)
BuildRequires: python3dist(pymysql) >= 0.9.2
BuildRequires: python3dist(pyperclip)
-BuildRequires: python3dist(sshtunnel)
-# Test infra:
-%{?server_tests:BuildRequires: mysql-server}
-Suggests: python3-mycli+ssh
+BuildRequires: sed
+Obsoletes: python3-mycli+ssh < 1.67
%py_provides python3-%{pypi_name}
%description
Nice interactive shell for MySQL Database with auto-completion and
syntax highlighting.
-
-
-%pyproject_extras_subpkg -n python3-%{pypi_name} ssh
-
%pyproject_extras_subpkg -n python3-%{pypi_name} llm
%prep
%autosetup -p1
+sed -i -e 's/ ~=.*"/"/' pyproject.toml
%build
%pyproject_wheel
%generate_buildrequires
-%pyproject_buildrequires -x ssh -x llm
+%pyproject_buildrequires -x llm
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%check
-
-db_env () {
- export PYTEST_HOST=127.0.0.1
- export PYTEST_USER=root
- export PYTEST_PASSWORD=root
- export PYTEST_PORT=3333
- export DATADIR=$(mktemp -d /tmp/myclitest.XXXXXX)
-}
-
-db_setup () {
- mysqld --no-defaults --datadir=$DATADIR --initialize-insecure
- mysqld --no-defaults --datadir=$DATADIR --socket=$DATADIR/my.sock --port=$PYTEST_PORT -D
- mysql -uroot --password='' --socket=$DATADIR/my.sock --port=$PYTEST_PORT -e 'CREATE DATABASE mycli_test_db;'
- mysql -uroot --password='' --socket=$DATADIR/my.sock --port=$PYTEST_PORT -e 'CREATE DATABASE test;'
- mysql -uroot --password='' --socket=$DATADIR/my.sock --port=$PYTEST_PORT -e "set password='"$PYTEST_PASSWORD"';"
-}
-db_teardown () {
- mysql -uroot --password=$PYTEST_PASSWORD --socket=$DATADIR/my.sock --port=$PYTEST_PORT -e 'SHUTDOWN;'
- count=0
- while [ $count -lt 15 ] ; do
- sleep 1
- grep -q 'Shutdown complete' $DATADIR/*.err && break
- ((count+=1))
- done
- rm -rf $DATADIR/*
- rm -r $DATADIR
-}
-
-%if 0%{?server_tests}
-db_env
-db_setup
-echo :$PYTEST_USER:$PYTEST_PASSWORD:$PYTEST_PORT:
-mysql -uroot --password=$PYTEST_PASSWORD --socket=$DATADIR/my.sock --port=3333 -e 'SELECT version();'
-%endif
-
-%pytest --ignore=test/test_parseutils.py
-%{?server_tests:db_teardown}
+%pytest --ignore-glob='*polars*' --ignore-glob='*test_main_modes_repl*'
%files -f %{pyproject_files}
%license LICENSE.txt
-%doc mycli/AUTHORS README.md mycli/SPONSORS
+%doc AUTHORS.md changelog.md CONTRIBUTING.md README.md SPONSORS.md
%{_bindir}/%{pypi_name}
+%exclude %{python3_sitelib}/mycli_test
%changelog
+* Tue Nov 03 2026 Terje Røsten <terjeros@gmail.com> - 2.30.2-1
+- 2.30.2
+
+* Wed Oct 14 2026 Terje Røsten <terjeros@gmail.com> - 2.29.4-1
+- 2.29.4
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 1.66.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
diff --git a/sources b/sources
index a14e8ff..e79ef60 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mycli-1.66.0.tar.gz) = c951fdde5a4e2b16f9edbd461f967dca63f5b266bfb5f015296563ced55993c908ad0338ce814305040472eb877f615f8174a4e30f85fea08b0f1832b68dd312
+SHA512 (mycli-2.30.2.tar.gz) = 044768740519b4a0420e3007cbfe2ebce104d8036f31ee4532c95be2cc0c2b51ee24b4c38baf954c523361fafe28aa6518b526c722831e8be980caa428d626fe
reply other threads:[~2026-11-15 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179473491892.1.5867767683040990144.rpms-mycli-5ae18c511fe0@fedoraproject.org \
--to=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox