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.
This commit is contained in:
Pablo Woolvett 2021-02-02 16:37:10 -03:00
parent ac30e71c03
commit 15c3890bd8
1 changed files with 8 additions and 4 deletions

View File

@ -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