diff --git a/openconnect_sso/__init__.py b/openconnect_sso/__init__.py index 1d03df9..56d0af9 100644 --- a/openconnect_sso/__init__.py +++ b/openconnect_sso/__init__.py @@ -1,2 +1,2 @@ -__version__ = "0.3.2" +__version__ = "0.3.3" __description__ = "Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs" diff --git a/openconnect_sso/browser/browser.py b/openconnect_sso/browser/browser.py index a7054e1..8ce9338 100644 --- a/openconnect_sso/browser/browser.py +++ b/openconnect_sso/browser/browser.py @@ -30,13 +30,13 @@ async def spawn(self): stdout=asyncio.subprocess.PIPE ) - self.updater = asyncio.create_task(self._update_status()) + self.updater = asyncio.ensure_future(self._update_status()) self.running = True def stop(_task): self.running = False - asyncio.create_task(self.browser_proc.wait()).add_done_callback(stop) + asyncio.ensure_future(self.browser_proc.wait()).add_done_callback(stop) async def _update_status(self): assert self.running diff --git a/pyproject.toml b/pyproject.toml index ae51cf3..b683464 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "openconnect-sso" -version = "0.3.2" +version = "0.3.3" description = "Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication to Cisco SSL-VPNs" authors = ["László Vaskó "] readme = "README.md" diff --git a/releasenotes/notes/attrs-version-relaxed-a1a4c43f88c7ca98.yaml b/releasenotes/notes/attrs-version-relaxed-a1a4c43f88c7ca98.yaml index 7e0e344..6d62572 100644 --- a/releasenotes/notes/attrs-version-relaxed-a1a4c43f88c7ca98.yaml +++ b/releasenotes/notes/attrs-version-relaxed-a1a4c43f88c7ca98.yaml @@ -1,6 +1,6 @@ --- fixes: - | - Relaxed version requirements of `attrs` package. As `attrs` is also used - as a transitive dependency being too restrictive of its version can break - dependency resolution during installation. + Relaxed version requirements of ``attrs`` package. As ``attrs`` is also + used as a transitive dependency being too restrictive of its version can + break dependency resolution during installation. diff --git a/releasenotes/notes/python-3.6_compatibility-3c6eeb53de22ab20.yaml b/releasenotes/notes/python-3.6_compatibility-3c6eeb53de22ab20.yaml new file mode 100644 index 0000000..344ce63 --- /dev/null +++ b/releasenotes/notes/python-3.6_compatibility-3c6eeb53de22ab20.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Python 3.6 compatibilty has been fixedhowever The problem was caused by the + usage of ``asyncio.create_task(coro)``. Its usage was replaced with + ``asyncio.ensure_future(core)``.