diff paint/info.py @ 67:8f39ba642531

random stubbing
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 25 Jan 2013 15:56:26 -0800
parents 1234bfb1f1f0
children d001017d5870
line wrap: on
line diff
--- a/paint/info.py	Fri Jan 25 13:50:40 2013 -0800
+++ b/paint/info.py	Fri Jan 25 15:56:26 2013 -0800
@@ -19,6 +19,8 @@
 # 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'}
 
+# see http://www.python.org/dev/peps/pep-0314/ :
+# Metadata for Python Software Packages
 
 class PackageInfo(object):
     """abstract base class of package info"""
@@ -35,10 +37,13 @@
         """returns dictionary of package info"""
         raise NotImplementedError("abstract base class")
 
+
 class SetupOverridePackageInfo(PackageInfo):
     """
     gather setup.py information by overriding the function
     """
+    # TODO: override distutils.core.setup as well
+    # http://docs.python.org/2/distutils/index.html#distutils-index
 
     def __call__(self):
         setuptools = sys.modules.get('setuptools')
@@ -56,6 +61,7 @@
     def _setup(self, **kwargs):
         self._info = kwargs
 
+
 class EggInfo(PackageInfo):
     """
     use `python setup.py egg_info` to gather package information