diff --git a/.travis.yml b/.travis.yml index e18f425..3be31de 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,5 @@ language: python +sudo: false python: 2.7 env: - TOX_ENV=py27 @@ -13,7 +14,6 @@ matrix: - TOX_ENV=pypy - TOX_ENV=build_docs install: - - sudo apt-get update -qq - pip install --upgrade pip setuptools tox virtualenv coveralls script: - tox -v -v -e $TOX_ENV diff --git a/deploy_package b/build_scripts/deploy_package similarity index 100% rename from deploy_package rename to build_scripts/deploy_package diff --git a/build_scripts/update_redis_server.py b/build_scripts/update_redis_server.py new file mode 100755 index 0000000..8adbe99 --- /dev/null +++ b/build_scripts/update_redis_server.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 +""" Update the redis.submodule in the redislite repo to the latest stable version """ +import os +import shutil +import urllib.request +import tarfile +import tempfile + + +url = 'http://download.redis.io/releases/redis-stable.tar.gz' + + +if __name__ == "__main__": + shutil.rmtree('redis.submodule') + with tempfile.TemporaryDirectory() as tempdir: + ftpstream = urllib.request.urlopen(url) + tf = tarfile.open(fileobj=ftpstream, mode="r|gz") + directory = tf.next().name + print(directory) + tf.extractall(tempdir) + shutil.move(os.path.join(tempdir, directory), 'redis.submodule')