diff paint/package2.py @ 53:c588375a7ce4

starting a new strawman to work out kinks
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 02 Jan 2013 13:59:27 -0800
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/paint/package2.py	Wed Jan 02 13:59:27 2013 -0800
@@ -0,0 +1,25 @@
+"""
+Goals:
+
+- expose package information for a given setup.py/package
+- ensure that for a given set of packages that the versions are consistent
+"""
+
+class Package2(object):
+
+    def __init__(self, src, verbose=True):
+        self.verbose = verbose
+        self._info = None
+        self._setup_py = None # local path to setup.py
+
+    def info(self):
+        """return info dictionary for a package"""
+
+class PackageSet(object):
+    """
+    a group of packages
+
+    Functionality:
+    - unroll dependencies
+    - check consistency of dependencies
+    """