Skip to content

Commit 3edb0c3

Browse files
committed
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.
1 parent 7a9fe3f commit 3edb0c3

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

setup.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
import os
21
from setuptools import setup
3-
from setuptools.config import read_configuration
42

5-
this_dir = os.path.dirname(__file__)
6-
cfg = read_configuration(os.path.join(this_dir, 'setup.cfg'))
7-
cfg["options"].update(cfg["metadata"])
8-
cfg = cfg["options"]
9-
10-
setup(**cfg)
3+
setup()

0 commit comments

Comments
 (0)