jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/838848 )
Change subject: [setup] Ignore globals from loading into metadata dict ......................................................................
[setup] Ignore globals from loading into metadata dict
If no parameters are given for locals all key/value pairs are stored in the first mapping including __buildins__ which are the globals. To ignore then just pass None for globals and keep metadata mapping for locals.
Change-Id: I00caee679f5c5a92cc2673c420ac9d2368698db0 --- M setup.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/setup.py b/setup.py index 192de71..8057398 100755 --- a/setup.py +++ b/setup.py @@ -143,7 +143,7 @@ name = 'pywikibot' path = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(path, name, '__metadata__.py')) as f: - exec(f.read(), metadata) + exec(f.read(), None, metadata) assert metadata.__name__ == name