-
Notifications
You must be signed in to change notification settings - Fork 23
/
setup.py
66 lines (57 loc) · 1.96 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 logging
import os
import re
import setuptools
logger = logging.getLogger(__name__)
ROOT_DIR = os.path.dirname(__file__)
def find_version(*paths):
version_file_path = os.path.join(ROOT_DIR, *paths)
with open(version_file_path) as file_stream:
version_match = re.search(
r"^__version__ = ['\"]([^'\"]*)['\"]", file_stream.read(), re.M
)
if version_match:
return version_match.group(1)
raise RuntimeError(f"Failed to find version at: {version_file_path}")
with open(os.path.join(ROOT_DIR, "README.md"), "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="deltacat",
version=find_version("deltacat", "__init__.py"),
author="Ray Team",
description="A scalable, fast, ACID-compliant Data Catalog powered by Ray.",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/ray-project/deltacat",
packages=setuptools.find_packages(where=".", include="deltacat*"),
install_requires=[
# any changes here should also be reflected in requirements.txt
"aws-embedded-metrics == 3.2.0",
"boto3 ~= 1.34",
"numpy == 1.21.5",
"pandas == 1.3.5",
"pyarrow == 12.0.1",
"pydantic == 1.10.4",
"ray >= 2.20.0",
"s3fs == 2024.5.0",
"tenacity == 8.1.0",
"typing-extensions == 4.4.0",
"pymemcache == 4.0.0",
"redis == 4.6.0",
"getdaft == 0.3.6",
"schedule == 1.2.0",
],
setup_requires=["wheel"],
package_data={
"compute/metastats": ["*.yaml"],
},
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Operating System :: OS Independent",
],
python_requires=">=3.9",
)