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

Commit 23a5025

Browse files
authored
Merge pull request #128 from Sisyphus235/dev
update package and optimize dev env
2 parents 5ce33c8 + 00c2b8c commit 23a5025

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dash_uploader/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ def dash_version_is_at_least(req_version="1.12"):
1717
the argument "req_version".
1818
This is a private method, and should not be exposed to users.
1919
"""
20-
if isinstance(dash_version, version.LegacyVersion):
21-
return False
2220
return dash_version >= version.parse(req_version)
2321

2422

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
install_requires=["dash>=1.1.0", "packaging>= 21.0"],
2828
extras_require={
2929
"dev": [
30-
"pyyaml~=5.3.1", # building with dash-generate-components
30+
"pyyaml~=6.0", # building with dash-generate-components
3131
# Packages needed to run the tests.
3232
"black", # code formatting
3333
"pytest", # running tests
@@ -42,6 +42,7 @@
4242
# Needs: import chromedriver_binary to the top of your test script.
4343
"chromedriver-binary",
4444
"Werkzeug~=2.0.3",
45+
"packaging>22"
4546
]
4647
},
4748
classifiers=[

usage.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import uuid
2+
import sys
23

34
import dash_uploader as du
45
import dash
@@ -12,7 +13,7 @@
1213

1314
app = dash.Dash(__name__)
1415

15-
UPLOAD_FOLDER_ROOT = r"C:\tmp\Uploads"
16+
UPLOAD_FOLDER_ROOT = r"C:\tmp\Uploads" if sys.platform.startswith("win") else "/tmp/Uploads"
1617
du.configure_upload(app, UPLOAD_FOLDER_ROOT)
1718

1819

0 commit comments

Comments
 (0)