-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support SQLAlchemy 2.0 #84
base: master
Are you sure you want to change the base?
Changes from all commits
220d092
66e3941
7e0854a
c94c862
db58232
407f7c3
dc7786e
b45a30c
7fcb4c1
a951949
389b17c
debf911
a0dea62
d7d2246
526375f
39f54fc
bcd4848
73bed5e
9fd5f99
1865f0d
bef9e82
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,8 @@ __pycache__/ | |
.coverage.* | ||
.cache | ||
.tox | ||
|
||
venv | ||
.venv | ||
.idea | ||
build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
3.7.17 | ||
3.8.18 | ||
3.9.18 | ||
3.10.13 | ||
3.11.7 | ||
3.12.1 | ||
Comment on lines
+1
to
+6
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I locally use pyenv and thought this would be useful to specify. Happy to remove if this muddies the waters for tooling. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,15 @@ | |
'dev': [ | ||
'pytest>=4.6.9', | ||
'coverage~=5.0.4', | ||
'sqlalchemy-utils>=0.37', | ||
'sqlalchemy-utils>=0.38.3', | ||
'flake8', | ||
'restructuredtext-lint', | ||
'Pygments', | ||
'coverage-conditional-plugin', | ||
'tox~=3.28' | ||
], | ||
'mysql': ['mysql-connector-python-rf==2.2.2'], | ||
'postgresql': ['psycopg2==2.8.4'], | ||
'mysql': ['mysql-connector-python-rf>=2.2.2'], | ||
'postgresql': ['psycopg2>=2.8.4'], | ||
Comment on lines
-35
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't exactly recall the Python version that was building wheels. I didn't think the versions were all that important for validating proper execution. I can look into this deeper if necessary. |
||
}, | ||
zip_safe=True, | ||
license='Apache License, Version 2.0', | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,7 +131,7 @@ def connection(db_uri, db_engine_options, is_postgresql): | |
|
||
yield connection | ||
|
||
Base.metadata.drop_all() | ||
Base.metadata.drop_all(engine) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SA 2.x compatibility |
||
destroy_database(db_uri) | ||
|
||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer necessary since this is now fully encoded in tox.ini.