Skip to content

Commit

Permalink
Fix fleet installation
Browse files Browse the repository at this point in the history
  • Loading branch information
rfst committed Jul 4, 2024
1 parent 18895eb commit 0ccb247
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .run/mobt start -m R,F b.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<env name="PYTHONUNBUFFERED" value="1" />
</envs>
<option name="SDK_HOME" value="" />
<option name="SDK_NAME" value="Python 3.11 (mob-tool)" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
<option name="SDK_NAME" value="Python 3.12 (mob-tool)" />
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$/tmp/repo-clone" />
<option name="IS_MODULE_SDK" value="false" />
<option name="ADD_CONTENT_ROOTS" value="true" />
<option name="ADD_SOURCE_ROOTS" value="true" />
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ To set up the development environment, follow these steps:
- Create a virtual environment with `python -m venv venv`.
- Install the app from the local repository with `pip install -e .`

e.g.:
```
rm -rfv venv
python -m venv venv
source ./venv/bin/activate
pip install -e .
```

## FAQ

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ dependencies = [
'requests==2.32.3',
'packaging==23.2',
'marshmallow==3.21.3',
'flet==0.23.2',
'flet==0.9.0',
'platformdirs==4.2.2',
'setuptools==70.1.1',
]
Expand Down
5 changes: 5 additions & 0 deletions src/mobt/Gui/GuiService.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import tarfile
from dataclasses import dataclass

import flet as ft

# Python 3.12+ gives a deprecation warning if TarFile.extraction_filter is None.
# https://docs.python.org/3.12/library/tarfile.html#tarfile-extraction-filter
if hasattr(tarfile, "fully_trusted_filter"):
tarfile.TarFile.extraction_filter = staticmethod(tarfile.fully_trusted_filter) # type: ignore

@dataclass(frozen=True)
class GuiService:
Expand Down

0 comments on commit 0ccb247

Please sign in to comment.