Skip to content

Commit ea7a1a8

Browse files
committed
Shortened dep ver specifier syntax
1 parent 5be84c3 commit ea7a1a8

7 files changed

Lines changed: 36 additions & 36 deletions

File tree

find-project-root/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel",
55
]
66
build-backend = "setuptools.build_meta"
@@ -18,7 +18,7 @@ license-files = [
1818
"docs/LICENSE.md",
1919
]
2020
dependencies = [
21-
"project-markers>=1.0.0,<2",
21+
"project-markers~=1.0.2",
2222
]
2323
requires-python = ">=2.6,<4"
2424
keywords = [
@@ -73,6 +73,6 @@ Repository = "https://github.com/adamlui/python-utils"
7373
[project.optional-dependencies]
7474
dev = [
7575
"nox>=2026.2.9",
76-
"tomli>=2.0.0,<3",
77-
"tomli-w>=0.1.0,<2",
76+
"tomli~=2.0.0",
77+
"tomli-w~=0.1.0",
7878
]

latin-locales/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel",
55
]
66
build-backend = "setuptools.build_meta"
@@ -75,8 +75,8 @@ Repository = "https://github.com/adamlui/python-utils"
7575
[project.optional-dependencies]
7676
dev = [
7777
"nox>=2026.2.9",
78-
"tomli>=2.0.0,<3",
79-
"tomli-w>=0.1.0,<2",
78+
"tomli~=2.0.0",
79+
"tomli-w~=0.1.0",
8080
]
8181

8282
[tool.setuptools.packages.find]

non-latin-locales/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel",
55
]
66
build-backend = "setuptools.build_meta"
@@ -76,8 +76,8 @@ Repository = "https://github.com/adamlui/python-utils"
7676
[project.optional-dependencies]
7777
dev = [
7878
"nox>=2026.2.9",
79-
"tomli>=2.0.0,<3",
80-
"tomli-w>=0.1.0,<2",
79+
"tomli~=2.0.0",
80+
"tomli-w~=0.1.0",
8181
]
8282

8383
[tool.setuptools.packages.find]

project-markers/pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel"
55
]
66
build-backend = "setuptools.build_meta"
@@ -65,8 +65,8 @@ Repository = "https://github.com/adamlui/python-utils"
6565
[project.optional-dependencies]
6666
dev = [
6767
"nox>=2026.2.9",
68-
"tomli>=2.0.0,<3",
69-
"tomli-w>=0.1.0,<2"
68+
"tomli~=2.0.0",
69+
"tomli-w~=0.1.0"
7070
]
7171

7272
[tool.setuptools.packages.find]

remove-json-keys/pyproject.toml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel",
55
]
66
build-backend = "setuptools.build_meta"
@@ -18,11 +18,11 @@ license-files = [
1818
"docs/LICENSE.md",
1919
]
2020
dependencies = [
21-
"colorama>=0.4.6,<1 ; platform_system == 'Windows'",
22-
"find-project-root>=1.0.1,<2",
23-
"json5>=0.9.0,<1",
24-
"non-latin-locales>=1.0.0,<2",
25-
"ucs-detect>=2.0.2,<3",
21+
"colorama~=0.4.6 ; platform_system == 'Windows'",
22+
"find-project-root~=1.0.1",
23+
"json5~=0.9.0",
24+
"non-latin-locales~=1.0.0",
25+
"ucs-detect~=2.0.2",
2626
]
2727
requires-python = ">=3.8,<4"
2828
keywords = [
@@ -74,9 +74,9 @@ remove-json = "remove_json_keys.__main__:main"
7474
[project.optional-dependencies]
7575
dev = [
7676
"nox>=2026.2.9",
77-
"tomli>=2.0.0,<3",
78-
"tomli-w>=0.1.0,<2",
79-
"translate-messages>=1.8.1,<2",
77+
"tomli~=2.0.0",
78+
"tomli-w~=0.1.0",
79+
"translate-messages~=1.8.1",
8080
]
8181

8282
[tool.setuptools.packages.find]

requirements-dev.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pre-commit>=4.5.1,<5
2-
ruff>=0.15.2,<1
3-
yamllint>=1.38.0,<2
4-
zipp>=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability
1+
pre-commit~=4.5.1
2+
ruff~=0.15.2
3+
yamllint~=1.38.0
4+
zipp~=3.19.1 # not directly required, pinned by Snyk to avoid a vulnerability

translate-messages/pyproject.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=82.0.0,<83",
3+
"setuptools~=82.0.0",
44
"wheel",
55
]
66
build-backend = "setuptools.build_meta"
@@ -18,12 +18,12 @@ license-files = [
1818
"docs/LICENSE.md",
1919
]
2020
dependencies = [
21-
"colorama>=0.4.6,<1 ; platform_system == 'Windows'",
22-
"find-project-root>=1.0.1,<2",
23-
"json5>=0.9.0,<1",
24-
"non-latin-locales>=1.0.0,<2",
25-
"translate>=3.8.0,<4",
26-
"ucs-detect>=2.0.2,<3",
21+
"colorama~=0.4.6 ; platform_system == 'Windows'",
22+
"find-project-root~=1.0.1",
23+
"json5~=0.9.0",
24+
"non-latin-locales~=1.0.0",
25+
"translate~=3.8.0",
26+
"ucs-detect~=2.0.2",
2727
]
2828
requires-python = ">=3.8,<4"
2929
keywords = [
@@ -86,9 +86,9 @@ translate-messages = "translate_messages.__main__:main"
8686
[project.optional-dependencies]
8787
dev = [
8888
"nox>=2026.2.9",
89-
"remove-json-keys>=1.8.1,<2",
90-
"tomli>=2.0.0,<3",
91-
"tomli-w>=0.1.0,<2",
89+
"remove-json-keys~=1.8.1",
90+
"tomli~=2.0.0",
91+
"tomli-w~=0.1.0",
9292
]
9393

9494
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)