File tree 3 files changed +17
-2
lines changed
3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change
1
+ import os
1
2
from setuptools import find_packages , setup
2
3
3
- from tap import __version__
4
+ # Load version number
5
+ __version__ = None
4
6
7
+ src_dir = os .path .abspath (os .path .dirname (__file__ ))
8
+ version_file = os .path .join (src_dir , 'tap' , '_version.py' )
5
9
10
+ with open (version_file ) as fd :
11
+ exec (fd .read ())
12
+
13
+ # Load README
6
14
with open ('README.md' , encoding = 'utf-8' ) as f :
7
15
long_description = f .read ()
8
16
Original file line number Diff line number Diff line change
1
+ from tap ._version import __version__
1
2
from tap .tap import Tap
2
3
3
- __version__ = '1.5.0'
4
4
__all__ = ['Tap' , '__version__' ]
Original file line number Diff line number Diff line change
1
+ __all__ = ['__version__' ]
2
+
3
+ # major, minor, patch
4
+ version_info = 1 , 5 , 1
5
+
6
+ # Nice string for the version
7
+ __version__ = '.' .join (map (str , version_info ))
You can’t perform that action at this time.
0 commit comments