Commit 69130241 authored by idle sign's avatar idle sign

Metadata and options are now could be set in setup.cfg (see #394).

parent 7df349d0
......@@ -19,6 +19,7 @@ from pkg_resources.extern import packaging
from setuptools.depends import Require
from setuptools import windows_support
from setuptools.monkey import get_unpatched
from setuptools.config import ConfigMetadataHandler, ConfigOptionsHandler
import pkg_resources
......@@ -342,6 +343,16 @@ class Distribution(_Distribution):
if getattr(self, 'python_requires', None):
self.metadata.python_requires = self.python_requires
def parse_config_files(self, filenames=None):
"""Parses configuration files from various levels
and loads configuration.
"""
_Distribution.parse_config_files(self, filenames=filenames)
ConfigMetadataHandler(self.metadata, self.command_options).parse()
ConfigOptionsHandler(self, self.command_options).parse()
def parse_command_line(self):
"""Process features after parsing command line options"""
result = _Distribution.parse_command_line(self)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment