Update Python version and add Python 3.9 support

This commit is contained in:
2024-03-01 15:15:19 -05:00
parent 81b45ad380
commit d2ee721e4a
3 changed files with 15 additions and 14 deletions
+1 -1
View File
@@ -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
+12 -12
View File
@@ -183,8 +183,8 @@ class NeonAPI:
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.
@@ -297,8 +297,8 @@ class NeonAPI:
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.
@@ -400,8 +400,8 @@ class NeonAPI:
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.
@@ -741,8 +741,8 @@ class NeonAPI:
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.
@@ -778,10 +778,10 @@ class NeonAPI:
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.
+2 -1
View File
@@ -17,7 +17,7 @@ DESCRIPTION = "An API Client for the Neon API."
URL = "https://github.com/kennethreitz/neon-api-python"
EMAIL = "me@kennethreitz.org"
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?
@@ -117,6 +117,7 @@ setup(
"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",