From 15c3890bd81a1fe9817c96a7295a30fe2c96a515 Mon Sep 17 00:00:00 2001 From: Pablo Woolvett Date: Tue, 2 Feb 2021 16:37:10 -0300 Subject: [PATCH] build: No oneliners in [options.extras_require] Fix `setup.cfg` so that the resulting `METADATA` when generating wheels contains correctly (not split) `Requires-Dist` entries. Before: Provides-Extra: angle Requires-Dist: kivy-deps.angle (~=0.3.0) ; extra == 'angle' Requires-Dist: sys-platform (=="win32") ; extra == 'angle' After: Provides-Extra: angle Requires-Dist: kivy-deps.angle (~=0.3.0) ; (sys_platform == "win32") and extra == 'angle' The same goes for gstreamer, angle, sdl2, and glew. --- setup.cfg | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index 580120071..3eabfe88d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -71,10 +71,14 @@ full = kivy_deps.glew~=0.3.0; sys_platform == "win32" ffpyplayer; sys_platform == "linux" or sys_platform == "darwin" pypiwin32; sys_platform == "win32" -gstreamer = kivy_deps.gstreamer~=0.3.1; sys_platform == "win32" -angle = kivy_deps.angle~=0.3.0; sys_platform == "win32" -sdl2 = kivy_deps.sdl2~=0.3.1; sys_platform == "win32" -glew = kivy_deps.glew~=0.3.0; sys_platform == "win32" +gstreamer = + kivy_deps.gstreamer~=0.3.1; sys_platform == "win32" +angle = + kivy_deps.angle~=0.3.0; sys_platform == "win32" +sdl2 = + kivy_deps.sdl2~=0.3.1; sys_platform == "win32" +glew = + kivy_deps.glew~=0.3.0; sys_platform == "win32" [flake8] ignore = E125,E126,E127,E128,E402,E741,E731,W503,F401,W504,F841,E722