Skip to content

Commit

Permalink
Added support for python 3.11
Browse files Browse the repository at this point in the history
Close #827
  • Loading branch information
tpazderka committed Nov 1, 2022
1 parent 8bc957c commit 2735921
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python: [3.7, 3.8, 3.9, "3.10"]
python: [3.7, 3.8, 3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ The format is based on the [KeepAChangeLog] project.

## Unreleased

### Changed
- [#827] Added support for python 3.11

## Removed

- [#820] Removed Client.grant_from_state method.

[#820]: https://github.com/OpenIDC/pyoidc/pull/820
[#827]: https://github.com/OpenIDC/pyoidc/issues/827

## 1.4.0 [2022-05-23]

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,9 @@ def run_tests(self):
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules"],
python_requires='~=3.5',
python_requires='~=3.7',
extras_require={
'develop': ["cherrypy==3.2.4", "pyOpenSSL"],
'testing': tests_requires,
Expand Down
7 changes: 4 additions & 3 deletions src/oic/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
If you need to add some settings, make sure that you settings class inherits from the appropriate class in this module.
"""
import typing
from typing import Optional
from typing import Tuple
from typing import Union

Expand Down Expand Up @@ -44,7 +45,7 @@ class PyoidcSettings:
def __init__(
self,
verify_ssl: Union[bool, str] = True,
client_cert: Union[str, Tuple[str, str]] = None,
client_cert: Union[None, str, Tuple[str, str]] = None,
timeout: Union[float, Tuple[float, float]] = 5,
):
self.verify_ssl = verify_ssl
Expand Down Expand Up @@ -89,9 +90,9 @@ class ClientSettings(PyoidcSettings):
def __init__(
self,
verify_ssl: Union[bool, str] = True,
client_cert: Union[str, Tuple[str, str]] = None,
client_cert: Union[None, str, Tuple[str, str]] = None,
timeout: Union[float, Tuple[float, float]] = 5,
requests_session: requests.Session = None,
requests_session: Optional[requests.Session] = None,
):
super().__init__(
verify_ssl=verify_ssl, client_cert=client_cert, timeout=timeout
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{37,38,39,310},docs,quality
envlist = py{37,38,39,310,311},docs,quality
skip_missing_interpreters = True

[testenv]
Expand Down

0 comments on commit 2735921

Please sign in to comment.