diff --git a/requirements.txt b/requirements.txt index c4392aa1..3f0d139a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,7 +19,8 @@ python-dotenv>=0.15,<0.16 responses slackblocks tldextract>=2.2,<2.3 -werkzeug>=3,<4 +werkzeug>=2,<3; python_version < '3.8' +werkzeug>=3,<4; python_version >= '3.8' watchdog>=2,<3 whitenoise>=5.2,<5.3 pyjwt>=2.4,<2.5 diff --git a/setup.py b/setup.py index b5a77a49..ae8eb6a9 100644 --- a/setup.py +++ b/setup.py @@ -56,7 +56,8 @@ "dotty_dict>=1.3.0,<1.40", "pyjwt>=2.4,<2.5", "pytest>=7,<8", - "werkzeug>=3,<4", + "werkzeug>=2,<3; python_version < '3.8'", + "werkzeug>=3,<4; python_version >= '3.8'", "watchdog>=2,<=4", ], # See https://pypi.python.org/pypi?%3Aaction=list_classifiers