PyImGui 0.1.0__tar.gz → 0.1.1__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.
- {pyimgui-0.1.0 → pyimgui-0.1.1}/.github/workflows/wheels.yml +15 -11
- {pyimgui-0.1.0 → pyimgui-0.1.1}/PKG-INFO +3 -3
- {pyimgui-0.1.0 → pyimgui-0.1.1}/README.md +2 -2
- {pyimgui-0.1.0 → pyimgui-0.1.1}/pyproject.toml +1 -1
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/__init__.py +5 -16
- pyimgui-0.1.1/src/imgui/imguizmo.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_dx12.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_metal.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_metal4.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_opengl3.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_sdl3.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_sdlgpu3.py +6 -0
- pyimgui-0.1.1/src/imgui/impl_vulkan.py +6 -0
- pyimgui-0.1.1/src/imgui/implot.py +6 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/.gitignore +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/CMakeLists.txt +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/LICENSE +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/THIRD_PARTY_LICENSES.txt +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/generate.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_config.h +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_dx12_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_metal_bindings.mm +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_opengl3_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_sdl3_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_sdlgpu3_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imgui_impl_vulkan_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/imguizmo_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/implot_bindings.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/module.cpp +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/native_casters.h +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/opaque_handle.h +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/sdl3_casters.h +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/bindings/style_colors.h +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/__init__.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/app.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/app_dx12.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/app_metal4.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/app_opengl3.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/app_vulkan.py +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/imguizmo.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_dx12.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_metal.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_metal4.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_opengl3.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_sdl3.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_sdlgpu3.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/impl_vulkan.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/implot.pyi +0 -0
- {pyimgui-0.1.0 → pyimgui-0.1.1}/src/imgui/py.typed +0 -0
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
# Builds the wheels and the sdist, and uploads them to PyPI when a
|
|
2
|
-
#
|
|
3
|
-
#
|
|
4
|
-
#
|
|
1
|
+
# Builds the wheels and the sdist, and uploads them to PyPI when a tag "v<version>"
|
|
2
|
+
# is pushed, whose version has to be the one in pyproject.toml:
|
|
3
|
+
#
|
|
4
|
+
# git tag v0.1.1 && git push origin v0.1.1
|
|
5
|
+
#
|
|
6
|
+
# (A GitHub release made in the browser pushes its new tag too.) Run it by hand
|
|
7
|
+
# (Actions > Wheels > Run workflow) to build and test the wheels without uploading
|
|
8
|
+
# them.
|
|
5
9
|
#
|
|
6
10
|
# The upload uses PyPI's trusted publishing, which the PyPI project has to be set
|
|
7
11
|
# up for: https://docs.pypi.org/trusted-publishers/ (workflow wheels.yml,
|
|
@@ -10,8 +14,8 @@ name: Wheels
|
|
|
10
14
|
|
|
11
15
|
on:
|
|
12
16
|
workflow_dispatch:
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
push:
|
|
18
|
+
tags: ["v*"]
|
|
15
19
|
|
|
16
20
|
permissions:
|
|
17
21
|
contents: read
|
|
@@ -44,12 +48,12 @@ jobs:
|
|
|
44
48
|
runs-on: ubuntu-latest
|
|
45
49
|
steps:
|
|
46
50
|
- uses: actions/checkout@v7
|
|
47
|
-
- name: Check that the
|
|
48
|
-
if: github.event_name == '
|
|
51
|
+
- name: Check that the tag is the version
|
|
52
|
+
if: github.event_name == 'push'
|
|
49
53
|
run: |
|
|
50
54
|
version=$(python3 -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')
|
|
51
|
-
if [ "$
|
|
52
|
-
echo "::error::The
|
|
55
|
+
if [ "$GITHUB_REF_NAME" != "v$version" ]; then
|
|
56
|
+
echo "::error::The tag $GITHUB_REF_NAME is not v + the version in pyproject.toml, $version"
|
|
53
57
|
exit 1
|
|
54
58
|
fi
|
|
55
59
|
- run: pipx run build --sdist
|
|
@@ -60,7 +64,7 @@ jobs:
|
|
|
60
64
|
|
|
61
65
|
publish:
|
|
62
66
|
name: Upload to PyPI
|
|
63
|
-
if: github.event_name == '
|
|
67
|
+
if: github.event_name == 'push'
|
|
64
68
|
needs: [wheels, sdist]
|
|
65
69
|
runs-on: ubuntu-latest
|
|
66
70
|
environment:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: PyImGui
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Python bindings for Dear ImGui, its SDL3, SDL_GPU, OpenGL 3, Vulkan, Direct3D 12 and Metal backends, ImPlot and ImGuizmo
|
|
5
5
|
Keywords: imgui,implot,imguizmo,sdl3,sdl_gpu,opengl,vulkan,direct3d12,metal,gui,plot,gizmo,bindings
|
|
6
6
|
Author-Email: Lukas Lipp <lukas.lipp@cg.tuwien.ac.at>
|
|
@@ -285,8 +285,8 @@ app.run(gui, window_size=(1280, 720))
|
|
|
285
285
|
builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
|
|
286
286
|
ImGui keeps its state in globals.
|
|
287
287
|
- `.github/workflows/wheels.yml` builds the wheels with cibuildwheel (options in `pyproject.toml`),
|
|
288
|
-
and uploads them to PyPI when a
|
|
289
|
-
first: the
|
|
288
|
+
and uploads them to PyPI when a version tag is pushed. Bump `version` in `pyproject.toml`
|
|
289
|
+
first: the tag has to match it (`git tag v0.2.0 && git push origin v0.2.0` for `0.2.0`).
|
|
290
290
|
- `generate.py` holds the litgen options, and writes the code between the litgen markers of
|
|
291
291
|
`src/bindings/*.cpp` and `src/imgui/*.pyi`. The code outside those markers is written by hand:
|
|
292
292
|
the module definition, the Metal backends' bindings (`imgui_impl_metal_bindings.mm`, whose
|
|
@@ -265,8 +265,8 @@ app.run(gui, window_size=(1280, 720))
|
|
|
265
265
|
builds the single extension `imgui._imgui`, which holds them, the backends and all the bindings. They have to live in one extension because Dear
|
|
266
266
|
ImGui keeps its state in globals.
|
|
267
267
|
- `.github/workflows/wheels.yml` builds the wheels with cibuildwheel (options in `pyproject.toml`),
|
|
268
|
-
and uploads them to PyPI when a
|
|
269
|
-
first: the
|
|
268
|
+
and uploads them to PyPI when a version tag is pushed. Bump `version` in `pyproject.toml`
|
|
269
|
+
first: the tag has to match it (`git tag v0.2.0 && git push origin v0.2.0` for `0.2.0`).
|
|
270
270
|
- `generate.py` holds the litgen options, and writes the code between the litgen markers of
|
|
271
271
|
`src/bindings/*.cpp` and `src/imgui/*.pyi`. The code outside those markers is written by hand:
|
|
272
272
|
the module definition, the Metal backends' bindings (`imgui_impl_metal_bindings.mm`, whose
|
|
@@ -4,7 +4,7 @@ build-backend = "scikit_build_core.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "PyImGui"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "Python bindings for Dear ImGui, its SDL3, SDL_GPU, OpenGL 3, Vulkan, Direct3D 12 and Metal backends, ImPlot and ImGuizmo"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
# The bindings are MIT. The wheels also contain Dear ImGui, ImPlot, ImGuizmo (MIT)
|
|
@@ -20,22 +20,11 @@ except ImportError as e:
|
|
|
20
20
|
ctypes.CDLL(sdl3.SDL_GET_BINARY(sdl3.SDL_BINARY)._name, mode=ctypes.RTLD_GLOBAL)
|
|
21
21
|
|
|
22
22
|
from ._imgui import * # noqa: E402, F403
|
|
23
|
-
|
|
23
|
+
# The submodules are compiled into _imgui; implot.py etc. register them as modules
|
|
24
|
+
# of their own, so that `import imgui.implot` works
|
|
25
|
+
from . import imguizmo, impl_opengl3, impl_sdl3, impl_sdlgpu3, impl_vulkan, implot # noqa: E402
|
|
24
26
|
|
|
25
|
-
# Make the submodules importable as modules of their own: `from imgui import implot`
|
|
26
|
-
# works as it is, `import imgui.implot` needs these entries
|
|
27
|
-
sys.modules[f"{__name__}.impl_sdl3"] = impl_sdl3
|
|
28
|
-
sys.modules[f"{__name__}.impl_sdlgpu3"] = impl_sdlgpu3
|
|
29
|
-
sys.modules[f"{__name__}.impl_opengl3"] = impl_opengl3
|
|
30
|
-
sys.modules[f"{__name__}.impl_vulkan"] = impl_vulkan
|
|
31
|
-
sys.modules[f"{__name__}.implot"] = implot
|
|
32
|
-
sys.modules[f"{__name__}.imguizmo"] = imguizmo
|
|
33
27
|
if sys.platform == "win32":
|
|
34
|
-
from .
|
|
35
|
-
|
|
36
|
-
sys.modules[f"{__name__}.impl_dx12"] = impl_dx12
|
|
28
|
+
from . import impl_dx12 # noqa: E402
|
|
37
29
|
if sys.platform == "darwin":
|
|
38
|
-
from .
|
|
39
|
-
|
|
40
|
-
sys.modules[f"{__name__}.impl_metal"] = impl_metal
|
|
41
|
-
sys.modules[f"{__name__}.impl_metal4"] = impl_metal4
|
|
30
|
+
from . import impl_metal, impl_metal4 # noqa: E402
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|