Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Commit

Permalink
Merge pull request #199 from nrejack/simplify_version_number
Browse files Browse the repository at this point in the history
Simplify version number
  • Loading branch information
senrabc committed Apr 7, 2016
2 parents 1dac9f6 + 25d769d commit 8aae266
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
from setuptools_scm import get_version

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -61,9 +62,9 @@
# built documents.
#
# The short X.Y version.
version = '0.15.2'
version = get_version(root='..', relative_to=__file__)
# The full version, including alpha/beta/rc tags.
release = '0.15.2'
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
12 changes: 8 additions & 4 deletions redi/redi.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@
-b --bulk-send-blanks Send blank events in bulk instead of
individually [default:False]
"""

__author__ = "University of Florida CTS-IT Team"
__version__ = "0.15.0"
__email__ = "ctsit@ctsi.ufl.edu"
__status__ = "Development"

Expand Down Expand Up @@ -90,12 +88,19 @@
import utils.SimpleConfigParser as SimpleConfigParser
import utils.GetEmrData as GetEmrData
from utils.GetEmrData import EmrFileAccessDetails
from setuptools_scm import get_version

#from memory_profiler import profile

# set the version using setuptools_scm
# allow for setting the version when redi is imported
try:
__version__ = get_version()
except:
__version__ = get_version(root='..', relative_to=__file__)

# Command line default argument values
_person_form_events_service = None

translational_table_tree = None

DEFAULT_DATA_DIRECTORY = os.getcwd()
Expand Down Expand Up @@ -136,7 +141,6 @@ def main():
- write the Final ElementTree to EAV
"""


# TODO: UPDATE COMMENT HERE
global _person_form_events_service

Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

setup(
name='redi',
version='0.15.2',
use_scm_version=True,
author='https://www.ctsi.ufl.edu/research/study-development/informatics-consulting/',
author_email='ctsit@ctsi.ufl.edu',
packages=find_packages(exclude=['test']),
Expand Down Expand Up @@ -54,5 +54,6 @@
setup_requires=[
"nose >= 1.0",
"nosexcover >= 1.0.10",
"setuptools_scm >= 1.10.1"
],
)

0 comments on commit 8aae266

Please sign in to comment.