forked from pitchmuc/adobe-analytics-api-2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
61 lines (53 loc) · 1.77 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
import codecs
import os
from setuptools import setup, find_packages
def read(rel_path: str):
here = os.path.abspath(os.path.dirname(__file__))
with codecs.open(os.path.join(here, rel_path), 'r') as fp:
return fp.read()
def get_version(rel_path: str):
for line in read(rel_path).splitlines():
if line.startswith('__version__'):
delim = '"' if '"' in line else "'"
return line.split(delim)[1]
else:
raise RuntimeError("Unable to find version string.")
CLASSIFIERS = [
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Information Analysis",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Development Status :: 4 - Beta"
]
setup(
name='aanalytics2',
version=get_version("aanalytics2/__version__.py"),
license='Apache License 2.0',
description='Adobe Analytics API 2.0 python wrapper',
long_description=read("README.md"),
long_description_content_type='text/markdown',
author='Julien Piccini',
author_email='[email protected]',
url='https://github.com/pitchmuc/adobe-analytics-api-2.0',
keywords=['adobe', 'analytics', 'API', 'python'],
packages=find_packages(),
include_package_data=True,
install_requires=[
'pandas>=0.25.3',
'pathlib2',
'pathlib',
'requests',
'PyJWT[crypto]',
'PyJWT',
"dicttoxml",
"pytest",
"openpyxl>2.6.0"
],
classifiers=CLASSIFIERS,
python_requires='>=3.6'
)