Skip to content

Commit

Permalink
Update Python version and add Python 3.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethreitz committed Mar 1, 2024
1 parent 81b45ad commit d2ee721
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
python-version: ["3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
24 changes: 12 additions & 12 deletions neon_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def projects(
self,
*,
shared: bool = False,
cursor: str | None = None,
limit: int | None = None,
cursor: str = None,
limit: int = None,
) -> t.List[t.Dict[str, t.Any]]:
"""Get a list of projects. If shared is True, get a list of shared projects.
Expand Down Expand Up @@ -297,8 +297,8 @@ def branches(
self,
project_id: str,
*,
cursor: str | None = None,
limit: int | None = None,
cursor: str = None,
limit: int = None,
) -> t.Dict[str, t.Any]:
"""Get a list of branches.
Expand Down Expand Up @@ -400,8 +400,8 @@ def databases(
project_id: str,
branch_id: str,
*,
cursor: str | None = None,
limit: int | None = None,
cursor: str = None,
limit: int = None,
) -> t.List[t.Dict[str, t.Any]]:
"""Get a list of databases.
Expand Down Expand Up @@ -741,8 +741,8 @@ def operations(
self,
project_id: str,
*,
cursor: str | None = None,
limit: int | None = None,
cursor: str = None,
limit: int = None,
) -> t.Dict[str, t.Any]:
"""Get a list of operations.
Expand Down Expand Up @@ -778,10 +778,10 @@ def operation(self, project_id: str, operation_id: str) -> t.Dict[str, t.Any]:
def consumption(
self,
*,
cursor: str | None = None,
limit: int | None = None,
from_date: datetime | str | None = None,
to_date: datetime | str | None = None,
cursor: str = None,
limit: int = None,
from_date: datetime = None,
to_date: datetime = None,
) -> t.Dict[str, t.Any]:
"""Experimental — get a list of consumption metrics for all projects.
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
URL = "https://github.com/kennethreitz/neon-api-python"
EMAIL = "[email protected]"
AUTHOR = "Kenneth Reitz"
REQUIRES_PYTHON = ">=3.10.0"
REQUIRES_PYTHON = ">=3.9.0"
VERSION = "0.1.1"

# What packages are required for this module to be executed?
Expand Down Expand Up @@ -117,6 +117,7 @@ def run(self):
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand Down

0 comments on commit d2ee721

Please sign in to comment.