generated from broomva/databricks_session
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
113 lines (100 loc) · 3.06 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import glob
import io
import os
import sys
import setuptools
from setuptools import find_namespace_packages, find_packages
if sys.version_info < (3, 9):
find_namespace_packages()
print("Error: hyperopt_prophet does not support this version of Python.")
print("Please upgrade to Python 3.9 or higher.")
sys.exit(1)
def prepare_data_files(directory, extensions):
files = []
for ext in extensions:
files.extend(glob.glob(f"{directory}/*.{ext}"))
return files
data_files_structure = [
(
"hyperopt_prophet",
prepare_data_files(
"hyperopt_prophet",
["csv", "sql", "txt", "md", "html", "css", "json", "yaml", "faiss", "pkl"],
),
),
]
# Package metadata.
name = "hyperopt_prophet"
description = (
"A simple util to get a spark and mlflow session objects from an .env file"
)
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 3 - Alpha"
with open("requirements.txt") as f:
required = f.read().splitlines()
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
version = {}
with open(os.path.join(package_root, "version.py")) as fp:
exec(fp.read(), version)
version = version["__version__"]
readme_filename = os.path.join(package_root, "README.md")
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()
setuptools.setup(
name=name,
version=version,
description=description,
long_description=readme,
long_description_content_type="text/markdown",
author="Carlos D. Escobar-Valbuena",
author_email="[email protected]",
license="MIT",
classifiers=[
release_status,
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Python Modules",
],
packages=find_packages(),
install_requires=required,
python_requires=">=3.8",
include_package_data=True,
setup_requires=["setuptools", "wheel"],
tests_require=["pytest"],
test_suite="tests",
zip_safe=False,
url="https://github.com/Broomva/hyperopt_prophet",
package_data={
"hyperopt_prophet": [
"*.json",
"*.yaml",
"*.sql",
"*.csv",
"*.txt",
"*.md",
"*.html",
"*.css",
"*.pkl",
"*.faiss",
],
},
data_files=data_files_structure,
py_modules=["main"],
entry_points={
"console_scripts": [
"hyperopt_prophet=main:main",
],
},
)