-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
52 lines (41 loc) · 1.32 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
52
"""To install fitgrid in development mode see
kutaslab.github.io/fitgrid-dev-docs/contributing.html
"""
import re
from setuptools import find_packages, setup
# from fitgrid.version import __version__
def get_ver():
"""format check"""
with open("./fitgrid/__init__.py", "r") as stream:
fg_ver = re.search(
r".*__version__.*=.*[\"\'](?P<ver_str>\d+\.\d+\.\d+\S*)[\'\"].*",
stream.read(),
)
if fg_ver is None:
msg = """
fitgrid.__init__.py must have an X.Y.Z semantic version, e.g.,
__version__ = '0.0.0'
__version__ = '0.0.0-dev.0.0'
"""
raise ValueError(msg)
return fg_ver['ver_str']
def readme():
"""slurp text"""
with open('README.md') as strm:
return strm.read()
setup(
name='fitgrid',
version=get_ver(),
description='Mass multiple regression manager',
long_description=readme(),
long_description_content_type='text/markdown',
author='Andrey Portnoy, Thomas P. Urbach',
author_email='[email protected], [email protected]',
url='https://github.com/kutaslab/fitgrid',
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: BSD License",
"Intended Audience :: Science/Research",
],
packages=find_packages(exclude=['tests']),
)