Commit 97724357 authored by Jason R. Coombs's avatar Jason R. Coombs

Sort entry points when writing so they render consistently

parent 6ef85d9d
[setuptools.installation]
eggsecutable = setuptools.command.easy_install:bootstrap
[egg_info.writers]
entry_points.txt = setuptools.command.egg_info:write_entries
dependency_links.txt = setuptools.command.egg_info:overwrite_arg
eager_resources.txt = setuptools.command.egg_info:overwrite_arg
top_level.txt = setuptools.command.egg_info:write_toplevel_names
namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
depends.txt = setuptools.command.egg_info:warn_depends_obsolete
requires.txt = setuptools.command.egg_info:write_requirements
PKG-INFO = setuptools.command.egg_info:write_pkg_info
[setuptools.file_finders]
svn_cvs = setuptools.command.sdist:_default_revctrl
[console_scripts]
easy_install-3.4 = setuptools.command.easy_install:main
easy_install = setuptools.command.easy_install:main
[distutils.setup_keywords]
use_2to3_fixers = setuptools.dist:assert_string_list
dependency_links = setuptools.dist:assert_string_list
packages = setuptools.dist:check_packages
use_2to3_exclude_fixers = setuptools.dist:assert_string_list
convert_2to3_doctests = setuptools.dist:assert_string_list
use_2to3 = setuptools.dist:assert_bool
exclude_package_data = setuptools.dist:check_package_data
entry_points = setuptools.dist:check_entry_points
test_loader = setuptools.dist:check_importable
namespace_packages = setuptools.dist:check_nsp
zip_safe = setuptools.dist:assert_bool
extras_require = setuptools.dist:check_extras
eager_resources = setuptools.dist:assert_string_list
tests_require = setuptools.dist:check_requirements
package_data = setuptools.dist:check_package_data
test_suite = setuptools.dist:check_test_suite
include_package_data = setuptools.dist:assert_bool
install_requires = setuptools.dist:check_requirements
[distutils.commands]
upload_docs = setuptools.command.upload_docs:upload_docs
egg_info = setuptools.command.egg_info:egg_info
install_scripts = setuptools.command.install_scripts:install_scripts
saveopts = setuptools.command.saveopts:saveopts
bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
rotate = setuptools.command.rotate:rotate
install = setuptools.command.install:install
bdist_egg = setuptools.command.bdist_egg:bdist_egg
test = setuptools.command.test:test
install_egg_info = setuptools.command.install_egg_info:install_egg_info
install_lib = setuptools.command.install_lib:install_lib
sdist = setuptools.command.sdist:sdist
register = setuptools.command.register:register
develop = setuptools.command.develop:develop
build_py = setuptools.command.build_py:build_py
setopt = setuptools.command.setopt:setopt
build_ext = setuptools.command.build_ext:build_ext
alias = setuptools.command.alias:alias
easy_install = setuptools.command.easy_install:easy_install
bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
[console_scripts]
easy_install = setuptools.command.easy_install:main
easy_install-3.4 = setuptools.command.easy_install:main
[distutils.commands]
alias = setuptools.command.alias:alias
bdist_egg = setuptools.command.bdist_egg:bdist_egg
bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
build_ext = setuptools.command.build_ext:build_ext
build_py = setuptools.command.build_py:build_py
develop = setuptools.command.develop:develop
easy_install = setuptools.command.easy_install:easy_install
egg_info = setuptools.command.egg_info:egg_info
install = setuptools.command.install:install
install_egg_info = setuptools.command.install_egg_info:install_egg_info
install_lib = setuptools.command.install_lib:install_lib
install_scripts = setuptools.command.install_scripts:install_scripts
register = setuptools.command.register:register
rotate = setuptools.command.rotate:rotate
saveopts = setuptools.command.saveopts:saveopts
sdist = setuptools.command.sdist:sdist
setopt = setuptools.command.setopt:setopt
test = setuptools.command.test:test
upload_docs = setuptools.command.upload_docs:upload_docs
[distutils.setup_keywords]
convert_2to3_doctests = setuptools.dist:assert_string_list
dependency_links = setuptools.dist:assert_string_list
eager_resources = setuptools.dist:assert_string_list
entry_points = setuptools.dist:check_entry_points
exclude_package_data = setuptools.dist:check_package_data
extras_require = setuptools.dist:check_extras
include_package_data = setuptools.dist:assert_bool
install_requires = setuptools.dist:check_requirements
namespace_packages = setuptools.dist:check_nsp
package_data = setuptools.dist:check_package_data
packages = setuptools.dist:check_packages
test_loader = setuptools.dist:check_importable
test_suite = setuptools.dist:check_test_suite
tests_require = setuptools.dist:check_requirements
use_2to3 = setuptools.dist:assert_bool
use_2to3_exclude_fixers = setuptools.dist:assert_string_list
use_2to3_fixers = setuptools.dist:assert_string_list
zip_safe = setuptools.dist:assert_bool
[egg_info.writers]
PKG-INFO = setuptools.command.egg_info:write_pkg_info
dependency_links.txt = setuptools.command.egg_info:overwrite_arg
depends.txt = setuptools.command.egg_info:warn_depends_obsolete
eager_resources.txt = setuptools.command.egg_info:overwrite_arg
entry_points.txt = setuptools.command.egg_info:write_entries
namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
requires.txt = setuptools.command.egg_info:write_requirements
top_level.txt = setuptools.command.egg_info:write_toplevel_names
[setuptools.file_finders]
svn_cvs = setuptools.command.sdist:_default_revctrl
[setuptools.installation]
eggsecutable = setuptools.command.easy_install:bootstrap
......@@ -369,10 +369,10 @@ def write_entries(cmd, basename, filename):
data = ep
elif ep is not None:
data = []
for section, contents in ep.items():
for section, contents in sorted(ep.items()):
if not isinstance(contents,basestring):
contents = EntryPoint.parse_group(section, contents)
contents = '\n'.join(map(str,contents.values()))
contents = '\n'.join(sorted(map(str,contents.values())))
data.append('[%s]\n%s\n\n' % (section,contents))
data = ''.join(data)
......
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