Skip to content

Commit d2ee721

Browse files
committedMar 1, 2024
Update Python version and add Python 3.9 support
1 parent 81b45ad commit d2ee721

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed
 

‎.github/workflows/pytest.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: ["3.11", "3.12"]
11+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1212

1313
steps:
1414
- uses: actions/checkout@v4

‎neon_api/client.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ def projects(
183183
self,
184184
*,
185185
shared: bool = False,
186-
cursor: str | None = None,
187-
limit: int | None = None,
186+
cursor: str = None,
187+
limit: int = None,
188188
) -> t.List[t.Dict[str, t.Any]]:
189189
"""Get a list of projects. If shared is True, get a list of shared projects.
190190
@@ -297,8 +297,8 @@ def branches(
297297
self,
298298
project_id: str,
299299
*,
300-
cursor: str | None = None,
301-
limit: int | None = None,
300+
cursor: str = None,
301+
limit: int = None,
302302
) -> t.Dict[str, t.Any]:
303303
"""Get a list of branches.
304304
@@ -400,8 +400,8 @@ def databases(
400400
project_id: str,
401401
branch_id: str,
402402
*,
403-
cursor: str | None = None,
404-
limit: int | None = None,
403+
cursor: str = None,
404+
limit: int = None,
405405
) -> t.List[t.Dict[str, t.Any]]:
406406
"""Get a list of databases.
407407
@@ -741,8 +741,8 @@ def operations(
741741
self,
742742
project_id: str,
743743
*,
744-
cursor: str | None = None,
745-
limit: int | None = None,
744+
cursor: str = None,
745+
limit: int = None,
746746
) -> t.Dict[str, t.Any]:
747747
"""Get a list of operations.
748748
@@ -778,10 +778,10 @@ def operation(self, project_id: str, operation_id: str) -> t.Dict[str, t.Any]:
778778
def consumption(
779779
self,
780780
*,
781-
cursor: str | None = None,
782-
limit: int | None = None,
783-
from_date: datetime | str | None = None,
784-
to_date: datetime | str | None = None,
781+
cursor: str = None,
782+
limit: int = None,
783+
from_date: datetime = None,
784+
to_date: datetime = None,
785785
) -> t.Dict[str, t.Any]:
786786
"""Experimental — get a list of consumption metrics for all projects.
787787

‎setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
URL = "https://github.com/kennethreitz/neon-api-python"
1818
EMAIL = "me@kennethreitz.org"
1919
AUTHOR = "Kenneth Reitz"
20-
REQUIRES_PYTHON = ">=3.10.0"
20+
REQUIRES_PYTHON = ">=3.9.0"
2121
VERSION = "0.1.1"
2222

2323
# What packages are required for this module to be executed?
@@ -117,6 +117,7 @@ def run(self):
117117
"License :: OSI Approved :: Apache Software License",
118118
"Programming Language :: Python",
119119
"Programming Language :: Python :: 3",
120+
"Programming Language :: Python :: 3.9",
120121
"Programming Language :: Python :: 3.10",
121122
"Programming Language :: Python :: 3.11",
122123
"Programming Language :: Python :: 3.12",

0 commit comments

Comments
 (0)
Please sign in to comment.