Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}

Expand All @@ -36,7 +36,7 @@ jobs:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: dist/*
env:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/run-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
Expand Down Expand Up @@ -79,10 +79,10 @@ jobs:
name: SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v5.1.0
uses: SonarSource/sonarqube-scan-action@v5.3.1
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 2 additions & 2 deletions pydynamodb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
if TYPE_CHECKING:
from .connection import Connection

__version__: str = "0.7.2"
__version__: str = "0.7.3"

# Globals https://www.python.org/dev/peps/pep-0249/#globals
apilevel: str = "2.0"
Expand Down Expand Up @@ -51,7 +51,7 @@ def __hash__(self):

def connect(*args, **kwargs) -> "Connection":
from .connection import Connection
from .superset_dynamodb.pydnamodb import SupersetCursor
from .superset_dynamodb.pydynamodb import SupersetCursor

connector = kwargs.get("connector", None)
if connector is not None and connector.lower() == "superset":
Expand Down
27 changes: 16 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}

setup(
name="PyDynamoDB",
name="pydynamodb",
version=VERSION,
description="Python DB API 2.0 (PEP 249) client for Amazon DynamoDB",
long_description=open(readme).read(),
Expand All @@ -31,17 +31,17 @@
author="Peng Ren",
author_email="passren9099@hotmail.com",
license="MIT",
python_requires=">=3.7",
python_requires=">=3.8",
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
'Programming Language :: Python',
"Programming Language :: Python",
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: OS Independent",
"License :: OSI Approved :: MIT License",
],
Expand All @@ -51,9 +51,14 @@
"Source": "https://github.com/passren/PyDynamoDB",
"Tracker": "https://github.com/passren/PyDynamoDB/issues",
},
packages=find_packages(include=[
"pydynamodb", "pydynamodb.sql", "pydynamodb.sqlalchemy_dynamodb", "pydynamodb.superset_dynamodb"
]),
packages=find_packages(
include=[
"pydynamodb",
"pydynamodb.sql",
"pydynamodb.sqlalchemy_dynamodb",
"pydynamodb.superset_dynamodb",
]
),
include_package_data=True,
install_requires=install_requires,
extras_require=extras_require,
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def dict_cursor(request):

@pytest.fixture
def superset_cursor(request):
from pydynamodb.superset_dynamodb.pydnamodb import SupersetCursor
from pydynamodb.superset_dynamodb.pydynamodb import SupersetCursor

yield from _cursor(SupersetCursor, request)

Expand Down