Skip to content

Commit 29285e7

Browse files
delsimdelsim
and
delsim
authored
Make compatible with latest Flask and Dash releases (#429)
* Make compatible with latest Flask and Dash releases * Bump version to 2.1.3 Co-authored-by: delsim <[email protected]>
1 parent f6b23f5 commit 29285e7

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

dev_requirements.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
asgiref
2-
attrs==19.3.0
2+
attrs
33
coveralls>=1.6.0
4-
channels>=2.0
54
channels-redis
65
daphne
76
dash-bootstrap-components
8-
Django>=2.0
97
django-bootstrap4
108
django-redis
119
dpd-static-support>=0.0.4

django_plotly_dash/dash_wrapper.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -375,10 +375,12 @@ def get_asset_url(self, asset_name):
375375
class PseudoFlask(Flask):
376376
'Dummy implementation of a Flask instance, providing stub functionality'
377377
def __init__(self):
378-
self.config = {}
378+
self.config = {'DEBUG': False}
379379
self.endpoints = {}
380380
self.name = "PseudoFlaskDummyName"
381381
self.blueprints = {}
382+
self._got_first_request = False
383+
self.before_request_funcs = {}
382384

383385
# pylint: disable=unused-argument, missing-docstring
384386

@@ -425,6 +427,8 @@ def __init__(self,
425427
kwargs['url_base_pathname'] = self._base_pathname
426428
kwargs['server'] = self._notflask
427429

430+
#xkwargs['DEBUG'] = kwargs.get('DEBUG', False)
431+
428432
super().__init__(__name__, **kwargs)
429433

430434
self.css.config.serve_locally = serve_locally

django_plotly_dash/version.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
2424
'''
2525

26-
__version__ = "2.1.2"
26+
__version__ = "2.1.3"

requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dpd-components
44

55
dash-bootstrap-components
66

7-
channels<3.0
7+
channels>=2.0
88
Django>=2.2,<4.0.0
99
Flask>=1.0.2
10-
Werkzeug>=2.0,<2.1
10+
Werkzeug

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@
4646

4747
'dash-bootstrap-components',
4848

49-
'channels<3.0',
49+
'channels>=2.0',
5050
'Django>=2.2,<4.0.0',
5151
'Flask>=1.0.2',
52-
'Werkzeug>=2.0,<2.1',
52+
'Werkzeug',
5353
],
5454
python_requires=">=3.8",
5555
)

0 commit comments

Comments
 (0)