-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
54 lines (49 loc) · 1.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
#!/usr/bin/env python
import os
from setuptools import setup, find_packages
from version import get_git_version
VERSION, SOURCE_HASH = get_git_version()
PROJECT = 'streamcorpus_elasticsearch'
URL = 'https://github.com/trec-kba'
AUTHOR = 'Diffeo, Inc.'
AUTHOR_EMAIL = 'support@diffeo.com'
DESC = 'Tool for loading streamcorpus.StreamItems into ElasticSearch'
LICENSE ='MIT/X11 license http://opensource.org/licenses/MIT'
def read_file(file_name):
file_path = os.path.join(
os.path.dirname(__file__),
file_name
)
return open(file_path).read()
setup(
name=PROJECT,
version=VERSION,
#source_label=SOURCE_HASH,
license=LICENSE,
description=DESC,
author=AUTHOR,
author_email=AUTHOR_EMAIL,
url=URL,
packages=find_packages(),
# We can select proper classifiers later
classifiers=[
'Development Status :: 3 - Alpha',
'Topic :: Utilities',
'License :: OSI Approved :: MIT License', ## MIT/X11 license http://opensource.org/licenses/MIT
],
tests_require=[
],
install_requires=[
'yakonfig >= 0.5.0',
'rejester',
'kvlayer >= 0.4.0',
'dblogger >= 0.4.0',
'streamcorpus >= 0.3.27',
'streamcorpus_pipeline',
'elasticsearch',
],
include_package_data = True,
entry_points= {
'streamcorpus_pipeline.stages': 'elasticsearch_writer = streamcorpus_elasticsearch:writer',
},
)