Skip to content

Commit

Permalink
Get version from version.py instead of TXT
Browse files Browse the repository at this point in the history
  • Loading branch information
lipis committed May 25, 2019
1 parent 472c845 commit cf1ee0b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion sendgrid/VERSION.txt

This file was deleted.

6 changes: 1 addition & 5 deletions sendgrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,9 @@
Modules to help with common tasks.
"""

import os
from .version import __version__
from .sendgrid import SendGridAPIClient # noqa
from .helpers.mail import * # noqa
from .helpers.endpoints import * # noqa
# from .helpers.inbound import * # noqa
from .helpers.stats import * # noqa

dir_path = os.path.dirname(os.path.realpath(__file__))
if os.path.isfile(os.path.join(dir_path, 'VERSION.txt')):
__version__ = open(os.path.join(dir_path, 'VERSION.txt')).read().strip()
2 changes: 2 additions & 0 deletions sendgrid/version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version_info = (6, 0, 5)
__version__ = '.'.join(str(v) for v in version_info)

0 comments on commit cf1ee0b

Please sign in to comment.