File tree Expand file tree Collapse file tree 6 files changed +34
-13
lines changed Expand file tree Collapse file tree 6 files changed +34
-13
lines changed Original file line number Diff line number Diff line change 1+ # /// script
2+ # dependencies = ["pyyaml"]
3+ # ///
4+
15import os
26import pathlib
37import sys
1721 "flet" ,
1822]
1923
20- with open (pubspec_path , "r" ) as f :
24+ with open (pubspec_path ) as f :
2125 data = yaml .safe_load (f )
2226
2327 # patch version
Original file line number Diff line number Diff line change 1+ # /// script
2+ # dependencies = ["tomlkit"]
3+ # ///
4+
15import os
26import pathlib
37import sys
1418print (f"Patching TOML file { toml_path } to { ver } " )
1519
1620# read
17- with open (toml_path , "r" ) as f :
21+ with open (toml_path ) as f :
1822 t = tomlkit .parse (f .read ())
1923
2024# patch version
Original file line number Diff line number Diff line change 1+ paths : src/flet_flashlight
2+ badge : ./docs/assets/badges/docs-coverage.svg
3+ skip_file_doc : True
4+ skip_private : False
5+ ignore_patterns : # Dict with key/value pairs of file-pattern/node-pattern
6+ .* : __post_init__ # Ignore __post_init__ in all files
7+ fail_under : 50
Original file line number Diff line number Diff line change @@ -3,23 +3,20 @@ image: ubuntu
33version : ' 0.1.{build}'
44
55environment :
6+ PYTHON_VERSION : 3.12
67 UV_PUBLISH_TOKEN :
78 secure : 174ncAbF5IjSIkmioPt62jeSnzmTlRNchUkE4QdjDWH8xK1olYtySXLJpo2q95HcP7lWJky1hv4APESiRRHnBWoY0XRFafzM/mbCDMzG1tZXiXZmpP1qzHAtRP2QSCIg18xh1TMktraUdTi7sbJnjjRhqzgbW1k0kLBxKw79MPFBhYQ/TiGcmaYWZbWVZNY3HCUCb6Dt7bG1OE2Ul9rD1gvs55xwO9Oq9FOVA1VnMYw=
89
9- stack :
10- - python 3.12
11-
1210install :
1311- source .ci/update_build_version.sh
14- - python --version
15- - python -m ensurepip --upgrade
16- - pip3 install --upgrade tomlkit pyyaml
1712- curl -LsSf https://astral.sh/uv/install.sh | sh
18- - export PATH=$HOME/.local/bin:$PATH
13+ - export PATH="$HOME/.local/bin:$PATH"
14+ - uv python install $PYTHON_VERSION
15+ - uv python pin $PYTHON_VERSION
1916
2017build_script :
21- - python .ci/patch_toml_version.py pyproject.toml $PYPI_VER
22- - python .ci/patch_pubspec_version.py src/flutter/flet_*/pubspec.yaml $PKG_VER
18+ - uv run .ci/patch_toml_version.py pyproject.toml $PYPI_VER
19+ - uv run .ci/patch_pubspec_version.py src/flutter/flet_*/pubspec.yaml $PKG_VER
2320- (cd src/flutter/* && dart pub get && dart analyze && cd -)
2421- uv build
2522
@@ -32,4 +29,4 @@ deploy_script:
3229artifacts :
3330- path : dist/*.whl
3431
35- test : off
32+ test : off
Original file line number Diff line number Diff line change @@ -114,6 +114,11 @@ plugins:
114114 alias_type : symlink
115115 - glightbox
116116 - section-index
117+ - external-images :
118+ mappings :
119+ - source_dir : examples
120+ target_url_path : examples
121+ include_exts : [ ".png", ".gif", ".svg" ]
117122 - mkdocstrings :
118123 default_handler : python_xref
119124 handlers :
@@ -139,7 +144,6 @@ plugins:
139144 preload_modules : [ flet ]
140145 filters :
141146 - " !^_" # Exclude private members starting with only one underscore
142- - " !get_event_field_type"
143147 extensions :
144148 - griffe_modernized_annotations
145149 - griffe_warnings_deprecated
@@ -190,3 +194,4 @@ markdown_extensions:
190194 - pymdownx.tasklist :
191195 custom_checkbox : true
192196 - pymdownx.tilde
197+ - pymdownx.blocks.caption
Original file line number Diff line number Diff line change @@ -52,13 +52,17 @@ docs = [
5252 " markdown-exec[ansi] >=1.11.0" ,
5353 " pydocstyle >=6.3.0" ,
5454 " linkcheckmd >=1.4.0" ,
55+ " mkdocs-external-images" ,
5556 { include-group = ' docs-coverage' },
5657]
5758all = [
5859 { include-group = ' dev' },
5960 { include-group = ' docs' },
6061]
6162
63+ [tool .uv .sources ]
64+ mkdocs-external-images = { git = " https://github.com/flet-dev/mkdocs-external-images" , tag = " v0.2.0" }
65+
6266[build-system ]
6367requires = [" setuptools" ]
6468build-backend = " setuptools.build_meta"
You can’t perform that action at this time.
0 commit comments