From 3edb0c35c285ce7e44ddbe56eb3544e4d981ad8d Mon Sep 17 00:00:00 2001 From: dgelessus Date: Mon, 27 Apr 2020 22:00:08 +0200 Subject: [PATCH] Fix setup.py to work with setuptools 41.4.0 and later Manually parsing setup.cfg and passing the parsed data into the setup function is not officially supported by setuptools (see pypa/setuptools#1869) and is also unnecessary, because the setup function will automatically read the relevant data from setup.cfg. --- setup.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/setup.py b/setup.py index 3b29c93..6068493 100755 --- a/setup.py +++ b/setup.py @@ -1,10 +1,3 @@ -import os from setuptools import setup -from setuptools.config import read_configuration -this_dir = os.path.dirname(__file__) -cfg = read_configuration(os.path.join(this_dir, 'setup.cfg')) -cfg["options"].update(cfg["metadata"]) -cfg = cfg["options"] - -setup(**cfg) +setup()