-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathsetup.py
33 lines (30 loc) · 1.05 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
import pathlib
import setuptools
HERE = pathlib.Path(__file__).parent
README = (HERE / "README.md").read_text()
with (HERE / "devcluster" / "__init__.py").open() as f:
firstline = next(iter(f))
assert firstline.startswith("__version__ = ")
version = firstline.split('"')[1]
setuptools.setup(
name="devcluster",
version=version,
author="Determined AI",
author_email="hello@determined.ai",
url="https://github.com/determined-ai/devcluster/",
license="Apache License 2.0",
classifiers=["License :: OSI Approved :: Apache Software License"],
description="Developer tool for running the Determined cluster",
long_description=README,
long_description_content_type="text/markdown",
python_requires=">=3.6",
packages=["devcluster"],
entry_points={"console_scripts": ["devcluster = devcluster.__main__:main"]},
include_package_data=True,
install_requires=[
"appdirs",
"pyyaml",
# in python 3.9, we use importlib.resources instead
"setuptools;python_version<'3.9'",
],
)