]> granicus.if.org Git - python/commit
Remove display options (--name, etc.) from the Distribution class.
authorÉric Araujo <merwok@netwok.org>
Mon, 29 Aug 2011 22:55:02 +0000 (00:55 +0200)
committerÉric Araujo <merwok@netwok.org>
Mon, 29 Aug 2011 22:55:02 +0000 (00:55 +0200)
commit5e48c78ecfca75199b250a5d31577ef0f89db800
treec4430888d32839784006b1b78fc9488034fc607d
parentacddb38602d71aded42e53d89b78b82c617e117d
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.
Lib/packaging/dist.py
Lib/packaging/tests/test_command_bdist_dumb.py
Lib/packaging/tests/test_command_register.py
Lib/packaging/tests/test_command_sdist.py
Lib/packaging/tests/test_dist.py