flet-desktop 0.85.0.dev0__tar.gz → 0.85.0.dev2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-desktop
3
- Version: 0.85.0.dev0
3
+ Version: 0.85.0.dev2
4
4
  Summary: Flet Desktop client in Flutter
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
9
9
  Project-URL: Documentation, https://flet.dev/docs
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: flet==0.85.0.dev0
12
+ Requires-Dist: flet==0.85.0.dev2
13
13
 
14
14
  # Flet Desktop client in Flutter
15
15
 
@@ -1,13 +1,13 @@
1
1
  [project]
2
2
  name = "flet-desktop"
3
- version = "0.85.0.dev0"
3
+ version = "0.85.0.dev2"
4
4
  description = "Flet Desktop client in Flutter"
5
5
  authors = [{ name = "Appveyor Systems Inc.", email = "hello@flet.dev" }]
6
6
  license = "Apache-2.0"
7
7
  readme = "README.md"
8
8
  requires-python = ">=3.10"
9
9
  dependencies = [
10
- "flet==0.85.0.dev0"
10
+ "flet==0.85.0.dev2"
11
11
  ]
12
12
 
13
13
  [project.urls]
@@ -55,13 +55,13 @@ def get_package_bin_dir():
55
55
 
56
56
  def __get_desktop_flavor():
57
57
  """
58
- Return the desktop client flavor to use: ``"full"`` or ``"light"``.
58
+ Return the desktop client flavor to use: `"full"` or `"light"`.
59
59
 
60
60
  Resolution order:
61
61
 
62
- 1. ``FLET_DESKTOP_FLAVOR`` environment variable.
63
- 2. ``[tool.flet].desktop_flavor`` in the project's ``pyproject.toml``.
64
- 3. Default: ``"light"`` on Linux, ``"full"`` elsewhere.
62
+ 1. `FLET_DESKTOP_FLAVOR` environment variable.
63
+ 2. `[tool.flet].desktop_flavor` in the project's `pyproject.toml`.
64
+ 3. Default: `"light"` on Linux, `"full"` elsewhere.
65
65
  """
66
66
 
67
67
  env_flavor = os.environ.get("FLET_DESKTOP_FLAVOR", "").strip().lower()
@@ -93,9 +93,9 @@ def __get_desktop_flavor():
93
93
 
94
94
  def __get_system_glibc_version():
95
95
  """
96
- Return the system glibc version as a ``(major, minor)`` tuple.
96
+ Return the system glibc version as a `(major, minor)` tuple.
97
97
 
98
- Falls back to ``(0, 0)`` when detection fails.
98
+ Falls back to `(0, 0)` when detection fails.
99
99
  """
100
100
 
101
101
  try:
@@ -118,7 +118,7 @@ def __get_linux_distro_id():
118
118
 
119
119
  Uses glibc version detection to pick the best matching build target
120
120
  (highest glibc requirement that is <= system glibc). Can be
121
- overridden via the ``FLET_LINUX_DISTRO`` environment variable.
121
+ overridden via the `FLET_LINUX_DISTRO` environment variable.
122
122
  """
123
123
 
124
124
  override = os.environ.get("FLET_LINUX_DISTRO", "").strip()
@@ -139,13 +139,13 @@ def __get_linux_distro_id():
139
139
  return best
140
140
 
141
141
 
142
- def __get_artifact_filename():
142
+ def get_artifact_filename():
143
143
  """
144
144
  Return the release artifact filename for the current platform.
145
145
 
146
- Windows: ``flet-windows.zip``
147
- macOS: ``flet-macos.tar.gz``
148
- Linux: ``flet-linux-{distro}[-light]-{arch}.tar.gz``
146
+ Windows: `flet-windows.zip`
147
+ macOS: `flet-macos.tar.gz`
148
+ Linux: `flet-linux-{distro}[-light]-{arch}.tar.gz`
149
149
  """
150
150
 
151
151
  if is_windows():
@@ -165,8 +165,7 @@ def __get_client_storage_dir():
165
165
  """
166
166
  Return a versioned local directory used to store unpacked desktop client files.
167
167
 
168
- The path format is:
169
- ``~/.flet/client/flet-desktop-{flavor}-{version}``.
168
+ The path format is: `~/.flet/client/flet-desktop-{flavor}-{version}`.
170
169
  """
171
170
 
172
171
  flavor = __get_desktop_flavor()
@@ -180,11 +179,11 @@ def __download_flet_client(file_name):
180
179
  Download a Flet client archive from GitHub Releases.
181
180
 
182
181
  The download URL is constructed from the version embedded in
183
- ``flet_desktop.version.version``. It can be overridden entirely
184
- via the ``FLET_CLIENT_URL`` environment variable.
182
+ `flet_desktop.version.version`. It can be overridden entirely
183
+ via the `FLET_CLIENT_URL` environment variable.
185
184
 
186
185
  Args:
187
- file_name: Archive filename to download (e.g. ``flet-macos.tar.gz``).
186
+ file_name: Archive filename to download (e.g. `flet-macos.tar.gz`).
188
187
 
189
188
  Returns:
190
189
  Local path to the downloaded archive.
@@ -217,7 +216,7 @@ def ensure_client_cached():
217
216
  logger.info(f"Flet client found in cache: {cache_dir}")
218
217
  return cache_dir
219
218
 
220
- artifact = __get_artifact_filename()
219
+ artifact = get_artifact_filename()
221
220
 
222
221
  # Check for a bundled archive (PyInstaller or legacy wheel).
223
222
  bundled = os.path.join(get_package_bin_dir(), artifact)
@@ -327,22 +326,22 @@ def __locate_and_unpack_flet_view(page_url, assets_dir, hidden):
327
326
 
328
327
  Resolution strategy (per platform):
329
328
 
330
- 1. Prefer app binaries produced by ``flet build`` in the current workspace.
331
- 2. Use ``FLET_VIEW_PATH`` when provided.
332
- 3. Use cached / downloaded client from ``~/.flet/client/``.
329
+ 1. Prefer app binaries produced by `flet build` in the current workspace.
330
+ 2. Use `FLET_VIEW_PATH` when provided.
331
+ 3. Use cached / downloaded client from `~/.flet/client/`.
333
332
 
334
333
  Platform-specific launch commands are prepared for Windows, macOS, and Linux.
335
334
 
336
335
  Args:
337
336
  page_url: Page endpoint the desktop client should open.
338
337
  assets_dir: Optional assets directory passed to the client process.
339
- hidden: Whether to set ``FLET_HIDE_WINDOW_ON_START=true`` in process env.
338
+ hidden: Whether to set `FLET_HIDE_WINDOW_ON_START=true` in process env.
340
339
 
341
340
  Returns:
342
341
  A tuple containing:
343
- - ``list[str]``: command arguments for the desktop client.
344
- - ``dict[str, str]``: environment variables for the launched process.
345
- - ``str``: path to the temporary PID file.
342
+ - `list[str]`: command arguments for the desktop client.
343
+ - `dict[str, str]`: environment variables for the launched process.
344
+ - `str`: path to the temporary PID file.
346
345
 
347
346
  Raises:
348
347
  FileNotFoundError: If a required desktop executable or archive
@@ -0,0 +1 @@
1
+ version = "0.85.0.dev2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-desktop
3
- Version: 0.85.0.dev0
3
+ Version: 0.85.0.dev2
4
4
  Summary: Flet Desktop client in Flutter
5
5
  Author-email: "Appveyor Systems Inc." <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -9,7 +9,7 @@ Project-URL: Repository, https://github.com/flet-dev/flet
9
9
  Project-URL: Documentation, https://flet.dev/docs
10
10
  Requires-Python: >=3.10
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: flet==0.85.0.dev0
12
+ Requires-Dist: flet==0.85.0.dev2
13
13
 
14
14
  # Flet Desktop client in Flutter
15
15
 
@@ -0,0 +1 @@
1
+ flet==0.85.0.dev2
@@ -1 +0,0 @@
1
- version = "0.85.0.dev0"
@@ -1 +0,0 @@
1
- flet==0.85.0.dev0