|
@@ -1,7 +1,15 @@ |
|
|
#!/usr/bin/env python |
|
|
#!/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 |
|
|
from setuptools import setup |
|
|
from ntunnel import __version__ |
|
|
|
|
|
|
|
|
import os.path |
|
|
|
|
|
__version__ = getversion(os.path.join('ntunnel', '__init__.py')) |
|
|
|
|
|
|
|
|
# Install requirements for git: |
|
|
# Install requirements for git: |
|
|
# https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires |
|
|
# https://stackoverflow.com/questions/18026980/python-setuptools-how-can-i-list-a-private-repository-under-install-requires |
|
|