diff --git a/htrvx/testing.py b/htrvx/testing.py index 83b7807..d892b47 100644 --- a/htrvx/testing.py +++ b/htrvx/testing.py @@ -1,5 +1,9 @@ from collections import defaultdict -from typing import Iterable, List, Literal, Dict, Optional, Tuple, Union, IO +from typing import Iterable, List, Dict, Optional, Tuple, Union, IO +try: + from typing import Literal +except ImportError: + from typing_extensions import Literal import click from lxml import etree diff --git a/setup.py b/setup.py index 54aa7af..fa07ad7 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ URL = 'https://github.com/htr-united/htrvx' AUTHOR = 'Thibault Clérice & Ariane Pinche' REQUIRES_PYTHON = '>=3.6.0' -VERSION = "0.0.13" +VERSION = "0.0.14" # What packages are required for this module to be executed? @@ -28,8 +28,10 @@ # What packages are optional? EXTRAS = { - # 'fancy feature': ['django'], + ":python_version<'3.8'": ["typing_extensions"] } + # 'fancy feature': ['django'], +#} # The rest you shouldn't have to touch too much :) # ------------------------------------------------