Here is the answer from uWSGI developers:
just place each of them (one per line) in a text file in the form
VAR=VALUE
then in uWSGI config
[uwsgi]
for-readline = yourfile
env = %(_)
endfor =
This also works with yml config files:
for-readline: filename
env: %(_)
endfor: