Skip to content

Commit

Permalink
Fix version number to enable __version__
Browse files Browse the repository at this point in the history
  • Loading branch information
swansonk14 committed Jul 14, 2020
1 parent 5b1c83f commit 95fc833
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
import os
from setuptools import find_packages, setup

from tap import __version__
# Load version number
__version__ = None

src_dir = os.path.abspath(os.path.dirname(__file__))
version_file = os.path.join(src_dir, 'tap', '_version.py')

with open(version_file) as fd:
exec(fd.read())

# Load README
with open('README.md', encoding='utf-8') as f:
long_description = f.read()

Expand Down
2 changes: 1 addition & 1 deletion tap/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from tap._version import __version__
from tap.tap import Tap

__version__ = '1.5.0'
__all__ = ['Tap', '__version__']
7 changes: 7 additions & 0 deletions tap/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
__all__ = ['__version__']

# major, minor, patch
version_info = 1, 5, 1

# Nice string for the version
__version__ = '.'.join(map(str, version_info))

0 comments on commit 95fc833

Please sign in to comment.