-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
66 lines (58 loc) · 1.76 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
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="cjapy",
version=get_version("cjapy/__version__.py"),
license="GPL",
description="Adobe Customer Journey Analytics API",
long_description=read("README.md"),
long_description_content_type="text/markdown",
author="Julien Piccini",
author_email="piccini.julien@gmail.com",
url="https://github.com/pitchmuc/cjapy",
keywords=[
"adobe",
"analytics",
"API",
"python",
"Customer Journey Analytics",
"CJA",
],
packages=find_packages(),
include_package_data=True,
install_requires=[
"pandas",
"pathlib2",
"pathlib",
"requests",
"PyJWT[crypto]",
"PyJWT",
"pytest",
],
classifiers=CLASSIFIERS,
python_requires=">=3.6",
)