소스 검색

pull the version info from the module..

main
John-Mark Gurney 4 년 전
부모
커밋
4a42d2622b
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. +11
    -1
      setup.py

+ 11
- 1
setup.py 파일 보기

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


불러오는 중...
취소
저장