Skip to content

Commit 8fdd582

Browse files
committed
style(deps): improve readability & flexibility of dependencies
1 parent 9210933 commit 8fdd582

File tree

1 file changed

+34
-27
lines changed

1 file changed

+34
-27
lines changed

pyproject.toml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Ref: https://packaging.python.org/en/latest/specifications/declaring-project-metadata/
22
# and https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
33
[build-system]
4-
requires = ["setuptools>=61.0.0", "wheel"]
4+
requires = ["setuptools ~= 61.0.0", "wheel"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
@@ -22,18 +22,18 @@ classifiers = [
2222
readme = "README.rst"
2323
authors = [{ name = "Rolf Erik Lekang", email = "[email protected]" }]
2424
dependencies = [
25-
"click>=8,<9",
26-
"click-option-group~=0.5",
27-
"gitpython>=3.0.8,<4",
28-
"requests>=2.25,<3",
29-
"jinja2>=3.1.2,<4",
30-
"python-gitlab>=2,<5",
31-
"tomlkit~=0.11",
32-
"dotty-dict>=1.3.0,<2",
33-
"importlib-resources>=5.7,<7",
34-
"pydantic>=2,<3",
35-
"rich>=12.5.1",
36-
"shellingham>=1.5.0.post1",
25+
"click ~= 8.0",
26+
"click-option-group ~= 0.5",
27+
"gitpython ~= 3.0",
28+
"requests ~= 2.25",
29+
"jinja2 ~= 3.1",
30+
"python-gitlab ~= 4.0",
31+
"tomlkit ~= 0.11",
32+
"dotty-dict ~= 1.3",
33+
"importlib-resources ~= 6.0",
34+
"pydantic ~= 2.0",
35+
"rich ~= 12.5",
36+
"shellingham ~= 1.5",
3737
]
3838

3939
[project.scripts]
@@ -49,27 +49,34 @@ repository = "http://github.com/python-semantic-release/python-semantic-release.
4949

5050
[project.optional-dependencies]
5151
docs = [
52-
"Sphinx<=6.0.0",
52+
"Sphinx ~= 6.0",
5353
"sphinxcontrib-apidoc == 0.5.0",
5454
"sphinx-autobuild == 2024.2.4",
55-
"furo>=2023.3.27",
55+
"furo ~= 2023.3",
5656
]
5757
test = [
58-
"coverage[toml]>=6,<8",
59-
"pytest>=7,<8",
60-
"pytest-env~=1.0",
61-
"pytest-xdist>=2,<4",
62-
"pytest-mock>=3,<4",
63-
"pytest-lazy-fixture~=0.6.3",
58+
"coverage[toml] ~= 7.0",
59+
"pytest ~= 7.0",
60+
"pytest-env ~= 1.0",
61+
"pytest-xdist ~= 3.0",
62+
"pytest-mock ~= 3.0",
63+
"pytest-lazy-fixture ~= 0.6.3",
6464
"pytest-cov ~= 5.0",
65-
"pytest-pretty>=1.2.0,<2",
66-
"pytest-clarity>=1.0.1",
65+
"pytest-pretty ~= 1.2",
66+
"pytest-clarity ~= 1.0",
6767
"responses ~= 0.24.0",
68-
"requests-mock>=1.10.0,<2",
69-
"types-pytest-lazy-fixture>=0.6.3.3",
68+
"requests-mock ~= 1.10",
69+
"types-pytest-lazy-fixture ~= 0.6.3",
70+
]
71+
dev = [
72+
"pre-commit ~= 3.5",
73+
"tox ~= 4.11",
74+
"ruff == 0.3.4"
75+
]
76+
mypy = [
77+
"mypy == 1.8.0",
78+
"types-requests ~= 2.31.0"
7079
]
71-
dev = ["pre-commit", "tox", "ruff==0.3.4"]
72-
mypy = ["mypy", "types-requests"]
7380

7481
[tool.pytest.ini_options]
7582
env = [

0 commit comments

Comments
 (0)