Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit ea46355

Browse files
committed
Add requirements.txt and requirements-dev.txt
1 parent 327f9cf commit ea46355

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
jupyterlab>=2.0

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dash
2+
requests
3+
flask
4+
retrying
5+
ipython
6+
ipykernel

setup.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,25 @@ def run(self):
8989
)
9090

9191

92+
# Load requirements.txt
93+
with open(os.path.join(here, 'requirements.txt')) as f:
94+
requirements = [req.strip() for req in f.read().split('\n')]
95+
96+
# Load requirements-dev.txt
97+
with open(os.path.join(here, 'requirements-dev.txt')) as f:
98+
dev_requirements = [req.strip() for req in f.read().split('\n')]
99+
100+
92101
setup(
93102
name='jupyter-dash',
94103
version=__version__,
95104
description="Dash support for the Jupyter notebook interface",
96105
author='Plotly',
97106
packages=['jupyter_dash'],
98-
install_requires=['dash', 'requests', 'flask', 'retrying', 'ipython'],
107+
install_requires=requirements,
108+
extras_require={
109+
'dev': dev_requirements
110+
},
99111
include_package_data=True,
100112
package_data={
101113
"jupyter_dash": [

0 commit comments

Comments
 (0)