Skip to content

Commit ce9b87a

Browse files
authored
s/redis/valkey/ single commit with fixes (redis#2)
1 parent 6fcdd97 commit ce9b87a

File tree

194 files changed

+4591
-4931
lines changed

Some content is hidden

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

194 files changed

+4591
-4931
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[run]
2-
source = redis
2+
source = valkey

.github/ISSUE_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Thanks for wanting to report an issue you've found in redis-py. Please delete this text and fill in the template below.
1+
Thanks for wanting to report an issue you've found in valkey-py. Please delete this text and fill in the template below.
22
It is of course not always possible to reduce your code to a small test case, but it's highly appreciated to have as much data as possible. Thank you!
33

4-
**Version**: What redis-py and what redis version is the issue happening on?
4+
**Version**: What valkey-py and what valkey version is the issue happening on?
55

66
**Platform**: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
77

.github/release-drafter-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name-template: '$NEXT_MINOR_VERSION'
22
tag-template: 'v$NEXT_MINOR_VERSION'
33
filter-by-commitish: true
4-
commitish: master
4+
commitish: main
55
autolabeler:
66
- label: 'maintenance'
77
files:

.github/wordlist.txt

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Jaeger
2121
Ludovico
2222
Magnocavallo
2323
McCurdy
24+
Mesoraca
2425
NOSCRIPT
2526
NUMPAT
2627
NUMPT
@@ -34,12 +35,7 @@ PubSub
3435
READONLY
3536
RediSearch
3637
RedisBloom
37-
RedisCluster
38-
RedisClusterCommands
39-
RedisClusterException
40-
RedisClusters
4138
RedisGraph
42-
RedisInstrumentor
4339
RedisJSON
4440
RedisTimeSeries
4541
SHA
@@ -55,9 +51,16 @@ TCP
5551
TOPKCommands
5652
TimeSeriesCommands
5753
Uptrace
54+
Valkey's
55+
ValkeyCluster
56+
ValkeyClusterCommands
57+
ValkeyClusterException
58+
ValkeyClusters
59+
ValkeyInstrumentor
5860
ValueError
5961
WATCHed
6062
WatchError
63+
aiven
6164
api
6265
args
6366
async
@@ -78,15 +81,19 @@ docstring
7881
docstrings
7982
eg
8083
exc
84+
faq
8185
firsttimersonly
8286
fo
8387
genindex
8488
gmail
8589
hiredis
90+
html
8691
http
92+
https
8793
idx
8894
iff
8995
ini
96+
io
9097
json
9198
keyslot
9299
keyspace
@@ -96,6 +103,7 @@ localhost
96103
lua
97104
makeapullrequest
98105
maxdepth
106+
mesoraca
99107
mget
100108
microservice
101109
microservices
@@ -107,6 +115,7 @@ observability
107115
opentelemetry
108116
oss
109117
performant
118+
placeholderkv
110119
pmessage
111120
png
112121
pre
@@ -124,8 +133,11 @@ reinitialization
124133
replicaof
125134
repo
126135
runtime
136+
salvatore
127137
sedrik
138+
sexualized
128139
sharded
140+
socio
129141
ssl
130142
str
131143
stunnel
@@ -139,5 +151,7 @@ txt
139151
un
140152
unicode
141153
url
154+
valkey
155+
valkeymodules
142156
virtualenv
143157
www

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ main ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ main ]
2020

2121
jobs:
2222
analyze:

.github/workflows/docs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ name: Docs CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- '[0-9].[0-9]'
88
pull_request:
99
branches:
10-
- master
10+
- main
1111
- '[0-9].[0-9]'
1212
schedule:
1313
- cron: '0 1 * * *' # nightly build
@@ -42,6 +42,6 @@ jobs:
4242
- name: upload docs
4343
uses: actions/upload-artifact@v4
4444
with:
45-
name: redis-py-docs
45+
name: valkey-py-docs
4646
path: |
4747
docs/_build/html

.github/workflows/install_and_test.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ cd ${TESTDIR}
3838

3939
# install, run tests
4040
pip install ${PKG}
41-
# Redis tests
41+
# Valkey tests
4242
pytest -m 'not onlycluster'
43-
# RedisCluster tests
44-
CLUSTER_URL="redis://localhost:16379/0"
45-
pytest -m 'not onlynoncluster and not redismod and not ssl' --redis-url=${CLUSTER_URL}
43+
# ValkeyCluster tests
44+
CLUSTER_URL="valkey://localhost:16379/0"
45+
pytest -m 'not onlynoncluster and not valkeymod and not ssl' --valkey-url=${CLUSTER_URL}

.github/workflows/integration.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
- '**/*.rst'
88
- '**/*.md'
99
branches:
10-
- master
10+
- main
1111
- '[0-9].[0-9]'
1212
pull_request:
1313
branches:
14-
- master
14+
- main
1515
- '[0-9].[0-9]'
1616
schedule:
1717
- cron: '0 1 * * *' # nightly build

.github/workflows/release-drafter.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
# branches to consider in the event; optional, defaults to all
66
branches:
7-
- master
7+
- main
88

99
permissions: {}
1010
jobs:
@@ -15,7 +15,7 @@ jobs:
1515

1616
runs-on: ubuntu-latest
1717
steps:
18-
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
# Drafts your next Release notes as Pull Requests are merged into "main"
1919
- uses: release-drafter/release-drafter@v6
2020
with:
2121
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml

.github/workflows/stale-issues.yml

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

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*.pyc
2-
redis.egg-info
2+
valkey.egg-info
33
build/
44
dist/
55
dump.rdb

.isort.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[settings]
22
profile=black
33
multi_line_output=3
4-
src_paths = ["redis", "tests"]
5-
skip_glob=benchmarks/*
4+
src_paths = ["valkey", "tests"]
5+
skip_glob=benchmarks/*

.mypy.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[mypy]
22
#, docs/examples, tests
3-
files = redis
3+
files = valkey
44
check_untyped_defs = True
55
follow_imports_for_stubs asyncio.= True
66
#disallow_any_decorated = True
@@ -19,6 +19,6 @@ warn_unused_ignores = True
1919
disallow_any_unimported = True
2020
#warn_return_any = True
2121

22-
[mypy-redis.asyncio.lock]
22+
[mypy-valkey.asyncio.lock]
2323
# TODO: Remove once locks has been rewritten
2424
ignore_errors = True

CODE_OF_CONDUCT.md

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
Contributor Covenant Code of Conduct
2+
Our Pledge
3+
We as members, contributors, and leaders pledge to make participation in our
4+
community a harassment-free experience for everyone, regardless of age, body
5+
size, visible or invisible disability, ethnicity, sex characteristics, gender
6+
identity and expression, level of experience, education, socio-economic status,
7+
nationality, personal appearance, race, religion, or sexual identity
8+
and orientation.
9+
We pledge to act and interact in ways that contribute to an open, welcoming,
10+
diverse, inclusive, and healthy community.
11+
Our Standards
12+
Examples of behavior that contributes to a positive environment for our
13+
community include:
14+
15+
* Demonstrating empathy and kindness toward other people
16+
* Being respectful of differing opinions, viewpoints, and experiences
17+
* Giving and gracefully accepting constructive feedback
18+
* Accepting responsibility and apologizing to those affected by our mistakes,
19+
and learning from the experience
20+
* Focusing on what is best not just for us as individuals, but for the
21+
overall community
22+
23+
Examples of unacceptable behavior include:
24+
25+
* The use of sexualized language or imagery, and sexual attention or
26+
advances of any kind
27+
* Trolling, insulting or derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or email
30+
address, without their explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
Enforcement Responsibilities
35+
Community leaders are responsible for clarifying and enforcing our standards of
36+
acceptable behavior and will take appropriate and fair corrective action in
37+
response to any behavior that they deem inappropriate, threatening, offensive,
38+
or harmful.
39+
Community leaders have the right and responsibility to remove, edit, or reject
40+
comments, commits, code, wiki edits, issues, and other contributions that are
41+
not aligned to this Code of Conduct, and will communicate reasons for moderation
42+
decisions when appropriate.
43+
Scope
44+
This Code of Conduct applies within all community spaces, and also applies when
45+
an individual is officially representing the community in public spaces.
46+
Examples of representing our community include using an official e-mail address,
47+
posting via an official social media account, or acting as an appointed
48+
representative at an online or offline event.
49+
Enforcement
50+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
51+
reported to the community leaders responsible for enforcement at
52+
this email address: [email protected].
53+
All complaints will be reviewed and investigated promptly and fairly.
54+
All community leaders are obligated to respect the privacy and security of the
55+
reporter of any incident.
56+
Enforcement Guidelines
57+
Community leaders will follow these Community Impact Guidelines in determining
58+
the consequences for any action they deem in violation of this Code of Conduct:
59+
1. Correction
60+
Community Impact: Use of inappropriate language or other behavior deemed
61+
unprofessional or unwelcome in the community.
62+
Consequence: A private, written warning from community leaders, providing
63+
clarity around the nature of the violation and an explanation of why the
64+
behavior was inappropriate. A public apology may be requested.
65+
2. Warning
66+
Community Impact: A violation through a single incident or series
67+
of actions.
68+
Consequence: A warning with consequences for continued behavior. No
69+
interaction with the people involved, including unsolicited interaction with
70+
those enforcing the Code of Conduct, for a specified period of time. This
71+
includes avoiding interactions in community spaces as well as external channels
72+
like social media. Violating these terms may lead to a temporary or
73+
permanent ban.
74+
3. Temporary Ban
75+
Community Impact: A serious violation of community standards, including
76+
sustained inappropriate behavior.
77+
Consequence: A temporary ban from any sort of interaction or public
78+
communication with the community for a specified period of time. No public or
79+
private interaction with the people involved, including unsolicited interaction
80+
with those enforcing the Code of Conduct, is allowed during this period.
81+
Violating these terms may lead to a permanent ban.
82+
4. Permanent Ban
83+
Community Impact: Demonstrating a pattern of violation of community
84+
standards, including sustained inappropriate behavior, harassment of an
85+
individual, or aggression toward or disparagement of classes of individuals.
86+
Consequence: A permanent ban from any sort of public interaction within
87+
the community.
88+
Attribution
89+
This Code of Conduct is adapted from the Contributor Covenant,
90+
version 2.0, available at
91+
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
92+
Community Impact Guidelines were inspired by Mozilla's code of conduct
93+
enforcement ladder.
94+
For answers to common questions about this code of conduct, see the FAQ at
95+
https://www.contributor-covenant.org/faq. Translations are available at
96+
https://www.contributor-covenant.org/translations.

0 commit comments

Comments
 (0)