Browse Source

pull the version info from the module..

main
John-Mark Gurney 4 years ago
parent
commit
4a42d2622b
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      setup.py

+ 11
- 1
setup.py View File

@@ -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',


Loading…
Cancel
Save