mini-arcade-native-backend 0.3.3__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.
@@ -0,0 +1,6 @@
1
+ ## [0.3.3] - 2025-12-05
2
+
3
+ ### Other
4
+ - docs: improve docstring formatting for capture_frame method in NativeBackend
5
+ - Merge branch 'release/0.3' of https://github.com/alexsc6955/mini-arcade-native-backend into release/0.3
6
+
@@ -0,0 +1,25 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+ - develop
8
+ - "feature/**"
9
+ - "release/**"
10
+ - "hotfix/**"
11
+ pull_request:
12
+ branches:
13
+ - main
14
+ - develop
15
+
16
+ jobs:
17
+ python-ci:
18
+ uses: trivox-io/trivox-ci/.github/workflows/python-ci.yml@main
19
+ with:
20
+ project-name: "mini-arcade-native-backend"
21
+ lint-path: "src/mini_arcade_native_backend"
22
+ apt-deps: "libsdl2-dev libsdl2-ttf-dev"
23
+ secrets:
24
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
25
+ SLACK_CHANNEL_ID: ${{ secrets.SLACK_CHANNEL_ID }}
@@ -0,0 +1,24 @@
1
+ # .github/workflows/release-create.yml
2
+ name: Create Release Branch
3
+
4
+ permissions:
5
+ contents: write
6
+
7
+ on:
8
+ workflow_dispatch:
9
+ inputs:
10
+ bump_type:
11
+ description: "Version bump type"
12
+ required: true
13
+ type: choice
14
+ options:
15
+ - minor
16
+ - major
17
+
18
+ jobs:
19
+ create-release-branch:
20
+ uses: trivox-io/trivox-ci/.github/workflows/create-release-branch.yml@main
21
+ with:
22
+ bump_type: ${{ inputs.bump_type }}
23
+ base_branch: "develop"
24
+ version_file: "pyproject.toml"
@@ -0,0 +1,20 @@
1
+ name: Finalize Release
2
+
3
+ permissions:
4
+ contents: write
5
+
6
+ on:
7
+ workflow_dispatch:
8
+ inputs:
9
+ release_branch_suffix:
10
+ description: "Release suffix (e.g. 0.6 for branch release/0.6)"
11
+ required: true
12
+ type: string
13
+
14
+ jobs:
15
+ finalize-release:
16
+ uses: trivox-io/trivox-ci/.github/workflows/finalize-release.yml@main
17
+ with:
18
+ release_branch_suffix: ${{ inputs.release_branch_suffix }}
19
+ main_branch: "main"
20
+ develop_branch: "develop"
@@ -0,0 +1,25 @@
1
+ name: Publish from Release Branch
2
+
3
+ permissions:
4
+ contents: write
5
+
6
+ on:
7
+ workflow_dispatch:
8
+ inputs:
9
+ release_branch:
10
+ description: "Release branch name (e.g. release/0.6)"
11
+ required: true
12
+ type: string
13
+
14
+ jobs:
15
+ publish:
16
+ uses: trivox-io/trivox-ci/.github/workflows/publish-from-release.yml@main
17
+ with:
18
+ release_branch: ${{ inputs.release_branch }}
19
+ version_file: "pyproject.toml"
20
+ apt-deps: "libsdl2-dev"
21
+ poetry-build-args: "-f sdist"
22
+ secrets:
23
+ PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
24
+ SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
25
+ SLACK_CHANNEL_ID_RELEASE: ${{ secrets.SLACK_CHANNEL_ID_RELEASE }}
@@ -0,0 +1,197 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+
28
+ # PyInstaller
29
+ # Usually these files are written by a python script from a template
30
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
31
+ *.manifest
32
+ *.spec
33
+
34
+ # Installer logs
35
+ pip-log.txt
36
+ pip-delete-this-directory.txt
37
+
38
+ # Unit test / coverage reports
39
+ htmlcov/
40
+ .tox/
41
+ .nox/
42
+ .coverage
43
+ .coverage.*
44
+ .cache
45
+ nosetests.xml
46
+ coverage.xml
47
+ *.cover
48
+ *.py,cover
49
+ .hypothesis/
50
+ .pytest_cache/
51
+ cover/
52
+
53
+ # Translations
54
+ *.mo
55
+ *.pot
56
+
57
+ # Django stuff:
58
+ *.log
59
+ local_settings.py
60
+ db.sqlite3
61
+ db.sqlite3-journal
62
+
63
+ # Flask stuff:
64
+ instance/
65
+ .webassets-cache
66
+
67
+ # Scrapy stuff:
68
+ .scrapy
69
+
70
+ # Sphinx documentation
71
+ docs/build/
72
+
73
+ # PyBuilder
74
+ .pybuilder/
75
+ target/
76
+
77
+ # Jupyter Notebook
78
+ .ipynb_checkpoints
79
+
80
+ # IPython
81
+ profile_default/
82
+ ipython_config.py
83
+
84
+ # pyenv
85
+ # For a library or package, you might want to ignore these files since the code is
86
+ # intended to run in multiple environments; otherwise, check them in:
87
+ # .python-version
88
+
89
+ # pipenv
90
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
91
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
92
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
93
+ # install all needed dependencies.
94
+ #Pipfile.lock
95
+
96
+ # poetry
97
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
98
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
99
+ # commonly ignored for libraries.
100
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
101
+ #poetry.lock
102
+
103
+ # pdm
104
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
105
+ #pdm.lock
106
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
107
+ # in version control.
108
+ # https://pdm.fming.dev/#use-with-ide
109
+ .pdm.toml
110
+
111
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
112
+ __pypackages__/
113
+
114
+ # Celery stuff
115
+ celerybeat-schedule
116
+ celerybeat.pid
117
+
118
+ # SageMath parsed files
119
+ *.sage.py
120
+
121
+ # Environments
122
+ .env
123
+ .venv/
124
+ env/
125
+ venv/
126
+ ENV/
127
+ env.bak/
128
+ venv.bak/
129
+
130
+ # Spyder project settings
131
+ .spyderproject
132
+ .spyproject
133
+
134
+ # Rope project settings
135
+ .ropeproject
136
+
137
+ # mkdocs documentation
138
+ /site
139
+
140
+ # mypy
141
+ .mypy_cache/
142
+ .dmypy.json
143
+ dmypy.json
144
+
145
+ # Pyre type checker
146
+ .pyre/
147
+
148
+ # pytype static type analyzer
149
+ .pytype/
150
+
151
+ # Cython debug symbols
152
+ cython_debug/
153
+
154
+ # PyCharm
155
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
156
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
157
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
158
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
159
+ #.idea/
160
+ .idea
161
+ archive_/
162
+
163
+ test_data/
164
+
165
+ ### macOS ###
166
+ # General
167
+ .DS_Store
168
+ .AppleDouble
169
+ .LSOverride
170
+
171
+ # Icon must end with two \r
172
+ Icon
173
+
174
+ # Thumbnails
175
+ ._*
176
+
177
+ # Files that might appear in the root of a volume
178
+ .DocumentRevisions-V100
179
+ .fseventsd
180
+ .Spotlight-V100
181
+ .TemporaryItems
182
+ .Trashes
183
+ .VolumeIcon.icns
184
+ .com.apple.timemachine.donotpresent
185
+
186
+ # Directories potentially created on remote AFP share
187
+ .AppleDB
188
+ .AppleDesktop
189
+ Network Trash Folder
190
+ Temporary Items
191
+ .apdisk
192
+
193
+ ### macOS Patch ###
194
+ # iCloud generated files
195
+ *.icloud
196
+ .trivox_conductor/
197
+ .trivox/
@@ -0,0 +1 @@
1
+ 0.3.3
@@ -0,0 +1,80 @@
1
+ {
2
+ "files.associations": {
3
+ "system_error": "cpp",
4
+ "atomic": "cpp",
5
+ "bit": "cpp",
6
+ "cctype": "cpp",
7
+ "charconv": "cpp",
8
+ "clocale": "cpp",
9
+ "cmath": "cpp",
10
+ "compare": "cpp",
11
+ "concepts": "cpp",
12
+ "cstddef": "cpp",
13
+ "cstdint": "cpp",
14
+ "cstdio": "cpp",
15
+ "cstdlib": "cpp",
16
+ "cstring": "cpp",
17
+ "ctime": "cpp",
18
+ "cwchar": "cpp",
19
+ "exception": "cpp",
20
+ "format": "cpp",
21
+ "initializer_list": "cpp",
22
+ "ios": "cpp",
23
+ "iosfwd": "cpp",
24
+ "iostream": "cpp",
25
+ "istream": "cpp",
26
+ "iterator": "cpp",
27
+ "limits": "cpp",
28
+ "locale": "cpp",
29
+ "memory": "cpp",
30
+ "new": "cpp",
31
+ "ostream": "cpp",
32
+ "stdexcept": "cpp",
33
+ "streambuf": "cpp",
34
+ "tuple": "cpp",
35
+ "type_traits": "cpp",
36
+ "typeinfo": "cpp",
37
+ "utility": "cpp",
38
+ "vector": "cpp",
39
+ "xfacet": "cpp",
40
+ "xiosbase": "cpp",
41
+ "xlocale": "cpp",
42
+ "xlocbuf": "cpp",
43
+ "xlocinfo": "cpp",
44
+ "xlocmes": "cpp",
45
+ "xlocmon": "cpp",
46
+ "xlocnum": "cpp",
47
+ "xloctime": "cpp",
48
+ "xmemory": "cpp",
49
+ "xstring": "cpp",
50
+ "xtr1common": "cpp",
51
+ "xutility": "cpp",
52
+ },
53
+ "autoDocstring.docstringFormat": "sphinx",
54
+ "editor.rulers": [80, 100, 120],
55
+ "[python]": {
56
+ "diffEditor.ignoreTrimWhitespace": false,
57
+ "editor.defaultFormatter": "ms-python.black-formatter",
58
+ "editor.formatOnSave": true,
59
+ "editor.formatOnType": false,
60
+ "editor.wordBasedSuggestions": "off",
61
+ "editor.codeActionsOnSave": {
62
+ "source.organizeImports": "explicit"
63
+ }
64
+ },
65
+ "isort.args": [
66
+ "--profile",
67
+ "black"
68
+ ],
69
+ "pylint.enabled": true,
70
+ "pylint.importStrategy": "fromEnvironment",
71
+ "python.missingPackage.severity": "Warning",
72
+ "python.testing.pytestArgs": [
73
+ "tests"
74
+ ],
75
+ "python.testing.pytestEnabled": true,
76
+ "python.testing.unittestEnabled": false,
77
+ "python.analysis.autoImportCompletions": true,
78
+ "black-formatter.importStrategy": "fromEnvironment",
79
+ "isort.importStrategy": "fromEnvironment",
80
+ }
@@ -0,0 +1,74 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ This project adheres to [Semantic Versioning](https://semver.org/).
6
+
7
+ ## [Unreleased]
8
+
9
+ ## [0.3.3] - 2025-12-05
10
+
11
+ ### Other
12
+ - docs: improve docstring formatting for capture_frame method in NativeBackend
13
+ - Merge branch 'release/0.3' of https://github.com/alexsc6955/mini-arcade-native-backend into release/0.3
14
+
15
+ ## [0.3.2] - 2025-12-05
16
+
17
+ ### Added
18
+ - add draw_rect_rgba method to Engine for RGBA rectangle drawing and update Python bindings
19
+ - add capture_frame method to Engine and expose it in Python bindings
20
+ - add clear color customization and update draw_rect method
21
+
22
+ ### Other
23
+ - Merge branch 'release/0.3' of https://github.com/alexsc6955/mini-arcade-native-backend into release/0.3
24
+ - Merge branch 'release/0.3' of https://github.com/alexsc6955/mini-arcade-native-backend into release/0.3
25
+
26
+ ## [0.3.1] - 2025-12-05
27
+
28
+ ### Added
29
+ - add capture_frame method to Engine and expose it in Python bindings
30
+ - add clear color customization and update draw_rect method
31
+
32
+ ### Other
33
+ - Merge branch 'release/0.3' of https://github.com/alexsc6955/mini-arcade-native-backend into release/0.3
34
+
35
+ ## [0.3.0] - 2025-12-05
36
+
37
+ ### Added
38
+ - add text rendering support with SDL2_ttf integration
39
+
40
+ ### Other
41
+ - Merge pull request #7 from alexsc6955/feature/text_support
42
+ - Merge release/0.2 into develop
43
+
44
+ ## [0.2.3] - 2025-12-04
45
+
46
+ - Internal changes only.
47
+
48
+ ## [0.2.2] - 2025-12-04
49
+
50
+ - Internal changes only.
51
+
52
+ ## [0.2.1] - 2025-12-04
53
+
54
+ ### Other
55
+ - Merge pull request #2 from alexsc6955/main
56
+ - Merge pull request #1 from alexsc6955/feature/ci_cd
57
+ - Implement CI workflow for automated testing and linting
58
+ - Add SDL2.dll search path for Windows when using vcpkg
59
+ - Initial Commit
60
+
61
+ ## [0.2.0] - 2025-12-04
62
+
63
+ ### Other
64
+ - Merge pull request #2 from alexsc6955/main
65
+ - Merge pull request #1 from alexsc6955/feature/ci_cd
66
+ - Implement CI workflow for automated testing and linting
67
+ - Add SDL2.dll search path for Windows when using vcpkg
68
+ - Initial Commit
69
+
70
+ ## [0.2.0] - 2025-12-03
71
+
72
+ ### Added
73
+
74
+ - Initial documented release.
@@ -0,0 +1,29 @@
1
+ cmake_minimum_required(VERSION 3.16)
2
+ project(mini_arcade_native_backend LANGUAGES CXX)
3
+
4
+ set(CMAKE_CXX_STANDARD 17)
5
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
6
+
7
+ # Let vcpkg toolchain be used if user sets CMAKE_TOOLCHAIN_FILE env var.
8
+ # (scikit-build-core will pass env vars to CMake.)
9
+
10
+ find_package(pybind11 CONFIG REQUIRED)
11
+ find_package(SDL2 CONFIG REQUIRED)
12
+ find_package(SDL2_ttf CONFIG REQUIRED)
13
+
14
+ set(TARGET_NAME _native)
15
+
16
+ # C++ sources live under cpp/
17
+ pybind11_add_module(${TARGET_NAME}
18
+ cpp/bindings.cpp
19
+ cpp/engine.cpp
20
+ )
21
+
22
+ target_link_libraries(${TARGET_NAME} PRIVATE SDL2::SDL2 SDL2_ttf::SDL2_ttf)
23
+
24
+ # Install the compiled extension into the Python package directory
25
+ # so it ends up as mini_arcade_native_backend/_native.*.pyd
26
+ install(TARGETS ${TARGET_NAME}
27
+ LIBRARY DESTINATION mini_arcade_native_backend
28
+ RUNTIME DESTINATION mini_arcade_native_backend
29
+ ARCHIVE DESTINATION mini_arcade_native_backend)
@@ -0,0 +1,19 @@
1
+ Copyright (c) 2025 Santiago Rincón
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to deal
5
+ in the Software without restriction, including without limitation the rights
6
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+ copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19
+ SOFTWARE.