From 613ed9af4ccbad27bb8301adfd39bfd9f45a875b Mon Sep 17 00:00:00 2001 From: Rajiv Abraham Date: Wed, 17 Aug 2016 17:40:24 -0400 Subject: [PATCH 1/2] Doc Update: Refer to sqlalchemy_redshift `redshift_sqlalchemy` is depracated. I have changed references to the latest `sqlalchemy_reshift`. Also see discussion, https://groups.google.com/a/continuum.io/d/msg/blaze-dev/UYVVWBAlabk/BUxsff-0AgAJ --- docs/source/aws.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/aws.rst b/docs/source/aws.rst index bdc930826..6a335c7d9 100644 --- a/docs/source/aws.rst +++ b/docs/source/aws.rst @@ -7,7 +7,7 @@ Dependencies * `boto `_ * `sqlalchemy `_ * `psycopg2 `_ -* `redshift_sqlalchemy `_ +* `sqlalchemy_redshift `_ Setup ----- @@ -28,7 +28,7 @@ Interface ``odo`` provides access to the following AWS services: * `S3 `_ via boto. -* `Redshift `_ via a `SQLAlchemy dialect `_ +* `Redshift `_ via a `SQLAlchemy dialect `_ URIs ---- From f405ef122937049a53a1223a0b4d3de7fc4ee7fd Mon Sep 17 00:00:00 2001 From: Philip Date: Tue, 30 Aug 2016 12:10:47 -0700 Subject: [PATCH 2/2] redshift_sqlalchemy is dead; long live sqlalchemy_redshift! --- .travis.yml | 5 +---- docs/source/whatsnew/0.5.1.txt | 2 ++ odo/backends/sql_csv.py | 2 +- odo/backends/tests/test_s3_redshift.py | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d3a0a5d6..92074fb96 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,16 +56,13 @@ install: # Install various deps - conda uninstall toolz - - pip install -U toolz sas7bdat psycopg2 dill 'pymongo<3' + - pip install -U toolz sas7bdat psycopg2 dill 'pymongo<3' sqlalchemy-redshift - pip install git+git://github.com/blaze/dask.git#egg=dask-dev[complete] - if [ -n "$PANDAS_VERSION" ]; then pip install $PANDAS_VERSION; fi # install pyspark - if [[ $TRAVIS_PYTHON_VERSION == '2.7' || $TRAVIS_PYTHON_VERSION == '3.4' ]]; then conda install spark=$SPARK_VERSION -c blaze -c https://conda.binstar.org/blaze/channel/dev -c anaconda-cluster; fi - # redshift sqlalchemy dialect - - pip install --upgrade git+git://github.com/graingert/redshift_sqlalchemy - # Before_script section stolen from fabric # See license https://github.com/fabric/fabric/blob/master/LICENSE before_script: diff --git a/docs/source/whatsnew/0.5.1.txt b/docs/source/whatsnew/0.5.1.txt index ca7e3e645..eab47f2cf 100644 --- a/docs/source/whatsnew/0.5.1.txt +++ b/docs/source/whatsnew/0.5.1.txt @@ -26,6 +26,8 @@ None Improved Backends ----------------- +* Sqlalchemy-redshift upgraded to 5.0 and installed from PyPI (:issue: `478`). + None API Changes diff --git a/odo/backends/sql_csv.py b/odo/backends/sql_csv.py index d2277e51f..fa55687eb 100644 --- a/odo/backends/sql_csv.py +++ b/odo/backends/sql_csv.py @@ -182,7 +182,7 @@ def compile_from_csv_postgres(element, compiler, **kwargs): try: import boto from odo.backends.aws import S3 - from redshift_sqlalchemy.dialect import CopyCommand + from sqlalchemy_redshift.dialect import CopyCommand except ImportError: pass else: diff --git a/odo/backends/tests/test_s3_redshift.py b/odo/backends/tests/test_s3_redshift.py index ef111bca3..8335c267b 100644 --- a/odo/backends/tests/test_s3_redshift.py +++ b/odo/backends/tests/test_s3_redshift.py @@ -8,7 +8,7 @@ sa = pytest.importorskip('sqlalchemy') boto = pytest.importorskip('boto') pytest.importorskip('psycopg2') -pytest.importorskip('redshift_sqlalchemy') +pytest.importorskip('sqlalchemy_redshift') from contextlib import closing import json