diff options
| author | idle sign <idlesign@yandex.ru> | 2016-12-04 17:24:05 +0700 |
|---|---|---|
| committer | idle sign <idlesign@yandex.ru> | 2016-12-04 17:24:05 +0700 |
| commit | 8998172299cd562c937e83383e9fb666e6209b30 (patch) | |
| tree | 5ad98a4818b4405ece709e96f6384c722b449797 | |
| parent | 21333fe86db1888dbee134043ea8a2f85b69d439 (diff) | |
| download | external_python_setuptools-8998172299cd562c937e83383e9fb666e6209b30.tar.gz external_python_setuptools-8998172299cd562c937e83383e9fb666e6209b30.tar.bz2 external_python_setuptools-8998172299cd562c937e83383e9fb666e6209b30.zip | |
`metadata` aliases update.
| -rw-r--r-- | setuptools/config.py | 2 | ||||
| -rw-r--r-- | setuptools/tests/test_config.py | 2 |
2 files changed, 2 insertions, 2 deletions
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' |
