-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·77 lines (69 loc) · 2.98 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
from setuptools import setup
with open("README.rst", "r") as fh:
long_desc = fh.read()
with open('src/factiva/analytics/__version__.py') as f:
for line in f:
if line.find("__version__") >= 0:
version = line.split("=")[1].strip()
version = version.strip('"')
version = version.strip("'")
continue
setup(
name='factiva-analytics',
version=version,
description='Python package to interact with Factiva Analytics APIs. Services are described in the Dow Jones Developer Platform.',
long_description=long_desc,
long_description_content_type='text/x-rst',
license='MIT',
author='Dow Jones Customer Engineers',
author_email='[email protected]',
# Warning: the folder 'factiva' should NOT have an __init__.py file to avoid conflicts with the same namespace across other packages
package_dir={'': 'src'},
packages=['factiva.analytics', 'factiva.analytics.article_retrieval', 'factiva.analytics.auth',
'factiva.analytics.common', 'factiva.analytics.taxonomy', 'factiva.analytics.snapshots',
'factiva.analytics.streams'
#, 'factiva.analytics.integration'
# , 'factiva.analytics.lists',
],
url='https://developer.dowjones.com/',
project_urls={
"GitHub": "https://github.com/dowjones/factiva-analytics-python",
"Documentation": "https://factiva-analytics-python.readthedocs.io/",
"Bug Tracker": "https://github.com/dowjones/factiva-analytics-python/issues",
},
classifiers=[ # Optional
# How mature is this project? Common values are
# 1 - Planning
# 2 - Pre-Alpha
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 4 - Beta',
# Indicate who your project is intended for
'Intended Audience :: Science/Research',
'Intended Audience :: Financial and Insurance Industry',
'Operating System :: OS Independent',
'Topic :: Office/Business :: News/Diary',
'Topic :: Office/Business :: Financial :: Investment',
'Topic :: Scientific/Engineering :: Artificial Intelligence',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
keywords='news, news aggregator, risk, compliance, nlp, alternative data, factiva, trading news, market movers',
# Required version conditioned by typed lists and Pandas
python_requires='>=3.8.4',
install_requires=[
'requests>=2.28.1',
'pandas>=1.5.2',
'fastavro>=1.7.0',
'google-cloud-core>=2.3.2',
'google-cloud-pubsub>=2.13.11'
],
extras_require={
"MongoDB": ["pymongo"],
"Elasticsearch": ["elasticsearch"],
"BigQuery": ["google-cloud-bigquery"]
})