forked from Dallinger/Dallinger
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
70 lines (65 loc) · 2.04 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
"""Install Dallinger as a command line utility."""
import os
from setuptools import setup
setup_args = dict(
name='dallinger',
packages=['dallinger'],
version="4.0.0",
description='Laboratory automation for the behavioral and social sciences',
url='http://github.com/Dallinger/Dallinger',
maintainer='Jordan Suchow',
maintainer_email='[email protected]',
license='MIT',
keywords=['science', 'cultural evolution', 'experiments', 'psychology'],
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.6',
],
include_package_data=True,
zip_safe=False,
entry_points={
'console_scripts': [
'dallinger = dallinger.command_line:dallinger',
],
'dallinger.experiments': [],
},
extras_require={
'data': [
"networkx==1.11",
"odo==0.5.0",
"openpyxl==2.4.11", # 2.5 is incompatible with tablib
"pandas==0.22.0",
"tablib==0.11.5",
],
'jupyter': [
"jupyter",
"ipywidgets",
],
}
)
# If not on Heroku, install setuptools-markdown.
try:
os.environ["DYNO"]
except KeyError:
setup_args.update({
"setup_requires": ['setuptools-markdown==0.2'],
"long_description_markdown_filename": 'README.md',
})
# Read in requirements.txt for dependencies.
setup_args['install_requires'] = install_requires = []
setup_args['dependency_links'] = dependency_links = []
with open('requirements.txt') as f:
for line in f.readlines():
req = line.strip()
if not req or req.startswith('#'):
continue
if req.startswith('-e '):
dependency_links.append(req[3:])
else:
install_requires.append(req)
setup(**setup_args)