#!/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=__version__, description='Import python modules via content address.', author='John-Mark Gurney', author_email='jmg@funkthat.com', classifiers=[ 'Development Status :: 3 - Alpha', 'License :: OSI Approved :: BSD License', 'Topic :: Security', # XXX - add ], url='https://www.funkthat.com/gitea/jmg/casimport', packages=[ 'casimport', ], install_requires=[ 'mock', ], extras_require = { 'dev': [ 'coverage' ], } )