From 0c5682fce8c5c4e3404685797c485ba5933dfd57 Mon Sep 17 00:00:00 2001 From: Baiju Muthukadan Date: Thu, 7 Apr 2022 13:04:06 +0530 Subject: [PATCH] Add support for Python 3.8 Signed-off-by: Baiju Muthukadan --- .github/workflows/ci.yml | 2 +- setup.cfg | 6 +++--- src/pyservicebinding/binding.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a39156e..013f194 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,7 @@ jobs: fail-fast: false matrix: # Version from https://github.com/actions/python-versions/releases - python-version: ["3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v2 diff --git a/setup.cfg b/setup.cfg index fc9b9cb..e441580 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [metadata] name = pyservicebinding -version = 0.2.5 +version = 0.3.0 author = Baiju Muthukadan author_email = baiju.m.mail@gmail.com description = Kubernetes Service Binding Library for Python Applications @@ -14,7 +14,7 @@ url = https://github.com/baijum/pyservicebinding project_urls = Bug Tracker = https://github.com/baijum/pyservicebinding/issues classifiers = - Programming Language :: Python :: 3.9 + Programming Language :: Python :: 3.8 License :: OSI Approved :: Apache Software License Operating System :: OS Independent @@ -22,7 +22,7 @@ classifiers = package_dir = = src packages = find: -python_requires = >=3.9 +python_requires = >=3.8 install_requires = PyYAML tests_require = diff --git a/src/pyservicebinding/binding.py b/src/pyservicebinding/binding.py index 98d084b..db8edef 100644 --- a/src/pyservicebinding/binding.py +++ b/src/pyservicebinding/binding.py @@ -84,7 +84,7 @@ def __init__(self): raise ServiceBindingRootMissingError(msg) - def all_bindings(self) -> list[dict[str, str]]: + def all_bindings(self) -> typing.List[typing.Dict[str, str]]: """Get all bindings as a list of dictionaries - return empty list if no bindings found @@ -104,7 +104,7 @@ def all_bindings(self) -> list[dict[str, str]]: return l - def bindings(self, _type: str, provider: typing.Optional[str] = None) -> list[dict[str, str]]: + def bindings(self, _type: str, provider: typing.Optional[str] = None) -> typing.List[typing.Dict[str, str]]: """Get filtered bindings as a list of dictionaries - return empty dictionary if no binding found