summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_command_sdist.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-29 22:55:02 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-29 22:55:02 (GMT)
commit5e48c78ecfca75199b250a5d31577ef0f89db800 (patch)
treec4430888d32839784006b1b78fc9488034fc607d /Lib/packaging/tests/test_command_sdist.py
parentacddb38602d71aded42e53d89b78b82c617e117d (diff)
downloadcpython-5e48c78ecfca75199b250a5d31577ef0f89db800.zip
cpython-5e48c78ecfca75199b250a5d31577ef0f89db800.tar.gz
cpython-5e48c78ecfca75199b250a5d31577ef0f89db800.tar.bz2
Remove display options (--name, etc.) from the Distribution class.
These options were used to implement “setup.py --name”, “setup.py --version”, etc. which are now handled by the pysetup metadata action or direct parsing of the setup.cfg file. As a side effect, the Distribution class no longer accepts a 'url' key in its *attrs* argument: it has to be 'home-page' to be recognized as a valid metadata field and passed down to the dist.metadata object. I cleaned up some comments, docstrings and code along the way.
Diffstat (limited to 'Lib/packaging/tests/test_command_sdist.py')
-rw-r--r--Lib/packaging/tests/test_command_sdist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/tests/test_command_sdist.py b/Lib/packaging/tests/test_command_sdist.py
index bcaa630..ddc6bf7 100644
--- a/Lib/packaging/tests/test_command_sdist.py
+++ b/Lib/packaging/tests/test_command_sdist.py
@@ -72,7 +72,7 @@ class SDistTestCase(support.TempdirManager,
"""Returns a cmd"""
if metadata is None:
metadata = {'name': 'fake', 'version': '1.0',
- 'url': 'xxx', 'author': 'xxx',
+ 'home_page': 'xxx', 'author': 'xxx',
'author_email': 'xxx'}
dist = Distribution(metadata)
dist.packages = ['somecode']