-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathsetup.py
58 lines (50 loc) · 1.72 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
import os
from pathlib import Path
from setuptools import find_packages, setup
def long_description():
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, "README.rst"), encoding="utf8") as fh:
return fh.read()
def get_version():
version = {}
with open(Path(__file__).parent / "dagit/version.py", encoding="utf8") as fp:
exec(fp.read(), version)
return version["__version__"]
ver = get_version()
# dont pin dev installs to avoid pip dep resolver issues
pin = "" if ver == "1!0+dev" else f"=={ver}"
setup(
name="dagit",
version=ver,
author="Dagster Labs",
author_email="hello@dagsterlabs.com",
license="Apache-2.0",
description="Web UI for dagster.",
long_description=long_description(),
long_description_content_type="text/markdown",
url="https://github.com/dagster-io/dagster",
classifiers=[
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
],
packages=find_packages(exclude=["dagit_tests*"]),
include_package_data=True,
python_requires=">=3.9,<3.13",
install_requires=[
f"dagster-webserver{pin}",
],
extras_require={
"notebook": [f"dagster-webserver[notebook]{pin}"], # notebooks support
"test": [f"dagster-webserver[test]{pin}"], # TestClient deps in full
},
entry_points={
"console_scripts": [
"dagit = dagster_webserver.cli:main",
"dagit-debug = dagster_webserver.debug:main",
]
},
)