forked from NREL/buildstockbatch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
105 lines (96 loc) · 2.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
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
#!/usr/bin/env python
from codecs import open
import os
import setuptools
here = os.path.abspath(os.path.dirname(__file__))
metadata = {}
with open(os.path.join(here, "buildstockbatch", "__version__.py"), "r", encoding="utf-8") as f:
exec(f.read(), metadata)
with open("README.md", "r", "utf-8") as f:
readme = f.read()
gcp_requires = [
"gcsfs",
"google-cloud-artifact-registry",
"google-cloud-batch",
"google-cloud-compute",
"google-cloud-run",
"google-cloud-storage",
"tqdm",
]
aws_requires = [
"dask-cloudprovider[aws]",
]
setuptools.setup(
name=metadata["__title__"],
version=metadata["__version__"],
author=metadata["__author__"],
author_email=metadata["__author_email__"],
description=metadata["__description__"],
long_description=readme,
long_description_content_type="text/markdown",
url=metadata["__url__"],
packages=setuptools.find_packages(),
python_requires=">=3.8",
package_data={"buildstockbatch": ["*.sh", "schemas/*.yaml"], "": ["LICENSE"]},
install_requires=[
"pyyaml",
"requests",
"numpy",
"pandas>=2",
"joblib",
"pyarrow",
"dask[complete]>=2022.10.0",
"docker",
"s3fs[boto3]",
"fsspec",
"yamale",
"ruamel.yaml",
"lxml",
"semver",
"tqdm",
],
extras_require={
"dev": [
"pytest",
"pytest-mock",
"pytest-cov",
"testfixtures",
"Sphinx",
"sphinx_rtd_theme>=1.1.0",
"sphinx-autobuild",
"sphinxcontrib-programoutput",
"sphinx_paramlinks",
"changelog",
"flake8",
"black~=24.0",
"rope",
"doc8",
"pre-commit",
]
+ gcp_requires
+ aws_requires,
"gcp": gcp_requires,
"aws": aws_requires,
},
entry_points={
"console_scripts": [
"buildstock_local=buildstockbatch.local:main",
"buildstock_eagle=buildstockbatch.hpc:eagle_cli",
"buildstock_kestrel=buildstockbatch.hpc:kestrel_cli",
"buildstock_gcp=buildstockbatch.gcp.gcp:main",
"buildstock_aws=buildstockbatch.aws.aws:main",
]
},
license="BSD-3",
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Natural Language :: English",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
)