Skip to content

Commit c3441cb

Browse files
committed
Fix dependency syntax error in test_dist_info
Fix the install_requires used in test_dist_info to use the dangling syntax, in order to correctly handle markers. This fixes syntax error when parsed by packaging-22.0+, as well as setuptools warning: ``` UserWarning: One of the parsed requirements in `install_requires` looks like a valid environment marker: \'sys_platform != "linux"\' Make sure that the config is correct and check https://setuptools.pypa.io/en/latest/userguide/declarative_config.html#opt-2 warnings.warn(msg, UserWarning)\n' ```
1 parent a81b130 commit c3441cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

setuptools/tests/test_dist_info.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ class TestWheelCompatibility:
142142
version = {version}
143143
144144
[options]
145-
install_requires = foo>=12; sys_platform != "linux"
145+
install_requires =
146+
foo>=12; sys_platform != "linux"
146147
147148
[options.extras_require]
148149
test = pytest

0 commit comments

Comments
 (0)