Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package/PartSeg/state_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import os
import sys

import appdirs
import packaging.version
import platformdirs

from PartSeg import APP_LAB, APP_NAME, __version__, parsed_version

Expand All @@ -28,7 +28,7 @@
save_suffix = ""
#: path to folder where save settings
save_folder = os.path.join(
os.environ.get("PARTSEG_SETTINGS_DIR", appdirs.user_data_dir(APP_NAME, APP_LAB)),
os.environ.get("PARTSEG_SETTINGS_DIR", platformdirs.user_data_dir(APP_NAME, APP_LAB)),
str(packaging.version.parse(__version__).base_version),
)

Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ classifiers = [
"Development Status :: 3 - Alpha",
"Framework :: napari",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3"
,
Comment on lines +20 to +21
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (bug_risk): The comma on a separate line likely makes this TOML array invalid.

In TOML, commas must appear on the same line as the preceding value. Putting the comma on its own line makes the array invalid and can break pyproject.toml parsing. Please keep the comma at the end of the value line instead.

"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
Expand Down Expand Up @@ -45,7 +46,7 @@ dependencies = [
"QtAwesome!=1.2.0,>=1.0.3",
"QtPy>=1.10.0",
"SimpleITK>=2.1.0",
"appdirs>=1.4.4",
"platformdirs>=4.3.0",
"czifile>=2019.5.22",
"defusedxml>=0.6.0",
"fonticon-fontawesome6>=6.1.1",
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.4.0
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.10_pydantic_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-doc==0.0.4
# via typer
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.11.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.4.0
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.11_pydantic_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-doc==0.0.4
# via typer
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.12.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.4.0
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.12_docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.4.0
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.12_pydantic_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-doc==0.0.4
# via typer
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.4.0
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.13_pydantic_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-doc==0.0.4
# via typer
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ annotated-types==0.7.0
# via pydantic
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
2 changes: 1 addition & 1 deletion requirements/constraints_py3.9_pydantic_1.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ annotated-doc==0.0.4
# via typer
app-model==0.3.2
# via napari
appdirs==1.4.4

# via
# partseg (pyproject.toml)
# napari
Expand Down
Loading