Skip to content

Commit

Permalink
Add support for Python 3.8
Browse files Browse the repository at this point in the history
Signed-off-by: Baiju Muthukadan <[email protected]>
  • Loading branch information
baijum committed Apr 7, 2022
1 parent de7e6b0 commit 0c5682f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [email protected]
description = Kubernetes Service Binding Library for Python Applications
Expand All @@ -14,15 +14,15 @@ 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

[options]
package_dir =
= src
packages = find:
python_requires = >=3.9
python_requires = >=3.8
install_requires =
PyYAML
tests_require =
Expand Down
4 changes: 2 additions & 2 deletions src/pyservicebinding/binding.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0c5682f

Please sign in to comment.