Skip to content

Commit 9280a22

Browse files
author
Mark Gibbs
committed
Update setup and related scripts
1 parent a77c3d8 commit 9280a22

File tree

5 files changed

+39
-5
lines changed

5 files changed

+39
-5
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
# django-plotly-dash
2-
Expose plotly dash apps as django tags
2+
3+
Expose plotly dash apps as django tags.
4+
5+
See the source for this project here:
6+
<https://github.com/GibbsConsulting/django-plotly-dash>.
7+

demo/demo/plotly_apps.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@ def callback_a(dropdown_value):
3535
[dash.dependencies.Input('dropdown-a', 'value'),
3636
dash.dependencies.Input('dropdown-b', 'value')])
3737
def callback_b(dropdown_value,other_dd):
38-
return 'You\'ve selected "{}"'.format(dropdown_value)
38+
return 'You\'ve selected "{}" and "{}"'.format(dropdown_value,
39+
other_dd)
3940

4041
a2 = DelayedDash("Ex2")
4142
a2.layout = html.Div([
4243
dcc.RadioItems(id="dropdown-one",options=[{'label':i,'value':j} for i,j in [
43-
("BEER","Beer"),("WIne","wine"),]
44-
],value="Beer"),
44+
("O2","Oxygen"),("N2","Nitrogen"),]
45+
],value="Oxygen"),
4546
html.Div(id="output-one")
4647
])
4748

prepare_demo

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22
#
33
source env/bin/activate
4+
python setup.py develop
45
cd demo
56
./manage.py migrate
67
./manage.py runserver

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ click==6.7
44
dash==0.21.1
55
dash-core-components==0.22.1
66
dash-html-components==0.10.1
7+
dash-renderer==0.12.1
78
decorator==4.3.0
89
Django==2.0.5
910
Flask==1.0.2

setup.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,40 @@
66

77
VERSION = dpd.__version__
88

9+
with open('README.md') as f:
10+
long_description = f.read()
11+
912
setup(
1013
name="django-plotly-dash",
1114
version=VERSION,
15+
url="https://github.com/GibbsConsulting/django-plotly-dash",
1216
description="Django use of plotly dash apps through template tags",
17+
long_description=long_description,
18+
long_description_content_type="text/markdown",
1319
author="Mark Gibbs",
1420
author_email="[email protected]",
21+
license='MIT',
1522
packages=[
1623
'django_plotly_dash',
17-
]
24+
],
25+
classifiers = [
26+
'Development Status :: 3 - Alpha',
27+
'Intended Audience :: Developers',
28+
'License :: OSI Approved :: MIT License',
29+
'Programming Language :: Python :: 3',
30+
],
31+
keywords='django plotly plotly-dash dash dashboard',
32+
project_urls = {
33+
'Source': "https://github.com/GibbsConsulting/django-plotly-dash",
34+
'Tracker': "https://github.com/GibbsConsulting/django-plotly-dash/issues",
35+
},
36+
install_requires = ['plotly',
37+
'dash',
38+
'dash-core-components',
39+
'dash-html-components',
40+
'dash-renderer',
41+
'Django',],
42+
python_requires=">=3",
43+
1844
)
1945

0 commit comments

Comments
 (0)