Fix broken import for python 3.10.12
patches/lib/python3.10/site-packages/sphinx/util/typing.py/patch
----------------------------------------------------------------
o Imports changed again for python v3.10.12, define Union from typing.
o Patch fixed broken 'make test' target for local dev use.
Makefile
--------
o Added venv install dependencies for targets lint and linkcheck.
o Install dependent patched virtual env for named targets.
Change-Id: Id0681bcd758259efed45d943ea4d316bbd8d4354
diff --git a/patches/lib/python3.10/site-packages/sphinx/util/typing.py/patch b/patches/lib/python3.10/site-packages/sphinx/util/typing.py/patch
index d049e3b..da24cd5 100644
--- a/patches/lib/python3.10/site-packages/sphinx/util/typing.py/patch
+++ b/patches/lib/python3.10/site-packages/sphinx/util/typing.py/patch
@@ -1,18 +1,17 @@
---- staging/lib/python3.10/site-packages/sphinx/util/typing.py 2022-11-28 06:22:14.637278053 -0500
-+++ venv_docs/lib/python3.10/site-packages/sphinx/util/typing.py 2022-11-28 06:34:36.246702890 -0500
-@@ -34,15 +34,7 @@
+--- staging/lib/python3.10/site-packages/sphinx/util/typing.py 2023-09-14 16:25:24.179214865 -0400
++++ .venv/lib/python3.10/site-packages/sphinx/util/typing.py 2023-09-14 16:22:16.545588690 -0400
+@@ -34,14 +34,7 @@
return ref._eval_type(globalns, localns)
if sys.version_info > (3, 10):
-
-- try: # ver >= 3.10.6
-- from types import UnionType as types_Union
+- try: # ver >= 3.10.12
+- from typing import Union as types_Union
- except ImportError:
-- try: # ver < 3.10.6
+- try: # ver >= 3.10.6
- from types import Union as types_Union
- except ImportError:
- types_Union = None
--
+ from types import Union as types_Union
else:
types_Union = None