From 8998172299cd562c937e83383e9fb666e6209b30 Mon Sep 17 00:00:00 2001 From: idle sign Date: Sun, 4 Dec 2016 17:24:05 +0700 Subject: `metadata` aliases update. --- setuptools/config.py | 2 +- setuptools/tests/test_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools') diff --git a/setuptools/config.py b/setuptools/config.py index 0c88df79..c6b93c4e 100644 --- a/setuptools/config.py +++ b/setuptools/config.py @@ -21,6 +21,7 @@ class ConfigHandler(object): aliases = {} """Options aliases. For compatibility with various packages. E.g.: d2to1 and pbr. + Note: `-` in keys is replaced with `_` by config parser. """ @@ -227,7 +228,6 @@ class ConfigMetadataHandler(ConfigHandler): section_prefix = 'metadata' aliases = { - 'author-email': 'author_email', 'home_page': 'url', 'summary': 'description', 'classifier': 'classifiers', diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py index 3fabfb94..08c5bd19 100644 --- a/setuptools/tests/test_config.py +++ b/setuptools/tests/test_config.py @@ -92,7 +92,7 @@ class TestMetadata: tmpdir, '[metadata]\n' 'author-email = test@test.com\n' - 'home_page = http://test.test.com/test/\n' + 'home-page = http://test.test.com/test/\n' 'summary = Short summary\n' 'platform = a, b\n' 'classifier =\n' -- cgit v1.2.3