File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 1+ import os
12from setuptools import find_packages , setup
23
3- from tap import __version__
4+ # Load version number
5+ __version__ = None
46
7+ src_dir = os .path .abspath (os .path .dirname (__file__ ))
8+ version_file = os .path .join (src_dir , 'tap' , '_version.py' )
59
10+ with open (version_file ) as fd :
11+ exec (fd .read ())
12+
13+ # Load README
614with open ('README.md' , encoding = 'utf-8' ) as f :
715 long_description = f .read ()
816
Original file line number Diff line number Diff line change 1+ from tap ._version import __version__
12from tap .tap import Tap
23
3- __version__ = '1.5.0'
44__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