summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-01-21 10:22:16 +0100
committerMichał Górny <mgorny@gentoo.org>2023-01-21 10:22:16 +0100
commitc3441cb149f27d283d51ec4f6cecd6a5052de87a (patch)
treee53a5fe687e7b234122d861563b1d51264875fed
parenta81b1303544208467235212ff8a39755e88cee7f (diff)
downloadpython-setuptools-git-c3441cb149f27d283d51ec4f6cecd6a5052de87a.tar.gz
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' ```
-rw-r--r--setuptools/tests/test_dist_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/tests/test_dist_info.py b/setuptools/tests/test_dist_info.py
index 45b0d7fb..2ed79076 100644
--- a/setuptools/tests/test_dist_info.py
+++ b/setuptools/tests/test_dist_info.py
@@ -142,7 +142,8 @@ class TestWheelCompatibility:
version = {version}
[options]
- install_requires = foo>=12; sys_platform != "linux"
+ install_requires =
+ foo>=12; sys_platform != "linux"
[options.extras_require]
test = pytest