forked from googleapis/python-bigquery-dataframes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
116 lines (105 loc) · 3.67 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
114
115
116
# Copyright 2022 Google LLC
#
# Licensed 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 CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import io
import itertools
import os
from typing import Dict
import setuptools
# Package metadata.
name = "bigframes"
description = (
"BigQuery DataFrames -- scalable analytics and machine learning with BigQuery"
)
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 3 - Alpha"
dependencies = [
"cloudpickle >= 2.0.0",
"fsspec >=2023.3.0",
"gcsfs >=2023.3.0",
"geopandas >=0.12.2",
"google-auth >2.14.1,<3.0dev",
"google-cloud-bigquery[bqstorage,pandas] >=3.10.0",
"google-cloud-functions >=1.10.1",
"google-cloud-bigquery-connection >=1.12.0",
"google-cloud-iam >=2.12.1",
"google-cloud-resource-manager >=1.10.3",
"google-cloud-storage >=2.0.0",
# TODO: Relax upper bound once we have fixed `system_prerelease` tests.
"ibis-framework[bigquery] >=6.2.0,<7.0.0dev",
"pandas >=1.5.0,<2.1.4",
"pydata-google-auth >=1.8.2",
"requests >=2.27.1",
"scikit-learn >=1.2.2",
"sqlalchemy >=1.4,<3.0dev",
"tabulate >= 0.9",
"ipywidgets >=7.7.1",
"humanize >= 4.6.0",
]
extras = {
# Optional test dependencies packages. If they're missed, may skip some tests.
"tests": [
"pandas-gbq >=0.19.0",
],
# Packages required for basic development flow.
"dev": ["pytest", "pytest-mock", "pre-commit", "nox", "google-cloud-testutils"],
}
extras["all"] = list(sorted(frozenset(itertools.chain.from_iterable(extras.values()))))
# Setup boilerplate below this line.
package_root = os.path.abspath(os.path.dirname(__file__))
readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()
version: Dict[str, str] = {}
with open(os.path.join(package_root, "bigframes/version.py")) as fp:
exec(fp.read(), version)
version_id = version["__version__"]
# Only include packages under the 'bigframes' namespace. Do not include tests,
# benchmarks, etc.
packages = [
package
for package in setuptools.PEP420PackageFinder.find()
if package.startswith("bigframes") or package.startswith("third_party")
]
setuptools.setup(
name=name,
version=version_id,
description=description,
long_description=readme,
author="Google LLC",
author_email="[email protected]",
license="Apache 2.0",
url="https://github.com/googleapis/python-bigquery-dataframes",
classifiers=[
release_status,
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Topic :: Internet",
],
install_requires=dependencies,
extras_require=extras,
platforms="Posix; MacOS X; Windows",
packages=packages,
python_requires=">=3.9",
include_package_data=True,
zip_safe=False,
)