# HG changeset patch # User Jeff Hammel # Date 1359138859 28800 # Node ID 1234bfb1f1f0dae2a824c21fcb20306ab781ec95 # Parent aa3c90255db6cdbdaf70603b34454d11cdb6580f we really need to pick a canon diff -r aa3c90255db6 -r 1234bfb1f1f0 paint/info.py --- a/paint/info.py Fri Jan 25 09:58:33 2013 -0800 +++ b/paint/info.py Fri Jan 25 10:34:19 2013 -0800 @@ -9,6 +9,17 @@ from subprocess import check_call as call +# TODO: +# Reconcile the difference between the keys (and values) between the different +# implementations. Pick a canon and stick with it. + +# SetupOverridePackageInfo: +# {'entry_points': '\n', 'description': 'a dummy package', 'license': '', 'author': 'Jeff Hammel', 'install_requires': [], 'include_package_data': True, 'classifiers': [], 'url': 'http://example.com/', 'author_email': 'jhammel@mozilla.com', 'version': '0.1', 'zip_safe': False, 'packages': ['dummy'], 'long_description': 'dummy\n===========\n\na dummy package\n\n----\n\nJeff Hammel\n\nhttp://example.com/\n\n', 'name': 'dummy'} + +# EggInfo: +# {'Name': 'dummy', 'License': 'UNKNOWN', 'Author': 'Jeff Hammel', 'Metadata-Version': '1.0', 'Home-page': 'http://example.com/', 'Summary': 'a dummy package', 'Platform': 'UNKNOWN', 'Version': '0.1', 'Author-email': 'jhammel@mozilla.com', 'Description': 'dummy'} + + class PackageInfo(object): """abstract base class of package info""" def __init__(self, path): diff -r aa3c90255db6 -r 1234bfb1f1f0 tests/doctest.txt --- a/tests/doctest.txt Fri Jan 25 09:58:33 2013 -0800 +++ b/tests/doctest.txt Fri Jan 25 10:34:19 2013 -0800 @@ -28,5 +28,3 @@ >>> package_info = paint.info.EggInfo(dummy_path) >>> info = package_info() - >>> info['name'] - 'dummy'