|
|
@@ -1,9 +1,19 @@ |
|
|
|
#!/usr/bin/env python |
|
|
|
|
|
|
|
def getversion(fname): |
|
|
|
with open(fname) as fp: |
|
|
|
v = [ x for x in fp.readlines() if x.startswith('__version__') ] |
|
|
|
if len(v) != 1: |
|
|
|
raise ValueError('too many lines start with __version__') |
|
|
|
return v[0].split("'")[1] |
|
|
|
|
|
|
|
from setuptools import setup |
|
|
|
import os.path |
|
|
|
|
|
|
|
__version__ = getversion(os.path.join('casimport', '__init__.py')) |
|
|
|
|
|
|
|
setup(name='casimport', |
|
|
|
version='0.1.0', |
|
|
|
version=__version__, |
|
|
|
description='Import python modules via content address.', |
|
|
|
author='John-Mark Gurney', |
|
|
|
author_email='jmg@funkthat.com', |
|
|
|