Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 378a428

Browse files
authored
Merge pull request #684 from jakob-keller/dependencies
Relax runtime dependency specifications
2 parents fb0d1eb + f81f749 commit 378a428

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

‎commitizen/defaults.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
import pathlib
2+
import sys
23
from collections import OrderedDict
34
from typing import Any, Dict, Iterable, List, MutableMapping, Optional, Tuple, Union
45

5-
from typing_extensions import TypedDict
6+
if sys.version_info < (3, 8):
7+
from typing_extensions import TypedDict
8+
else:
9+
from typing import TypedDict
610

711
# Type
812
Questions = Iterable[MutableMapping[str, Any]]

‎pyproject.toml‎

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,35 +42,23 @@ classifiers = [
4242
"Development Status :: 5 - Production/Stable",
4343
"Environment :: Console",
4444
"Intended Audience :: Developers",
45-
"License :: OSI Approved :: MIT License",
4645
"Natural Language :: English",
4746
"Operating System :: OS Independent",
48-
"Programming Language :: Python",
49-
"Programming Language :: Python :: 3",
50-
"Programming Language :: Python :: 3.6",
51-
"Programming Language :: Python :: 3.7",
52-
"Programming Language :: Python :: 3.8",
53-
"Programming Language :: Python :: 3.9",
54-
"Programming Language :: Python :: 3.10",
55-
"Programming Language :: Python :: Implementation :: CPython",
5647
]
5748

5849
[tool.poetry.dependencies]
5950
python = "^3.6.2"
6051
questionary = "^1.4.0"
6152
decli = "^0.5.2"
6253
colorama = "^0.4.1"
63-
termcolor = [
64-
{ "version" = "^1.1", python = "< 3.7" },
65-
{ "version" = ">= 1.1, < 3", python = ">= 3.7" },
66-
]
54+
termcolor = ">=1.1,<3"
6755
packaging = ">=19"
6856
tomlkit = ">=0.5.3,<1.0.0"
6957
jinja2 = ">=2.10.3"
7058
pyyaml = ">=3.08"
7159
argcomplete = ">=1.12.1,<2.2"
72-
typing-extensions = "^4.0.1"
73-
charset-normalizer = ">=2.1.0,<3.1"
60+
typing-extensions = { version = "^4.0.1", python = "<3.8" }
61+
charset-normalizer = ">=2.1.0,<4"
7462

7563
[tool.poetry.dev-dependencies]
7664
ipython = "^7.2"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /