# HG changeset patch # User Jeff Hammel # Date 1359158186 28800 # Node ID 8f39ba6425312cd25b8a9f55290419c8e97b36d9 # Parent af7609457dc62965d84c6aeb0d4b349d9c082876 random stubbing diff -r af7609457dc6 -r 8f39ba642531 README.txt --- a/README.txt Fri Jan 25 13:50:40 2013 -0800 +++ b/README.txt Fri Jan 25 15:56:26 2013 -0800 @@ -13,6 +13,12 @@ - dependencies + +Related Software +---------------- + +- pkginfo + ---- Jeff Hammel diff -r af7609457dc6 -r 8f39ba642531 paint/info.py --- 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