forked from pruksmhc/mindlogger-app-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
114 lines (105 loc) · 3.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# -*- coding: utf-8 -*-
import os
from setuptools import setup, find_packages
def prerelease_local_scheme(version):
"""Return local scheme version unless building on master in CircleCI.
This function returns the local scheme version number
(e.g. 0.0.0.dev<N>+g<HASH>) unless building on CircleCI for a
pre-release in which case it ignores the hash and produces a
PEP440 compliant pre-release version number (e.g. 0.0.0.dev<N>).
"""
from setuptools_scm.version import get_local_node_and_date
if os.getenv('CIRCLE_BRANCH') == 'master':
return ''
else:
return get_local_node_and_date(version)
with open('README.rst') as f:
readme = f.read()
installReqs = [
'boto3',
'botocore',
'cherrypy_cors==1.6',
# CherryPy version is restricted due to a bug in versions >=11.1
# https://github.com/cherrypy/cherrypy/issues/1662
'CherryPy<11.1',
'click',
'click-plugins',
'cryptography>=2.3',
'backports-datetime-fromisoformat',
'dictdiffer',
'dnspython',
'dogpile.cache',
'filelock',
"funcsigs ; python_version < '3'",
'isodate',
'jsonschema',
'Mako',
'pandas==0.25.1',
'passlib [bcrypt,totp]',
'pymongo>=3.6',
'PyYAML',
'psutil==5.6.6',
'pyld>=1.0.4',
'pyOpenSSL',
'python-dateutil==2.6.1',
'pytz',
'qrcode[pil]',
'requests',
"shutilwhich ; python_version < '3'",
'simplejson',
'six>=1.9',
'tzlocal>=1.5.1'
]
extrasReqs = {
'sftp': [
'paramiko'
],
'mount': [
'fusepy>=3.0'
]
}
setup(
name='girderformindlogger',
use_scm_version={'local_scheme': prerelease_local_scheme},
setup_requires=['setuptools-scm'],
description='Web-based data management platform customized for MindLogger',
long_description=readme,
author='Child Mind Institute MATTER Lab & Kitware',
author_email='[email protected]',
url='https://github.com/ChildMindInstitute/mindlogger-app-backend',
license='Apache 2.0',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6'
],
packages=find_packages(
exclude=('girderformindlogger.test', 'tests.*', 'tests', '*.plugin_tests.*', '*.plugin_tests')
),
include_package_data=True,
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
install_requires=installReqs,
extras_require=extrasReqs,
zip_safe=False,
entry_points={
'console_scripts': [
'girder-server = girderformindlogger.cli.serve:main',
'girder-sftpd = girderformindlogger.cli.sftpd:main',
'girder-shell = girderformindlogger.cli.shell:main',
'girderformindlogger = girderformindlogger.cli:main'
],
'girderformindlogger.cli_plugins': [
'serve = girderformindlogger.cli.serve:main',
'mount = girderformindlogger.cli.mount:main',
'shell = girderformindlogger.cli.shell:main',
'sftpd = girderformindlogger.cli.sftpd:main',
'build = girderformindlogger.cli.build:main'
]
}
)