Commit 3adda966 authored by Paul Ganssle's avatar Paul Ganssle Committed by GitHub

Merge pull request #1761 from venthur/fix/1697

Migrate constants from setup.py to setup.cfg
parents 6310f99f 17eb6b93
Moved most of the constants from setup.py to setup.cfg
...@@ -18,5 +18,46 @@ formats = zip ...@@ -18,5 +18,46 @@ formats = zip
universal = 1 universal = 1
[metadata] [metadata]
license_file = LICENSE name = setuptools
version = 41.0.1 version = 41.0.1
description = Easily download, build, install, upgrade, and uninstall Python packages
author = Python Packaging Authority
author_email = distutils-sig@python.org
long_description = file: README.rst
long_description_content_type = text/x-rst; charset=UTF-8
license_file = LICENSE
keywords = CPAN PyPI distutils eggs package management
url = https://github.com/pypa/setuptools
project_urls =
Documentation = https://setuptools.readthedocs.io/
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Archiving :: Packaging
Topic :: System :: Systems Administration
Topic :: Utilities
[options]
zip_safe = True
python_requires = >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
py_modules = easy_install
packages = find:
[options.packages.find]
exclude = *.tests
[options.extras_require]
ssl =
wincertstore==0.2; sys_platform=='win32'
certs =
certifi==2016.9.26
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
Distutils setup file, used to install or test 'setuptools' Distutils setup file, used to install or test 'setuptools'
""" """
import io
import os import os
import sys import sys
import textwrap
import setuptools import setuptools
...@@ -49,10 +47,6 @@ def _gen_console_scripts(): ...@@ -49,10 +47,6 @@ def _gen_console_scripts():
yield tmpl.format(shortver=sys.version[:3]) yield tmpl.format(shortver=sys.version[:3])
readme_path = os.path.join(here, 'README.rst')
with io.open(readme_path, encoding='utf-8') as readme_file:
long_description = readme_file.read()
package_data = dict( package_data = dict(
setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'], setuptools=['script (dev).tmpl', 'script.tmpl', 'site-patch.py'],
) )
...@@ -88,25 +82,8 @@ def pypi_link(pkg_filename): ...@@ -88,25 +82,8 @@ def pypi_link(pkg_filename):
setup_params = dict( setup_params = dict(
name="setuptools",
description=(
"Easily download, build, install, upgrade, and uninstall "
"Python packages"
),
author="Python Packaging Authority",
author_email="distutils-sig@python.org",
long_description=long_description,
long_description_content_type='text/x-rst; charset=UTF-8',
keywords="CPAN PyPI distutils eggs package management",
url="https://github.com/pypa/setuptools",
project_urls={
"Documentation": "https://setuptools.readthedocs.io/",
},
src_root=None, src_root=None,
packages=setuptools.find_packages(exclude=['*.tests']),
package_data=package_data, package_data=package_data,
py_modules=['easy_install'],
zip_safe=True,
entry_points={ entry_points={
"distutils.commands": [ "distutils.commands": [
"%(cmd)s = setuptools.command.%(cmd)s:%(cmd)s" % locals() "%(cmd)s = setuptools.command.%(cmd)s:%(cmd)s" % locals()
...@@ -152,28 +129,6 @@ setup_params = dict( ...@@ -152,28 +129,6 @@ setup_params = dict(
"setuptools.installation": "setuptools.installation":
['eggsecutable = setuptools.command.easy_install:bootstrap'], ['eggsecutable = setuptools.command.easy_install:bootstrap'],
}, },
classifiers=textwrap.dedent("""
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Operating System :: OS Independent
Programming Language :: Python :: 2
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3
Programming Language :: Python :: 3.4
Programming Language :: Python :: 3.5
Programming Language :: Python :: 3.6
Programming Language :: Python :: 3.7
Topic :: Software Development :: Libraries :: Python Modules
Topic :: System :: Archiving :: Packaging
Topic :: System :: Systems Administration
Topic :: Utilities
""").strip().splitlines(),
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
extras_require={
"ssl:sys_platform=='win32'": "wincertstore==0.2",
"certs": "certifi==2016.9.26",
},
dependency_links=[ dependency_links=[
pypi_link( pypi_link(
'certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d', 'certifi-2016.9.26.tar.gz#md5=baa81e951a29958563689d868ef1064d',
...@@ -182,7 +137,6 @@ setup_params = dict( ...@@ -182,7 +137,6 @@ setup_params = dict(
'wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2', 'wincertstore-0.2.zip#md5=ae728f2f007185648d0c7a8679b361e2',
), ),
], ],
scripts=[],
setup_requires=[ setup_requires=[
] + wheel, ] + wheel,
) )
......
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