forked from basnijholt/adaptive-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (55 loc) · 2.21 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
#!/usr/bin/env python3
# Copyright 2019 Bas Nijholt.
#
# This file is part of adaptive_scheduler. It is subject to the license terms
# in the file LICENSE found in the top-level directory of this distribution.
# A list of adaptive_scheduler authors can be found using git, with
# `git shortlog -s HEAD` and at
# https://github.com/basnijholt/adaptive-scheduler/graphs/contributors.
import sys
from setuptools import find_packages, setup
if sys.version_info < (3, 7):
print("adaptive-scheduler requires Python 3.7 or above.")
sys.exit(1)
def get_version_and_cmdclass(package_name):
import os
from importlib.util import module_from_spec, spec_from_file_location
spec = spec_from_file_location("version", os.path.join(package_name, "_version.py"))
module = module_from_spec(spec)
spec.loader.exec_module(module)
return module.__version__, module.cmdclass
version, cmdclass = get_version_and_cmdclass("adaptive_scheduler")
with open("requirements.txt") as f:
requirements = f.read().split()
with open("README.rst") as f:
readme = f.read()
setup(
name="adaptive_scheduler",
version=version,
cmdclass=cmdclass,
python_requires=">=3.7",
packages=find_packages(),
include_package_data=True,
maintainer="Bas Nijholt",
maintainer_email="bas@nijho.lt",
description="Run many `adaptive.Learner`s on many cores (>10k) using `mpi4py.futures`, `ipyparallel`, `dask-mpi`, or `process-pool`.",
long_description=readme,
long_description_content_type="text/x-rst",
license="BSD-3",
url="https://github.com/basnijholt/adaptive-scheduler",
download_url="https://pypi.python.org/pypi/adaptive_scheduler",
install_requires=requirements,
extras_require={"all": ["dask_mpi"]},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.7",
"Topic :: Scientific/Engineering",
"Topic :: System :: Distributed Computing",
],
)