Skip to content

Commit 1e7b075

Browse files
authored
Merge branch 'master' into DOC-4736-geo-index-examples
2 parents 4009a64 + 09b1376 commit 1e7b075

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+1107
-777
lines changed

.flake8

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/actions/run-tests/action.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,14 @@ runs:
3131
- name: Setup Test environment
3232
env:
3333
REDIS_VERSION: ${{ inputs.redis-version }}
34-
REDIS_IMAGE: "redis:${{ inputs.redis-version }}"
35-
CLIENT_LIBS_TEST_IMAGE: "redislabs/client-libs-test:${{ inputs.redis-version }}"
34+
CLIENT_LIBS_TEST_IMAGE_TAG: ${{ inputs.redis-version }}
3635
run: |
3736
set -e
38-
39-
if [ "${{inputs.redis-version}}" == "8.0-M04-pre" ]; then
40-
export REDIS_IMAGE=redis:8.0-M03
41-
fi
4237
4338
echo "::group::Installing dependencies"
44-
pip install -U setuptools wheel
45-
pip install -r requirements.txt
4639
pip install -r dev_requirements.txt
40+
pip uninstall -y redis # uninstall Redis package installed via redis-entraid
41+
pip install -e .[jwt] # install the working copy
4742
if [ "${{inputs.parser-backend}}" == "hiredis" ]; then
4843
pip install "hiredis${{inputs.hiredis-version}}"
4944
echo "PARSER_BACKEND=$(echo "${{inputs.parser-backend}}_${{inputs.hiredis-version}}" | sed 's/[^a-zA-Z0-9]/_/g')" >> $GITHUB_ENV
@@ -60,13 +55,13 @@ runs:
6055
6156
# Mapping of redis version to stack version
6257
declare -A redis_stack_version_mapping=(
63-
["7.4.2"]="7.4.0-v2"
64-
["7.2.7"]="7.2.0-v14"
65-
["6.2.17"]="6.2.6-v18"
58+
["7.4.2"]="rs-7.4.0-v2"
59+
["7.2.7"]="rs-7.2.0-v14"
60+
["6.2.17"]="rs-6.2.6-v18"
6661
)
6762
6863
if [[ -v redis_stack_version_mapping[$REDIS_VERSION] ]]; then
69-
export REDIS_STACK_IMAGE="redis/redis-stack-server:${redis_stack_version_mapping[$REDIS_VERSION]}"
64+
export CLIENT_LIBS_TEST_STACK_IMAGE_TAG=${redis_stack_version_mapping[$REDIS_VERSION]}
7065
echo "REDIS_MOD_URL=redis://127.0.0.1:6479/0" >> $GITHUB_ENV
7166
else
7267
echo "Version not found in the mapping."

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
sudo apt-get install -yqq pandoc make
3737
- name: run code linters
3838
run: |
39-
pip install -r requirements.txt -r dev_requirements.txt -r docs/requirements.txt
39+
pip install -r dev_requirements.txt -r docs/requirements.txt
4040
invoke build-docs
4141
4242
- name: upload docs

.github/workflows/install_and_test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ python -m venv ${DESTENV}
2121
source ${DESTENV}/bin/activate
2222
pip install --upgrade --quiet pip
2323
pip install --quiet -r dev_requirements.txt
24+
pip uninstall -y redis # uninstall Redis package installed via redis-entraid
2425
invoke devenv --endpoints=all-stack
2526
invoke package
2627

.github/workflows/integration.yaml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ env:
2727
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2828
# this speeds up coverage with Python 3.12: https://github.com/nedbat/coveragepy/issues/1665
2929
COVERAGE_CORE: sysmon
30-
REDIS_IMAGE: redis:latest
31-
REDIS_STACK_IMAGE: redis/redis-stack-server:latest
30+
CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: 'rs-7.4.0-v2'
3231
CURRENT_REDIS_VERSION: '7.4.2'
3332

3433
jobs:
@@ -39,7 +38,7 @@ jobs:
3938
- uses: actions/checkout@v4
4039
- uses: pypa/[email protected]
4140
with:
42-
inputs: requirements.txt dev_requirements.txt
41+
inputs: dev_requirements.txt
4342
ignore-vulns: |
4443
GHSA-w596-4wvx-j9j6 # subversion related git pull, dependency for pytest. There is no impact here.
4544
@@ -55,6 +54,7 @@ jobs:
5554
- name: run code linters
5655
run: |
5756
pip install -r dev_requirements.txt
57+
pip uninstall -y redis # uninstall Redis package installed via redis-entraid
5858
invoke linters
5959
6060
redis_version:
@@ -75,7 +75,7 @@ jobs:
7575
fail-fast: false
7676
matrix:
7777
redis-version: ['8.0-M04-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.7', '6.2.17']
78-
python-version: ['3.8', '3.12']
78+
python-version: ['3.8', '3.13']
7979
parser-backend: ['plain']
8080
event-loop: ['asyncio']
8181
env:
@@ -99,7 +99,7 @@ jobs:
9999
fail-fast: false
100100
matrix:
101101
redis-version: [ '${{ needs.redis_version.outputs.CURRENT }}' ]
102-
python-version: ['3.9', '3.10', '3.11', 'pypy-3.9', 'pypy-3.10']
102+
python-version: ['3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
103103
parser-backend: [ 'plain' ]
104104
event-loop: [ 'asyncio' ]
105105
env:
@@ -123,7 +123,7 @@ jobs:
123123
fail-fast: false
124124
matrix:
125125
redis-version: [ '${{ needs.redis_version.outputs.CURRENT }}' ]
126-
python-version: [ '3.8', '3.12']
126+
python-version: [ '3.8', '3.13']
127127
parser-backend: [ 'hiredis' ]
128128
hiredis-version: [ '>=3.0.0', '<3.0.0' ]
129129
event-loop: [ 'asyncio' ]
@@ -149,7 +149,7 @@ jobs:
149149
fail-fast: false
150150
matrix:
151151
redis-version: [ '${{ needs.redis_version.outputs.CURRENT }}' ]
152-
python-version: [ '3.8', '3.12' ]
152+
python-version: [ '3.8', '3.13' ]
153153
parser-backend: [ 'plain' ]
154154
event-loop: [ 'uvloop' ]
155155
env:
@@ -180,9 +180,8 @@ jobs:
180180
python-version: 3.9
181181
- name: Run installed unit tests
182182
env:
183-
REDIS_VERSION: ${{ env.CURRENT_REDIS_VERSION }}
184-
REDIS_IMAGE: "redis:${{ env.CURRENT_REDIS_VERSION }}"
185-
CLIENT_LIBS_TEST_IMAGE: "redislabs/client-libs-test:${{ env.CURRENT_REDIS_VERSION }}"
183+
CLIENT_LIBS_TEST_IMAGE_TAG: ${{ env.CURRENT_REDIS_VERSION }}
184+
CLIENT_LIBS_TEST_STACK_IMAGE_TAG: ${{ env.CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG }}
186185
run: |
187186
bash .github/workflows/install_and_test.sh ${{ matrix.extension }}
188187
@@ -192,7 +191,7 @@ jobs:
192191
strategy:
193192
fail-fast: false
194193
matrix:
195-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy-3.9', 'pypy-3.10']
194+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', 'pypy-3.9', 'pypy-3.10']
196195
steps:
197196
- uses: actions/checkout@v4
198197
- uses: actions/setup-python@v5

.github/workflows/pypi-publish.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,10 @@ jobs:
1818
uses: actions/setup-python@v5
1919
with:
2020
python-version: 3.9
21-
- name: Install dev tools
22-
run: |
23-
pip install -r dev_requirements.txt
24-
pip install twine wheel
21+
- run: pip install build twine
2522

2623
- name: Build package
27-
run: |
28-
python setup.py build
29-
python setup.py sdist bdist_wheel
24+
run: python -m build .
3025

3126
- name: Basic package test prior to upload
3227
run: |

.github/workflows/spellcheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
- name: Checkout
99
uses: actions/checkout@v4
1010
- name: Check Spelling
11-
uses: rojopolis/spellcheck-github-actions@0.38.0
11+
uses: rojopolis/spellcheck-github-actions@0.47.0
1212
with:
1313
config_path: .github/spellcheck-settings.yml
1414
task_name: Markdown

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ docker/stunnel/keys
2323
/dockers/*/tls/*
2424
/dockers/standalone/
2525
/dockers/cluster/
26+
/dockers/replica/
27+
/dockers/sentinel/
28+
/dockers/redis-stack/

.isort.cfg

Lines changed: 0 additions & 5 deletions
This file was deleted.

.readthedocs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ version: 2
22

33
python:
44
install:
5-
- requirements: ./docs/requirements.txt
6-
- requirements: requirements.txt
5+
- requirements: docs/requirements.txt
6+
- method: pip
7+
path: .
78

89
build:
910
os: ubuntu-20.04

0 commit comments

Comments
 (0)