-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
66 lines (57 loc) · 1.94 KB
/
setup.py
File metadata and controls
66 lines (57 loc) · 1.94 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import os
import re
import glob
import warnings
from setuptools import (setup, find_packages)
class InstallError(Exception):
"""imppload installation error."""
pass
def version(package):
"""
:return: the package version as listed in the package `__init.py__`
`__version__` variable.
"""
# The version string parser.
REGEXP = re.compile("""
__version__ # The version variable
\s*=\s* # Assignment
['\"] # Leading quote
(.+) # The version string capture group
['\"] # Trailing quote
""", re.VERBOSE)
with open(os.path.join(package, '__init__.py')) as fd:
match = REGEXP.search(fd.read())
if not match:
raise InstallError("The %s __version__ variable was not found" %
package)
return match.group(1)
def readme():
with open("README.md") as fd:
return fd.read()
setup(
name = 'immpload',
version = version('immpload'),
author = 'Oregon Health & Sciences University',
author_email = 'loneyf@ohsu.edu',
platforms = 'Any',
license = 'MIT',
keywords = 'Immpload',
packages = find_packages(exclude=['test**']),
package_data = dict(immpload=['conf/*.yaml']),
scripts = glob.glob('bin/*'),
url = 'https://github.com/biodev/imppload/',
description = 'Immport upload preparation',
long_description_content_type='text/markdown',
long_description = readme(),
classifiers = [
'Development Status :: 5 - Production/Stable',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
],
install_requires = ['bunch', 'PyYAML', 'openpyxl', 'inflection', 'deepmerge']
)