-
Notifications
You must be signed in to change notification settings - Fork 51
/
setup.py
114 lines (105 loc) · 3.6 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
import os
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.md')).read()
CHANGES = open(os.path.join(here, 'CHANGES.rst')).read()
# Edit Snovault version after the `@` here, can be a branch or tag
SNOVAULT_DEP = "git+https://github.com/ENCODE-DCC/snovault.git@configure-shards-by-type"
INSTALL_REQUIRES = [
"PasteDeploy==2.1.0",
"Pillow==7.0.0",
"SQLAlchemy==1.3.13",
"WSGIProxy2==0.4.6",
"WebOb==1.8.6",
"WebTest==2.0.35",
"alembic==1.4.0",
"boto3==1.11.9",
"botocore==1.14.9",
"certifi==2019.11.28",
"elasticsearch==5.4.0",
"future==0.18.2",
"humanfriendly==6.1",
"jsonschema_serialize_fork==2.1.1",
"loremipsum==1.0.5",
"passlib==1.7.2",
"psutil==5.6.7",
"psycopg2==2.8.4",
"pyramid-localroles==0.1",
"pyramid-multiauth==0.9.0",
"pyramid-translogger==0.1",
"pyramid==1.10.4",
"python-magic==0.4.15",
"pytz==2019.3",
"rdflib-jsonld==0.4.0",
"rdflib==4.2.2",
"repoze.debug==1.1",
"rfc3987==1.3.8",
"rutter==0.2",
"subprocess_middleware==0.3",
"transaction==3.0.0",
"waitress==1.4.3",
"xlrd==1.2.0",
"zope.interface==5.3.0",
"zope.sqlalchemy==1.2",
f"snovault @ {SNOVAULT_DEP}",
]
EXTRAS_REQUIRE = {
"tests": [
"coverage==5.0.3",
"moto[s3,sts]==2.0.2",
"pytest-bdd==3.2.1",
"pytest-cov==2.8.1",
"pytest-exact-fixtures==0.3",
"pytest-instafail==0.4.1.post0",
"pytest-mock==2.0.0",
"splinter==0.17.0",
"pytest-splinter==2.0.1",
"pytest==5.3.2",
"responses==0.14.0",
],
}
EXTRAS_REQUIRE["dev"] = EXTRAS_REQUIRE["tests"]
setup(
name='encoded',
version='134.0',
description='Metadata database for ENCODE',
long_description=README + '\n\n' + CHANGES,
packages=find_packages('src'),
package_dir={'': 'src'},
include_package_data=True,
zip_safe=False,
author='Laurence Rowe',
author_email='[email protected]',
url='http://encode-dcc.org',
license='MIT',
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points='''
[console_scripts]
batchupgrade = snovault.batchupgrade:main
create-mapping = snovault.elasticsearch.create_mapping:main
dev-servers = snovault.dev_servers:main
es-index-listener = snovault.elasticsearch.es_index_listener:main
add-date-created = encoded.commands.add_date_created:main
check-rendering = encoded.commands.check_rendering:main
deploy = encoded.commands.deploy:main
extract_test_data = encoded.commands.extract_test_data:main
es-index-data = encoded.commands.es_index_data:main
generate-ontology = encoded.commands.generate_ontology:main
import-data = encoded.commands.import_data:main
jsonld-rdf = encoded.commands.jsonld_rdf:main
migrate-files-aws = encoded.commands.migrate_files_aws:main
profile = encoded.commands.profile:main
spreadsheet-to-json = encoded.commands.spreadsheet_to_json:main
migrate-attachments-aws = encoded.commands.migrate_attachments_aws:main
migrate-dataset-type = encoded.commands.migrate_dataset_type:main
alembic = encoded.commands.alembic:main
[paste.app_factory]
main = encoded:main
[paste.composite_factory]
indexer = snovault.elasticsearch.es_index_listener:composite
visindexer = snovault.elasticsearch.es_index_listener:composite
[paste.filter_app_factory]
memlimit = encoded.memlimit:filter_app
''',
)