diff --git a/commitizen/defaults.py b/commitizen/defaults.py index f2447483e9..da029db87d 100644 --- a/commitizen/defaults.py +++ b/commitizen/defaults.py @@ -1,8 +1,12 @@ import pathlib +import sys from collections import OrderedDict from typing import Any, Dict, Iterable, List, MutableMapping, Optional, Tuple, Union -from typing_extensions import TypedDict +if sys.version_info < (3, 8): + from typing_extensions import TypedDict +else: + from typing import TypedDict # Type Questions = Iterable[MutableMapping[str, Any]] diff --git a/pyproject.toml b/pyproject.toml index 65b178e7c6..7369391f57 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,17 +42,8 @@ classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", - "Programming Language :: Python", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.6", - "Programming Language :: Python :: 3.7", - "Programming Language :: Python :: 3.8", - "Programming Language :: Python :: 3.9", - "Programming Language :: Python :: 3.10", - "Programming Language :: Python :: Implementation :: CPython", ] [tool.poetry.dependencies] @@ -60,17 +51,14 @@ python = "^3.6.2" questionary = "^1.4.0" decli = "^0.5.2" colorama = "^0.4.1" -termcolor = [ - { "version" = "^1.1", python = "< 3.7" }, - { "version" = ">= 1.1, < 3", python = ">= 3.7" }, -] +termcolor = ">=1.1,<3" packaging = ">=19" tomlkit = ">=0.5.3,<1.0.0" jinja2 = ">=2.10.3" pyyaml = ">=3.08" argcomplete = ">=1.12.1,<2.2" -typing-extensions = "^4.0.1" -charset-normalizer = ">=2.1.0,<3.1" +typing-extensions = { version = "^4.0.1", python = "<3.8" } +charset-normalizer = ">=2.1.0,<4" [tool.poetry.dev-dependencies] ipython = "^7.2"