Skip to content

Commit

Permalink
updated client to include accurate versioning that can be grabbed as …
Browse files Browse the repository at this point in the history
…a module attribute
  • Loading branch information
GregHydeDartmouth committed Dec 1, 2020
1 parent d2c996d commit a3c8d25
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion chp_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import types
import copy

from chp_client.client import ChpClient
from chp_client.client import ChpClient
from chp_client._version import __version__

# Function aliases common to all clients
COMMON_ALIASES = {
Expand Down
1 change: 1 addition & 0 deletions chp_client/_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '0.1.1'
7 changes: 6 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
import os
import sys
import re
import io

from setuptools import find_packages
from setuptools import setup

__version__ = re.search(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]',
io.open('chp_client/_version.py', encoding='utf_8_sig').read()).group(1)

REQUIRED_PACKAGES = [
'requests'
]

setup(
name='chp_client',
version='0.0.1',
version=__version__,
author='Chase Yakaboski',
author_email='chase.th@dartmouth.edu',
description='A light weight Python wrapper of the NCATS CHP Endpoint.',
Expand Down

0 comments on commit a3c8d25

Please sign in to comment.