Ver código fonte

pull the version info from the module..

main
John-Mark Gurney 4 anos atrás
pai
commit
4a42d2622b
1 arquivos alterados com 11 adições e 1 exclusões
  1. +11
    -1
      setup.py

+ 11
- 1
setup.py Ver arquivo

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


Carregando…
Cancelar
Salvar