Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build_scripts/update_redis_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import tempfile


redis_version = os.environ.get('REDIS_VERSION', '6.2.14')
redis_version = os.environ.get('REDIS_VERSION', '6.2.17')
url = f'http://download.redis.io/releases/redis-{redis_version}.tar.gz'


Expand Down
2 changes: 1 addition & 1 deletion screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ shared:
environment:
CHANGELOG_FILENAME: docs/source/topic/changelog.md
PACKAGE_DIRECTORY: redislite
REDIS_VERSION: '6.2.14'
REDIS_VERSION: '6.2.17'
TOX_ENVLIST: py38,py39,py310,py311
steps:
- postinit_os: build_scripts/update_redis_server.py
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ project_urls =
Documentation = https://redislite.readthedocs.io/en/latest/
Source = https://github.com/yahoo/redislite
url = https://github.com/yahoo/redislite
version = 6.2.14
version = 6.2.17

[options]
install_requires=
Expand Down
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
BASEPATH = os.path.dirname(os.path.abspath(__file__))
REDIS_PATH = os.path.join(BASEPATH, 'redis.submodule')
REDIS_SERVER_METADATA = {}
REDIS_VERSION = os.environ.get('REDIS_VERSION', '6.2.14')
REDIS_VERSION = os.environ.get('REDIS_VERSION', '6.2.17')
REDIS_URL = f'http://download.redis.io/releases/redis-{REDIS_VERSION}.tar.gz'
install_scripts = ''
try:
Expand All @@ -43,7 +43,11 @@ def download_redis_submodule():
shutil.rmtree(REDIS_PATH)
with tempfile.TemporaryDirectory() as tempdir:
print(f'Downloading {REDIS_URL} to temp directory {tempdir}')
ftpstream = urllib.request.urlopen(REDIS_URL)
headers = {
'User-Agent': 'wget/1.21.2 (linux-gnu)'
}
req = urllib.request.Request(REDIS_URL, headers=headers)
ftpstream = urllib.request.urlopen(req)
tf = tarfile.open(fileobj=ftpstream, mode="r|gz")
directory = tf.next().name

Expand Down