Skip to content

Commit eeffed7

Browse files
committed
Support sqlalchemy 2.x
1 parent 7ac4b03 commit eeffed7

5 files changed

Lines changed: 398 additions & 17 deletions

File tree

.github/workflows/run-test.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ jobs:
3434
sudo apt-get install -y python3-dev
3535
pip install boto3
3636
pip install tenacity
37-
pip install "sqlalchemy>=1.0.0,<2.0.0"
3837
pip install pyparsing
3938
pip install sqlean.py
4039
- name: black
@@ -50,12 +49,22 @@ jobs:
5049
curl -O https://s3.us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz
5150
tar xzf ./dynamodb_local_latest.tar.gz
5251
nohup java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb &
53-
- name: Run test with pytest
52+
- name: Install sqlalchemy 1.x
53+
run: |
54+
pip install "sqlalchemy>=1.0.0,<2.0.0"
55+
- name: Run test with pytest for sqlalchemy 1.x
5456
run: |
5557
pip install pytest
5658
pip install pytest-cov
5759
pip install moto[sts]==4.2.0
5860
pytest --cov=pydynamodb --cov-report=xml tests/
61+
- name: Install sqlalchemy 2.x
62+
run: |
63+
pip uninstall -y sqlalchemy
64+
pip install "sqlalchemy>=2.0.0"
65+
- name: Run test with pytest for sqlalchemy 2.x
66+
run: |
67+
pytest --cov=pydynamodb --cov-report=xml tests/
5968
- name: Upload test coverage
6069
uses: codecov/codecov-action@v4
6170
env:

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Dependencies
8585

8686
* SQLAlchemy (The ORM Toolkit for Python, only required if using PyDynamoDB Dialect)
8787

88-
- SQLAlchemy >= 1.0.0, < 2.0.0
88+
- SQLAlchemy >= 1.0.0
8989

9090
* Pyparsing (The approach to creating and executing simple grammars)
9191

pydynamodb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
if TYPE_CHECKING:
77
from .connection import Connection
88

9-
__version__: str = "0.6.3"
9+
__version__: str = "0.7.0"
1010

1111
# Globals https://www.python.org/dev/peps/pep-0249/#globals
1212
apilevel: str = "2.0"

0 commit comments

Comments
 (0)