forked from sqlalchemy-redshift/sqlalchemy-redshift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a redshift_sqlalchemy compatibility package
- Loading branch information
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
""" | ||
Compatibility module for projects referencing sqlalchemy_redshift | ||
by its old name "redshift_sqlalchemy". | ||
""" | ||
|
||
import sys | ||
import warnings | ||
|
||
import sqlalchemy_redshift | ||
|
||
|
||
DEPRECATION_MESSAGE = """\ | ||
redshift_sqlalchemy has been renamed to sqlalchemy_redshift. | ||
The redshift_sqlalchemy compatibility package will be removed in | ||
a future release, so it is recommended to update all package references. | ||
""" | ||
|
||
warnings.warn(DEPRECATION_MESSAGE, DeprecationWarning) | ||
|
||
# All references to module redshift_sqlalchemy will map to sqlalchemy_redshift | ||
sys.modules['redshift_sqlalchemy'] = sqlalchemy_redshift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
maintainer_email='[email protected]', | ||
license="MIT", | ||
url='https://github.com/sqlalchemy-redshift/sqlalchemy-redshift', | ||
packages=['sqlalchemy_redshift'], | ||
packages=['sqlalchemy_redshift', 'redshift_sqlalchemy'], | ||
package_data={'sqlalchemy_redshift': ['redshift-ssl-ca-cert.pem']}, | ||
install_requires=[ | ||
'psycopg2>=2.5', | ||
|