File tree 3 files changed +15
-3
lines changed
3 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 9
9
```
10
10
python3 -m venv .venv
11
11
. .venv/bin/activate
12
- pip install git+https://github.com/wjakob/nanobind 'scikit-build-core[pyproject]' click glfw pyopengl numpy requests
12
+ pip install git+https://github.com/wjakob/nanobind 'scikit-build-core[pyproject]' click glfw pyopengl numpy requests toml
13
13
pip install --no-build-isolation -ve .
14
14
python gen/gen_nb_enums.py > src/im_enums.inl
15
15
```
@@ -19,7 +19,7 @@ Windows:
19
19
```
20
20
python3 -m venv .venv
21
21
.venv\Scripts\activate.bat
22
- pip install git+https://github.com/wjakob/nanobind scikit-build-core[pyproject] click glfw pyopengl numpy
22
+ pip install git+https://github.com/wjakob/nanobind scikit-build-core[pyproject] click glfw pyopengl numpy requests toml
23
23
pip install --no-build-isolation -ve .
24
24
python gen\gen_nb_enums.py > src\im_enums.inl
25
25
```
@@ -39,4 +39,5 @@ NOTE NOTE! imconfig.h contains slimgui changes! Review after updating imgui.
39
39
- update the imgui folder in the cimgui checkout with an imgui source release
40
40
- cd generator && ./generator
41
41
- dump the generator/output contents into gen/cimgui
42
+ - update imgui version in pyproject.toml
42
43
```
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ set -e
11
11
python gen/gen_nb_enums.py > src/im_enums.inl
12
12
pip install --no-build-isolation -ve .
13
13
14
+ # Get the value of tool.slimgui.imgui_version from pyproject.toml and
15
+ # check that slimgui.get_version() returns the same value. It's to ensure
16
+ # pyproject.toml imgui_version field is up to date.
17
+ IMGUI_VERSION=$( python -c " import toml; print(toml.load('pyproject.toml')['tool']['slimgui']['imgui_version'])" )
18
+ python -c " import slimgui; assert slimgui.get_version() == '$IMGUI_VERSION '"
19
+
14
20
python -m nanobind.stubgen -i build/cp312-abi3-macosx_15_0_arm64 -q -m slimgui_ext -o src/slimgui/slimgui_ext.pyi
15
21
python gen/amend_func_docs.py --cimgui-definitions-file gen/cimgui/definitions.json --imgui-h src/c/imgui/imgui.h --pyi-file src/slimgui/slimgui_ext.pyi -o src/slimgui/slimgui_ext.pyi
16
22
python gen/build_docs.py --pyi-file src/slimgui/slimgui_ext.pyi --output docs/index.html docs/apiref.md
Original file line number Diff line number Diff line change @@ -12,13 +12,18 @@ authors = [
12
12
{
name =
" Janne Hellsten" ,
email =
" [email protected] " },
13
13
]
14
14
classifiers = [
15
- " License :: OSI Approved :: BSD License" ,
15
+ " Development Status :: 3 - Alpha" ,
16
+ " Intended Audience :: Developers" ,
17
+ " License :: OSI Approved :: MIT License" ,
16
18
]
17
19
18
20
[project .urls ]
19
21
Documentation = " https://nurpax.github.io/slimgui/"
20
22
Repository = " https://github.com/nurpax/slimgui"
21
23
24
+ [tool .slimgui ]
25
+ imgui_version = " 1.91.9"
26
+
22
27
[tool .pytest .ini_options ]
23
28
testpaths = [ " tests" , " gen" ]
24
29
You can’t perform that action at this time.
0 commit comments