-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
56 lines (49 loc) · 2.11 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
# Copyright 2023 Adobe. All rights reserved.
# This file is licensed to you under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. You may obtain a copy
# of the License at http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software distributed under
# the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
# OF ANY KIND, either express or implied. See the License for the specific language
# governing permissions and limitations under the License.
import codecs
import os
import setuptools
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.")
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="aepp", # Replace with your own username
version=get_version("aepp/__version__.py"),
author="Julien Piccini",
author_email="piccini.julien@gmail.com",
description="Package to manage AEP API endpoint and some helper functions",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/adobe/aepp",
packages=setuptools.find_packages(),
include_package_data=True,
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Topic :: Utilities",
"Topic :: Internet",
"Topic :: Software Development :: Libraries",
"Development Status :: 2 - Pre-Alpha"
],
python_requires='>=3.6',
install_requires=['pandas', "requests",
"PyJWT", "pathlib2", "PyJWT[crypto]", "tenacity", "deprecation"],
)