comparison paint/info.py @ 71:da69d58f960d

stub method of conversion, PackageSet, and some cleanup
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 27 Jan 2013 17:57:38 -0800
parents fea269259222
children 5b10f2c03cb9
comparison
equal deleted inserted replaced
70:81142931ebbd 71:da69d58f960d
5 import imp 5 import imp
6 import os 6 import os
7 import subprocess 7 import subprocess
8 import sys 8 import sys
9 9
10 from distutils.dist import DistributionMetadata
10 from subprocess import check_call as call 11 from subprocess import check_call as call
11 12
12 # TODO: 13 # TODO:
13 # Reconcile the difference between the keys (and values) between the different 14 # Reconcile the difference between the keys (and values) between the different
14 # implementations. Pick a canon and stick with it. 15 # implementations. Pick a canon and stick with it.
22 # see http://www.python.org/dev/peps/pep-0314/ : 23 # see http://www.python.org/dev/peps/pep-0314/ :
23 # Metadata for Python Software Packages 24 # Metadata for Python Software Packages
24 25
25 26
26 # TODO: consider using pkginfo 27 # TODO: consider using pkginfo
28
29 def setup2metadata(**kwargs):
30 """
31 convert setup arguments to standard python metadata:
32 http://www.python.org/dev/peps/pep-0314/
33 """
34 metadata = DistributionMetadata()
35 raise NotImplementedError("TODO")
36
27 37
28 class PackageInfo(object): 38 class PackageInfo(object):
29 """abstract base class of package info""" 39 """abstract base class of package info"""
30 def __init__(self, path): 40 def __init__(self, path):
31 """ 41 """