Package: setuptools-py2cfg
Since version 30.3.0,setuptools supportsdeclarative configuration through thesetup.cfgfile. This script helps convert existingsetup.pyfiles tosetup.cfgin the format expected by setuptools.UsageJust pointsetuptools-py2cfgto asetup.pyfile or run it in a directory
containing asetup.py. For example,  given the followingsetup.py:fromsetuptoolsimportsetup,find_packagesclassifiers=['Development Status :: 5 - Production/Stable','Programming Language :: Python :: 2.7','Programming Language :: Python :: 3','Programming Language :: Python :: 3.3','Programming Language :: Python :: 3.4','Programming Language :: Python :: 3.5','Programming Language :: Python :: 3.6','Intended Audience :: Developers','Topic :: Software Development :: Libraries','License :: OSI Approved :: BSD License',]extras_require={'tests':['tox >= 2.6.0','pytest >= 3.0.3',],'devel':['check-manifest >= 0.35','readme-renderer >= 16.0',]}kw={'name':'ansimarkup','version':'1.3.0','description':'Produce colored terminal text with an xml-like markup','long_description':open('README.rst').read(),'author':'Georgi Valkov','author_email':'georgi.t.valkov@gmail.com','license':'Revised BSD License','keywords':'ansi terminal markup','url':'https://github.com/gvalkov/python-ansimarkup','classifiers':classifiers,'install_requires':'colorama','extras_require':extras_require,'packages':find_packages(),'zip_safe':True,}if__name__=='__main__':setup(**kw)Runningsetuptools-py2cfg.pywould print:[metadata]name=ansimarkupversion=1.3.0author=Georgi Valkovauthor_email=georgi.t.valkov@gmail.comlicense=Revised BSD Licensedescription=Produce colored terminal text with an xml-like markupkeywords=ansi, terminal, markupurl=https://github.com/gvalkov/python-ansimarkuplong_description=file: README.rstclassifiers=Development Status:: 5 - Production/StableProgramming Language:: Python :: 2.7Programming Language:: Python :: 3Programming Language:: Python :: 3.3Programming Language:: Python :: 3.4Programming Language:: Python :: 3.5Programming Language:: Python :: 3.6Intended Audience:: DevelopersTopic:: Software Development :: LibrariesLicense:: OSI Approved :: BSD License[options]packages=find:zip_safe=Trueinstall_requires=colorama[options.extras_require]tests=tox >=2.6.0pytest >=3.0.3devel=check-manifest >=0.35readme-renderer >=16.0There are several non-essential options that control the format of the generated ini-file:usage: setuptools-py2cfg.py [-h] [-t int] [-i int] [-a] [path]

converts an existing setup.py file to a setup.cfg in the format expected by
setuptools

positional arguments:
  path                  path to setup.py file (default: ./setup.py)

optional arguments:
  -h, --help            show this help message and exit
  -t int, --dangling-list-threshold int
                        lists longer than this many characters are converted
                        to a dangling list (default: 40)
  -i int, --dangling-list-indent int
                        number of spaces to use when indenting dangling lists
                        (default: 4)
  -a, --always-use-dangling-lists
                        use dangling lists everywhere (default: False)Keep in mind that asetup.pyfile with a single call tosetuptools.setup()is still needed after migrating all metadata tosetup.cfg.InstallationThe latest stable version of setuptools-py2cfg can be installed from pypi:$pipinstallsetuptools-py2cfgTodoHandleentry_scriptsin ini-format.Write a test or two.LicenseReleased under the terms of theRevised BSD License.