forked from dask/dask-mpi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (50 loc) · 1.66 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
from os.path import exists
import yaml
from setuptools import setup
import versioneer
def environment_dependencies(obj, dependencies=None):
if dependencies is None:
dependencies = []
# if isinstance(obj, string_types):
# dependencies.append(obj.replace('=', '=='))
elif isinstance(obj, dict):
if "dependencies" in obj:
environment_dependencies(obj["dependencies"], dependencies=dependencies)
elif "pip" in obj:
environment_dependencies(obj["pip"], dependencies=dependencies)
elif isinstance(obj, list):
for d in obj:
environment_dependencies(d, dependencies=dependencies)
return dependencies
with open("environment.yml") as f:
install_requires = environment_dependencies(yaml.safe_load(f))
if exists("README.rst"):
with open("README.rst") as f:
long_description = f.read()
else:
long_description = ""
setup(
name="dask-mpi",
version=versioneer.get_version(),
cmdclass=versioneer.get_cmdclass(),
description="Deploy Dask using mpi4py",
url="https://github.com/dask/dask-mpi",
project_urls={
"Documentation": "https://mpi.dask.org/",
"Source": "https://github.com/dask/dask-mpi",
"Tracker": "https://github.com/dask/dask-mpi/issues",
},
maintainer="Kevin Paul",
maintainer_email="kpaul@ucar.edu",
license="BSD 3-Clause",
include_package_data=True,
install_requires=install_requires,
python_requires=">=3.6",
packages=["dask_mpi"],
long_description=long_description,
entry_points="""
[console_scripts]
dask-mpi=dask_mpi.cli:main
""",
zip_safe=False,
)