Skip to content

Commit c0d0df4

Browse files
authored
Merge branch 'master' into py314-compat
2 parents d05f676 + 601c1aa commit c0d0df4

File tree

108 files changed

+5350
-800
lines changed

Some content is hidden

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

108 files changed

+5350
-800
lines changed

.flake8

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

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +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
3837
3938
echo "::group::Installing dependencies"
40-
pip install -U setuptools wheel
41-
pip install -r requirements.txt
4239
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
4342
if [ "${{inputs.parser-backend}}" == "hiredis" ]; then
4443
pip install "hiredis${{inputs.hiredis-version}}"
4544
echo "PARSER_BACKEND=$(echo "${{inputs.parser-backend}}_${{inputs.hiredis-version}}" | sed 's/[^a-zA-Z0-9]/_/g')" >> $GITHUB_ENV
@@ -56,13 +55,13 @@ runs:
5655
5756
# Mapping of redis version to stack version
5857
declare -A redis_stack_version_mapping=(
59-
["7.4.1"]="7.4.0-v1"
60-
["7.2.6"]="7.2.0-v13"
61-
["6.2.16"]="6.2.6-v17"
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"
6261
)
6362
6463
if [[ -v redis_stack_version_mapping[$REDIS_VERSION] ]]; then
65-
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]}
6665
echo "REDIS_MOD_URL=redis://127.0.0.1:6479/0" >> $GITHUB_ENV
6766
else
6867
echo "Version not found in the mapping."
@@ -103,7 +102,7 @@ runs:
103102

104103
if (( $REDIS_MAJOR_VERSION < 7 )) && [ "$protocol" == "3" ]; then
105104
echo "Skipping module tests: Modules doesn't support RESP3 for Redis versions < 7"
106-
invoke standalone-tests --redis-mod-url=${REDIS_MOD_URL} $eventloop --protocol="${protocol}" --extra-markers="not redismod"
105+
invoke standalone-tests --redis-mod-url=${REDIS_MOD_URL} $eventloop --protocol="${protocol}" --extra-markers="not redismod and not cp_integration"
107106
else
108107
invoke standalone-tests --redis-mod-url=${REDIS_MOD_URL} $eventloop --protocol="${protocol}"
109108
fi

.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: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ 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
32-
CURRENT_REDIS_VERSION: '7.4.1'
30+
CURRENT_CLIENT_LIBS_TEST_STACK_IMAGE_TAG: 'rs-7.4.0-v2'
31+
CURRENT_REDIS_VERSION: '7.4.2'
3332

3433
jobs:
3534
dependency-audit:
@@ -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:
@@ -74,8 +74,8 @@ jobs:
7474
max-parallel: 15
7575
fail-fast: false
7676
matrix:
77-
redis-version: [ '${{ needs.redis_version.outputs.CURRENT }}', '7.2.6', '6.2.16']
78-
python-version: ['3.8', '3.12']
77+
redis-version: ['8.0-M04-pre', '${{ needs.redis_version.outputs.CURRENT }}', '7.2.7', '6.2.17']
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: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish tag to Pypi
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
contents: read # to fetch code (actions/checkout)
@@ -17,15 +18,10 @@ jobs:
1718
uses: actions/setup-python@v5
1819
with:
1920
python-version: 3.9
20-
- name: Install dev tools
21-
run: |
22-
pip install -r dev_requirements.txt
23-
pip install twine wheel
21+
- run: pip install build twine
2422

2523
- name: Build package
26-
run: |
27-
python setup.py build
28-
python setup.py sdist bdist_wheel
24+
run: python -m build .
2925

3026
- name: Basic package test prior to upload
3127
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)