-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
51 lines (42 loc) · 1.21 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- coding: utf-8 -*-
'''
setup for ifxuser
Created on 2018-12-21
@author: Aaron Kitzmiller <aaron_kitzmiller@harvard.edu>
@copyright: 2018 The Presidents and Fellows of Harvard College. All rights reserved.
@license: GPL v2.0
'''
import re
from setuptools import setup, find_packages
def getVersion():
"""
Retrieve the version number from the __init__ file
"""
version = '0.0.0'
with open('ifxurls/__init__.py', 'r') as f:
contents = f.read().strip()
m = re.search(r"__version__ = '([\d\.]+)'", contents)
if m:
version = m.group(1)
return version
setup(
name="ifxurls",
version=getVersion(),
author='Aaron Kitzmiller <aaron_kitzmiller@harvard.edu>',
author_email='aaron_kitzmiller@harvard.edu',
description='User model for Informatics applications',
license='LICENSE',
include_package_data=True,
url='https://github.com/harvardinformatics/ifxurls',
packages=find_packages(),
long_description='URLs for FAS Informatics services',
classifiers=[
"Development Status :: 3 - Alpha",
"Topic :: Utilities",
],
entry_points={
'console_scripts': [
'getIfxUrl=ifxurls.urls:main',
]
},
)