-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathsetup.py
55 lines (47 loc) · 1.73 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
from os import path
from pathlib import Path
from setuptools import find_packages, setup
this_dir = path.abspath(path.dirname(__file__))
with open(path.join(this_dir, "README.md"), encoding="utf-8") as f:
long_description = f.read()
def reqs(file_path):
with open(Path(file_path)) as fh:
return [
r.strip()
for r in fh.readlines()
if not (r.startswith("#") or r.startswith("\n"))
]
aws_deps = ["boto3", "smart_open[s3]"]
gcp_deps = ["smart_open[gcs]", "google-cloud-kms"]
azure_deps = ["smart_open[azure]", "azure-identity", "azure-keyvault"]
setup(
name="gretel-client",
author="Gretel Labs, Inc.",
author_email="[email protected]",
use_scm_version=True,
setup_requires=["setuptools_scm"],
description="Balance, anonymize, and share your data. With privacy guarantees.",
url="https://github.com/gretelai/gretel-python-client",
long_description=long_description,
long_description_content_type="text/markdown",
package_dir={"": "src"},
packages=find_packages("src"),
python_requires=">=3.9",
entry_points={"console_scripts": ["gretel=gretel_client.cli.cli:cli"]},
install_requires=reqs("requirements/base.txt"),
tests_require=reqs("requirements/test.txt"),
extras_require={
"aws": aws_deps,
"gcp": gcp_deps,
"azure": azure_deps,
"tuner": reqs("requirements/tuner.txt"),
"test": reqs("requirements/test.txt"),
},
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)