Compare commits
No commits in common. "ca465fae2495c66ff98a841f1714525058d45941" and "deca1a8345ee4a2b0e15ccf599b1b23731699a43" have entirely different histories.
ca465fae24
...
deca1a8345
15 changed files with 36 additions and 49 deletions
|
@ -1,5 +1,5 @@
|
||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 1.15.1
|
current_version = 1.15.0
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
|
|
||||||
|
|
8
.github/workflows/release.yaml
vendored
8
.github/workflows/release.yaml
vendored
|
@ -21,12 +21,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
# Look to see if there is a cache hit for the corresponding requirements file
|
# Look to see if there is a cache hit for the corresponding requirements file
|
||||||
|
@ -75,12 +75,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
# Look to see if there is a cache hit for the corresponding requirements file
|
# Look to see if there is a cache hit for the corresponding requirements file
|
||||||
|
|
8
.github/workflows/test-binary-build.yaml
vendored
8
.github/workflows/test-binary-build.yaml
vendored
|
@ -21,13 +21,13 @@ jobs:
|
||||||
options: --entrypoint redis-server
|
options: --entrypoint redis-server
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
architecture: 'x64'
|
architecture: 'x64'
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v1
|
||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
# Look to see if there is a cache hit for the corresponding requirements file
|
# Look to see if there is a cache hit for the corresponding requirements file
|
||||||
|
@ -71,7 +71,7 @@ jobs:
|
||||||
./build/x86*/release/install/iredis help GET
|
./build/x86*/release/install/iredis help GET
|
||||||
|
|
||||||
- name: Upload Release Asset to Github Artifact
|
- name: Upload Release Asset to Github Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: iredis-${{github.sha}}.tar.gz
|
name: iredis-${{github.sha}}.tar.gz
|
||||||
path: ./build/iredis.tar.gz
|
path: ./build/iredis.tar.gz
|
||||||
|
|
12
.github/workflows/test.yaml
vendored
12
.github/workflows/test.yaml
vendored
|
@ -12,7 +12,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-24.04"]
|
os: ["ubuntu-20.04"]
|
||||||
python: ["3.8", "3.9", "3.10", "3.11.1", "3.12"]
|
python: ["3.8", "3.9", "3.10", "3.11.1", "3.12"]
|
||||||
redis: [5, 6, 7, 7.2]
|
redis: [5, 6, 7, 7.2]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
@ -26,12 +26,12 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
architecture: "x64"
|
architecture: "x64"
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
# Look to see if there is a cache hit for the corresponding requirements file
|
# Look to see if there is a cache hit for the corresponding requirements file
|
||||||
|
@ -62,13 +62,13 @@ jobs:
|
||||||
- uses: codespell-project/actions-codespell@master
|
- uses: codespell-project/actions-codespell@master
|
||||||
with:
|
with:
|
||||||
ignore_words_list: fo,ists,oll,optin,ot,smove,tre,whe,EXAT,exat
|
ignore_words_list: fo,ists,oll,optin,ot,smove,tre,whe,EXAT,exat
|
||||||
skip: ./docs/assets/demo.svg,./iredis/data/commands.json,./iredis/data/commands/*,./tests/unittests/*,./docs/assets/*
|
skip: ./docs/assets/demo.svg,./iredis/data/commands.json,./iredis/data/commands/*,./tests/unittests/*
|
||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8
|
python-version: 3.8
|
||||||
architecture: "x64"
|
architecture: "x64"
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
# Look to see if there is a cache hit for the corresponding requirements file
|
# Look to see if there is a cache hit for the corresponding requirements file
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
## UPCOMING
|
## UPCOMING
|
||||||
|
|
||||||
### 1.15.1
|
|
||||||
|
|
||||||
- Bugfix: fix `xgroup help` command output.
|
|
||||||
|
|
||||||
## 1.15
|
## 1.15
|
||||||
|
|
||||||
- Dependency: remove pendulum, add `python-dateutil` (thanks to [deronnax])
|
- Dependency: remove pendulum, add `python-dateutil` (thanks to [deronnax])
|
||||||
|
|
7
debian/changelog
vendored
7
debian/changelog
vendored
|
@ -1,10 +1,3 @@
|
||||||
iredis (1.15.1-1) sid; urgency=medium
|
|
||||||
|
|
||||||
* Simplifying watch file.
|
|
||||||
* Merging upstream version 1.15.1.
|
|
||||||
|
|
||||||
-- Daniel Baumann <daniel@debian.org> Thu, 24 Apr 2025 14:19:31 +0200
|
|
||||||
|
|
||||||
iredis (1.15.0-5) sid; urgency=medium
|
iredis (1.15.0-5) sid; urgency=medium
|
||||||
|
|
||||||
* Updating to standards version 4.7.1.
|
* Updating to standards version 4.7.1.
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
__version__ = "1.15.1"
|
__version__ = "1.15.0"
|
||||||
|
|
|
@ -111,6 +111,8 @@ def split_command_args(command):
|
||||||
|
|
||||||
:param command: redis command string, with args
|
:param command: redis command string, with args
|
||||||
"""
|
"""
|
||||||
|
global all_commands
|
||||||
|
|
||||||
command = command.strip()
|
command = command.strip()
|
||||||
for command_name in all_commands:
|
for command_name in all_commands:
|
||||||
# for command that is partially input, like `command in`, we should
|
# for command that is partially input, like `command in`, we should
|
||||||
|
|
|
@ -102,6 +102,8 @@ def read_config_file(f):
|
||||||
|
|
||||||
|
|
||||||
def load_config_files(iredisrc):
|
def load_config_files(iredisrc):
|
||||||
|
global config
|
||||||
|
|
||||||
with path(project_data, "iredisrc") as p:
|
with path(project_data, "iredisrc") as p:
|
||||||
config_obj = ConfigObj(str(p))
|
config_obj = ConfigObj(str(p))
|
||||||
|
|
||||||
|
|
|
@ -231,7 +231,7 @@ stream,XACK,command_key_group_ids,render_int
|
||||||
stream,XADD,command_xadd,render_bulk_string
|
stream,XADD,command_xadd,render_bulk_string
|
||||||
stream,XCLAIM,command_xclaim,render_list
|
stream,XCLAIM,command_xclaim,render_list
|
||||||
stream,XDEL,command_key_ids,render_int
|
stream,XDEL,command_key_ids,render_int
|
||||||
stream,XGROUP,command_xgroup,render_list_or_int_or_string
|
stream,XGROUP,command_xgroup,render_string_or_int
|
||||||
stream,XINFO,command_xinfo,render_list
|
stream,XINFO,command_xinfo,render_list
|
||||||
stream,XLEN,command_key,render_int
|
stream,XLEN,command_key,render_int
|
||||||
stream,XPENDING,command_xpending,render_list
|
stream,XPENDING,command_xpending,render_list
|
||||||
|
|
|
|
@ -30,7 +30,7 @@ logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class SkipAuthFileHistory(FileHistory):
|
class SkipAuthFileHistory(FileHistory):
|
||||||
"""Exactly like FileHistory, but won't save `AUTH` command into history
|
"""Exactlly like FileHistory, but won't save `AUTH` command into history
|
||||||
file."""
|
file."""
|
||||||
|
|
||||||
def append_string(self, string: str) -> None:
|
def append_string(self, string: str) -> None:
|
||||||
|
@ -142,19 +142,19 @@ class Rainbow:
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.current = -1
|
self.current = -1
|
||||||
self.forward = 1
|
self.forword = 1
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return self
|
return self
|
||||||
|
|
||||||
def __next__(self):
|
def __next__(self):
|
||||||
self.current += self.forward
|
self.current += self.forword
|
||||||
if 0 <= self.current < len(self.color):
|
if 0 <= self.current < len(self.color):
|
||||||
# not to the end
|
# not to the end
|
||||||
return self.color[self.current]
|
return self.color[self.current]
|
||||||
else:
|
else:
|
||||||
self.forward = -self.forward
|
self.forword = -self.forword
|
||||||
self.current += 2 * self.forward
|
self.current += 2 * self.forword
|
||||||
return self.color[self.current]
|
return self.color[self.current]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -531,8 +531,7 @@ GRAMMAR = {
|
||||||
(\s+ {STREAM_CREATE} \s+ {KEY} \s+ {GROUP} \s+ {STREAM_ID})|
|
(\s+ {STREAM_CREATE} \s+ {KEY} \s+ {GROUP} \s+ {STREAM_ID})|
|
||||||
(\s+ {STREAM_SETID} \s+ {KEY} \s+ {GROUP} \s+ {STREAM_ID})|
|
(\s+ {STREAM_SETID} \s+ {KEY} \s+ {GROUP} \s+ {STREAM_ID})|
|
||||||
(\s+ {STREAM_DESTROY} \s+ {KEY} \s+ {GROUP})|
|
(\s+ {STREAM_DESTROY} \s+ {KEY} \s+ {GROUP})|
|
||||||
(\s+ {STREAM_DELCONSUMER} \s+ {KEY} \s+ {GROUP} \s+ {CONSUMER})|
|
(\s+ {STREAM_DELCONSUMER} \s+ {KEY} \s+ {GROUP} \s+ {CONSUMER})
|
||||||
(\s+ {HELP})
|
|
||||||
)
|
)
|
||||||
\s*""",
|
\s*""",
|
||||||
"command_key_group_ids": rf"""
|
"command_key_group_ids": rf"""
|
||||||
|
|
|
@ -149,14 +149,6 @@ class OutputRender:
|
||||||
return OutputRender.render_list(text)
|
return OutputRender.render_list(text)
|
||||||
return OutputRender.render_bulk_string(text)
|
return OutputRender.render_bulk_string(text)
|
||||||
|
|
||||||
@staticmethod
|
|
||||||
def render_list_or_int_or_string(text):
|
|
||||||
if isinstance(text, list):
|
|
||||||
return OutputRender.render_list(text)
|
|
||||||
if isinstance(text, int):
|
|
||||||
return OutputRender.render_int(text)
|
|
||||||
return OutputRender.render_bulk_string(text)
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def render_string_or_int(text):
|
def render_string_or_int(text):
|
||||||
if isinstance(text, int):
|
if isinstance(text, int):
|
||||||
|
|
13
poetry.lock
generated
13
poetry.lock
generated
|
@ -1,4 +1,4 @@
|
||||||
# This file is automatically @generated by Poetry 1.8.5 and should not be changed by hand.
|
# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand.
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "async-timeout"
|
name = "async-timeout"
|
||||||
|
@ -38,15 +38,18 @@ files = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "configobj"
|
name = "configobj"
|
||||||
version = "5.0.9"
|
version = "5.0.8"
|
||||||
description = "Config file reading, writing and validation."
|
description = "Config file reading, writing and validation."
|
||||||
optional = false
|
optional = false
|
||||||
python-versions = ">=3.7"
|
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*"
|
||||||
files = [
|
files = [
|
||||||
{file = "configobj-5.0.9-py2.py3-none-any.whl", hash = "sha256:1ba10c5b6ee16229c79a05047aeda2b55eb4e80d7c7d8ecf17ec1ca600c79882"},
|
{file = "configobj-5.0.8-py2.py3-none-any.whl", hash = "sha256:a7a8c6ab7daade85c3f329931a807c8aee750a2494363934f8ea84d8a54c87ea"},
|
||||||
{file = "configobj-5.0.9.tar.gz", hash = "sha256:03c881bbf23aa07bccf1b837005975993c4ab4427ba57f959afdd9d1a2386848"},
|
{file = "configobj-5.0.8.tar.gz", hash = "sha256:6f704434a07dc4f4dc7c9a745172c1cad449feb548febd9f7fe362629c627a97"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[package.dependencies]
|
||||||
|
six = "*"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "exceptiongroup"
|
name = "exceptiongroup"
|
||||||
version = "1.1.3"
|
version = "1.1.3"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "iredis"
|
name = "iredis"
|
||||||
version = "1.15.1"
|
version = "1.15.0"
|
||||||
description = "Terminal client for Redis with auto-completion and syntax highlighting."
|
description = "Terminal client for Redis with auto-completion and syntax highlighting."
|
||||||
authors = ["laixintao <laixintao1995@163.com>"]
|
authors = ["laixintao <laixintao1995@163.com>"]
|
||||||
readme = 'README.md'
|
readme = 'README.md'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue