Skip to content

Commit ed59db7

Browse files
committed
Convert project to using pyproject.toml
1 parent 5dc9a11 commit ed59db7

File tree

9 files changed

+135
-147
lines changed

9 files changed

+135
-147
lines changed

pyproject.toml

+135
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
[build-system]
2+
requires = ["setuptools", "wheel"]
3+
build-backend = "setuptools.build_meta"
4+
5+
[project]
6+
name = "dash"
7+
dynamic = ["version"]
8+
authors = [{ name = "Chris Parmer", email = "[email protected]" }]
9+
description = "A Python framework for building reactive web-apps. Developed by Plotly."
10+
readme = "README.md"
11+
license = { text = "MIT" }
12+
requires-python = ">=3.8"
13+
classifiers = [
14+
"Development Status :: 5 - Production/Stable",
15+
"Environment :: Web Environment",
16+
"Framework :: Dash",
17+
"Framework :: Flask",
18+
"Intended Audience :: Developers",
19+
"Intended Audience :: Education",
20+
"Intended Audience :: Financial and Insurance Industry",
21+
"Intended Audience :: Healthcare Industry",
22+
"Intended Audience :: Manufacturing",
23+
"Intended Audience :: Science/Research",
24+
"License :: OSI Approved :: MIT License",
25+
"Programming Language :: Python",
26+
"Programming Language :: Python :: 3",
27+
"Programming Language :: Python :: 3.8",
28+
"Programming Language :: Python :: 3.9",
29+
"Programming Language :: Python :: 3.10",
30+
"Programming Language :: Python :: 3.11",
31+
"Programming Language :: Python :: 3.12",
32+
"Topic :: Database :: Front-Ends",
33+
"Topic :: Office/Business :: Financial :: Spreadsheet",
34+
"Topic :: Scientific/Engineering :: Visualization",
35+
"Topic :: Software Development :: Libraries :: Application Frameworks",
36+
"Topic :: Software Development :: Widget Sets",
37+
]
38+
dependencies = [
39+
"Flask>=1.0.4,<3.1",
40+
"Werkzeug<3.1",
41+
"plotly>=5.0.0",
42+
"importlib-metadata",
43+
"typing_extensions>=4.1.1",
44+
"requests",
45+
"retrying",
46+
"nest-asyncio",
47+
"setuptools"
48+
]
49+
50+
[project.urls]
51+
Documentation = "https://dash.plotly.com"
52+
Source = "https://github.com/plotly/dash"
53+
"Issue Tracker" = "https://github.com/plotly/dash/issues"
54+
55+
[project.scripts]
56+
dash-generate-components = "dash.development.component_generator:cli"
57+
renderer = "dash.development.build_process:renderer"
58+
dash-update-components = "dash.development.update_components:cli"
59+
60+
[project.entry-points."pytest11"]
61+
dash = "dash.testing.plugin"
62+
63+
[tool.setuptools]
64+
packages = { find = { exclude = ["tests*"] } }
65+
include-package-data = true
66+
67+
[tool.setuptools.dynamic]
68+
version = { attr = "dash.version.__version__" }
69+
70+
[tool.setuptools.package-data]
71+
"dash" = ["nbextension/*", "labextension/dist/*"]
72+
73+
[tool.setuptools.data-files]
74+
"share/jupyter/nbextensions/dash" = ["dash/nbextension/main.js"]
75+
"etc/jupyter/nbconfig/notebook.d" = ["dash/nbextension/dash.json"]
76+
"share/jupyter/lab/extensions" = ["dash/labextension/dist/dash-jupyterlab.tgz"]
77+
78+
[project.optional-dependencies]
79+
# Dependencies used by CI on github.com/plotly/dash
80+
ci = [
81+
"black==22.3.0",
82+
"flake8==7.0.0",
83+
"flaky==3.8.1",
84+
"flask-talisman==1.0.0",
85+
"ipython<9.0.0",
86+
"mimesis<=11.1.0",
87+
"mock==4.0.3",
88+
"numpy<=1.26.3",
89+
"orjson==3.10.3",
90+
"openpyxl",
91+
"pandas>=1.4.0",
92+
"pyarrow",
93+
"pylint==3.0.3",
94+
"pytest-mock",
95+
"pytest-sugar==0.9.6",
96+
"pyzmq==25.1.2",
97+
"xlrd>=2.0.1",
98+
"pytest-rerunfailures",
99+
"jupyterlab<4.0.0",
100+
"pyright==1.1.376;python_version>='3.7'"
101+
]
102+
# Dependencies used for development new Dash components
103+
dev = [
104+
"coloredlogs>=15.0.1",
105+
"fire>=0.4.0",
106+
"PyYAML>=5.4.1"
107+
]
108+
# Dependencies necessary for utilizing Dash provided testing utilities
109+
testing = [
110+
"beautifulsoup4>=4.8.2",
111+
"cryptography",
112+
"lxml>=4.6.2",
113+
"percy>=2.0.2",
114+
"pytest>=6.0.2",
115+
"requests[security]>=2.21.0",
116+
"selenium>=3.141.0,<=4.2.0",
117+
"waitress>=1.4.4",
118+
"multiprocess>=0.70.12",
119+
"psutil>=5.8.0",
120+
"dash_testing_stub>=0.0.2"
121+
]
122+
# Dependencies used by the CeleryLongCallbackManager
123+
celery = [
124+
"redis>=3.5.3",
125+
"celery[redis]>=5.1.2",
126+
]
127+
# Dependencies used by the DiskcacheLongCallbackManager
128+
diskcache = [
129+
"diskcache>=5.2.1",
130+
"multiprocess>=0.70.12",
131+
"psutil>=5.8.0"
132+
]
133+
compress = [
134+
"flask-compress"
135+
]

requirements/celery.txt

-3
This file was deleted.

requirements/ci.txt

-21
This file was deleted.

requirements/compress.txt

-1
This file was deleted.

requirements/dev.txt

-4
This file was deleted.

requirements/diskcache.txt

-4
This file was deleted.

requirements/install.txt

-9
This file was deleted.

requirements/testing.txt

-12
This file was deleted.

setup.py

-93
This file was deleted.

0 commit comments

Comments
 (0)