|
1 |
| -import io |
2 |
| -from setuptools import setup, find_packages |
3 |
| - |
4 |
| -main_ns = {} |
5 |
| -exec(open("dash/version.py", encoding="utf-8").read(), main_ns) # pylint: disable=exec-used, consider-using-with |
6 |
| - |
7 |
| - |
8 |
| -def read_req_file(req_type): |
9 |
| - with open(f"requires-{req_type}.txt", encoding="utf-8") as fp: |
10 |
| - requires = (line.strip() for line in fp) |
11 |
| - return [req for req in requires if req and not req.startswith("#")] |
| 1 | +from setuptools import setup |
12 | 2 |
|
13 | 3 |
|
14 | 4 | setup(
|
15 |
| - name="dash", |
16 |
| - version=main_ns["__version__"], |
17 |
| - author="Chris Parmer", |
18 |
| - |
19 |
| - packages=find_packages(exclude=["tests*"]), |
20 |
| - include_package_data=True, |
21 |
| - license="MIT", |
22 |
| - description=( |
23 |
| - "A Python framework for building reactive web-apps. " |
24 |
| - "Developed by Plotly." |
25 |
| - ), |
26 |
| - long_description=io.open("README.md", encoding="utf-8").read(), # pylint: disable=consider-using-with |
27 |
| - long_description_content_type="text/markdown", |
28 |
| - install_requires=read_req_file("install"), |
29 |
| - python_requires=">=3.8", |
30 |
| - extras_require={ |
31 |
| - "ci": read_req_file("ci"), |
32 |
| - "dev": read_req_file("dev"), |
33 |
| - "testing": read_req_file("testing"), |
34 |
| - "celery": read_req_file("celery"), |
35 |
| - "diskcache": read_req_file("diskcache"), |
36 |
| - "compress": read_req_file("compress") |
37 |
| - }, |
38 |
| - entry_points={ |
39 |
| - "console_scripts": [ |
40 |
| - "dash-generate-components = " |
41 |
| - "dash.development.component_generator:cli", |
42 |
| - "renderer = dash.development.build_process:renderer", |
43 |
| - "dash-update-components = dash.development.update_components:cli" |
44 |
| - ], |
45 |
| - "pytest11": ["dash = dash.testing.plugin"], |
46 |
| - }, |
47 |
| - url="https://plotly.com/dash", |
48 |
| - project_urls={ |
49 |
| - "Documentation": "https://dash.plotly.com", |
50 |
| - "Source": "https://github.com/plotly/dash", |
51 |
| - "Issue Tracker": "https://github.com/plotly/dash/issues", |
52 |
| - }, |
53 |
| - classifiers=[ |
54 |
| - "Development Status :: 5 - Production/Stable", |
55 |
| - "Environment :: Web Environment", |
56 |
| - "Framework :: Dash", |
57 |
| - "Framework :: Flask", |
58 |
| - "Intended Audience :: Developers", |
59 |
| - "Intended Audience :: Education", |
60 |
| - "Intended Audience :: Financial and Insurance Industry", |
61 |
| - "Intended Audience :: Healthcare Industry", |
62 |
| - "Intended Audience :: Manufacturing", |
63 |
| - "Intended Audience :: Science/Research", |
64 |
| - "License :: OSI Approved :: MIT License", |
65 |
| - "Programming Language :: Python", |
66 |
| - "Programming Language :: Python :: 3", |
67 |
| - "Programming Language :: Python :: 3.8", |
68 |
| - "Programming Language :: Python :: 3.9", |
69 |
| - "Programming Language :: Python :: 3.10", |
70 |
| - "Programming Language :: Python :: 3.11", |
71 |
| - "Programming Language :: Python :: 3.12", |
72 |
| - "Topic :: Database :: Front-Ends", |
73 |
| - "Topic :: Office/Business :: Financial :: Spreadsheet", |
74 |
| - "Topic :: Scientific/Engineering :: Visualization", |
75 |
| - "Topic :: Software Development :: Libraries :: Application Frameworks", |
76 |
| - "Topic :: Software Development :: Widget Sets", |
77 |
| - ], |
78 | 5 | data_files=[
|
79 | 6 | # like `jupyter nbextension install --sys-prefix`
|
80 | 7 | ("share/jupyter/nbextensions/dash", [
|
81 |
| - "dash/nbextension/main.js", |
| 8 | + "src/dash/nbextension/main.js", |
82 | 9 | ]),
|
83 | 10 | # like `jupyter nbextension enable --sys-prefix`
|
84 | 11 | ("etc/jupyter/nbconfig/notebook.d", [
|
85 |
| - "dash/nbextension/dash.json" |
| 12 | + "src/dash/nbextension/dash.json" |
86 | 13 | ]),
|
87 | 14 | # Place jupyterlab extension in extension directory
|
88 | 15 | ("share/jupyter/lab/extensions", [
|
89 |
| - "dash/labextension/dist/dash-jupyterlab.tgz" |
| 16 | + "src/dash/labextension/dist/dash-jupyterlab.tgz" |
90 | 17 | ]),
|
91 | 18 | ],
|
92 | 19 | )
|
0 commit comments