File tree 2 files changed +7
-11
lines changed
setuptools/tests/integration
2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -54,14 +54,6 @@ test = [
54
54
# for tools/finalize.py
55
55
' jaraco.develop >= 7.21; python_version >= "3.9" and sys_platform != "cygwin"' ,
56
56
" pytest-home >= 0.5" ,
57
- # pin mypy version so a new version doesn't suddenly cause the CI to fail,
58
- # until types-setuptools is removed from typeshed.
59
- # For help with static-typing issues, or mypy update, ping @Avasam
60
- " mypy==1.11.*" ,
61
- # No Python 3.11 dependencies require tomli, but needed for type-checking since we import it directly
62
- " tomli" ,
63
- # No Python 3.12 dependencies require importlib_metadata, but needed for type-checking since we import it directly
64
- " importlib_metadata" ,
65
57
" pytest-subprocess" ,
66
58
67
59
# workaround for pypa/setuptools#4333
@@ -134,6 +126,11 @@ type = [
134
126
" pytest-mypy" ,
135
127
136
128
# local
129
+
130
+ # pin mypy version so a new version doesn't suddenly cause the CI to fail,
131
+ # until types-setuptools is removed from typeshed.
132
+ # For help with static-typing issues, or mypy update, ping @Avasam
133
+ " mypy==1.11.*" ,
137
134
]
138
135
139
136
Original file line number Diff line number Diff line change @@ -202,13 +202,12 @@ def build_deps(package, sdist_file):
202
202
"Manually" install them, since pip will not install build
203
203
deps with `--no-build-isolation`.
204
204
"""
205
- import tomli as toml
206
-
207
205
# delay importing, since pytest discovery phase may hit this file from a
208
206
# testenv without tomli
207
+ from setuptools .compat .py310 import tomllib
209
208
210
209
archive = Archive (sdist_file )
211
- info = toml .loads (_read_pyproject (archive ))
210
+ info = tomllib .loads (_read_pyproject (archive ))
212
211
deps = info .get ("build-system" , {}).get ("requires" , [])
213
212
deps += EXTRA_BUILD_DEPS .get (package , [])
214
213
# Remove setuptools from requirements (and deduplicate)
You can’t perform that action at this time.
0 commit comments