exp-runtime-player 0.5.0__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.
Files changed (30) hide show
  1. exp_runtime_player-0.5.0/LICENSE +21 -0
  2. exp_runtime_player-0.5.0/MANIFEST.in +5 -0
  3. exp_runtime_player-0.5.0/PKG-INFO +49 -0
  4. exp_runtime_player-0.5.0/README.md +15 -0
  5. exp_runtime_player-0.5.0/pyproject.toml +30 -0
  6. exp_runtime_player-0.5.0/setup.cfg +4 -0
  7. exp_runtime_player-0.5.0/src/exp_runtime/app_icon.py +12 -0
  8. exp_runtime_player-0.5.0/src/exp_runtime/app_info.py +16 -0
  9. exp_runtime_player-0.5.0/src/exp_runtime/application.py +825 -0
  10. exp_runtime_player-0.5.0/src/exp_runtime/assets/kiwi.svg +49 -0
  11. exp_runtime_player-0.5.0/src/exp_runtime/desktop.py +726 -0
  12. exp_runtime_player-0.5.0/src/exp_runtime/desktop_choice.py +202 -0
  13. exp_runtime_player-0.5.0/src/exp_runtime/desktop_dialogue.py +271 -0
  14. exp_runtime_player-0.5.0/src/exp_runtime/desktop_input.py +176 -0
  15. exp_runtime_player-0.5.0/src/exp_runtime/desktop_loading.py +45 -0
  16. exp_runtime_player-0.5.0/src/exp_runtime/desktop_menu.py +448 -0
  17. exp_runtime_player-0.5.0/src/exp_runtime/desktop_message.py +123 -0
  18. exp_runtime_player-0.5.0/src/exp_runtime/desktop_pause.py +105 -0
  19. exp_runtime_player-0.5.0/src/exp_runtime/desktop_picker.py +68 -0
  20. exp_runtime_player-0.5.0/src/exp_runtime/desktop_text.py +88 -0
  21. exp_runtime_player-0.5.0/src/exp_runtime/desktop_title.py +82 -0
  22. exp_runtime_player-0.5.0/src/exp_runtime/graphics.py +79 -0
  23. exp_runtime_player-0.5.0/src/exp_runtime/platforms/__init__.py +1 -0
  24. exp_runtime_player-0.5.0/src/exp_runtime/platforms/drawing.py +612 -0
  25. exp_runtime_player-0.5.0/src/exp_runtime/platforms/ios.py +225 -0
  26. exp_runtime_player-0.5.0/src/exp_runtime/pointer.py +25 -0
  27. exp_runtime_player-0.5.0/src/exp_runtime/projection.py +68 -0
  28. exp_runtime_player-0.5.0/src/exp_runtime/settings.py +46 -0
  29. exp_runtime_player-0.5.0/src/exp_runtime/updates.py +144 -0
  30. exp_runtime_player-0.5.0/src/exp_runtime_player.egg-info/SOURCES.txt +27 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Josh Mcdaniel
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,5 @@
1
+ # Only authored component source, metadata and license.
2
+ global-exclude *
3
+ include LICENSE README.md pyproject.toml MANIFEST.in
4
+ recursive-include src/exp_runtime *.py
5
+ include src/exp_runtime/assets/kiwi.svg
@@ -0,0 +1,49 @@
1
+ Metadata-Version: 2.4
2
+ Name: exp-runtime-player
3
+ Version: 0.5.0
4
+ Summary: Shared EXP Runtime player and native/desktop rendering
5
+ License: MIT License
6
+
7
+ Copyright (c) 2025 Josh Mcdaniel
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in all
17
+ copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ SOFTWARE.
26
+
27
+ Requires-Python: >=3.10
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: exp-runtime-engine[fonts]==0.5.0
31
+ Provides-Extra: desktop
32
+ Requires-Dist: pygame-ce<3,>=2.5.7; extra == "desktop"
33
+ Dynamic: license-file
34
+
35
+ # EXP Runtime — player
36
+
37
+ Shared EXP Runtime player and native/desktop rendering. This is a component of the single
38
+ [EXP Runtime project](https://github.com/joshrmcdaniel/exp-runtime), maintained
39
+ and released together with its other wheels. Python imports use the shared
40
+ `exp_runtime` namespace.
41
+
42
+ Install `exp-runtime[tools]` for file tools, `exp-runtime[engine,shs]` or
43
+ `exp-runtime[engine,cod]` for a headless game, or `exp-runtime[player]` for
44
+ the desktop player with both games. Individual component wheels also support
45
+ selective installs. See the project's `docs/SDK.md` for APIs and examples.
46
+
47
+ No original game content is included. Users supply their own game files.
48
+ The inherited MIT license and attribution are included in LICENSE; see
49
+ [provenance](https://github.com/joshrmcdaniel/exp-runtime/blob/main/docs/PROVENANCE.md).
@@ -0,0 +1,15 @@
1
+ # EXP Runtime — player
2
+
3
+ Shared EXP Runtime player and native/desktop rendering. This is a component of the single
4
+ [EXP Runtime project](https://github.com/joshrmcdaniel/exp-runtime), maintained
5
+ and released together with its other wheels. Python imports use the shared
6
+ `exp_runtime` namespace.
7
+
8
+ Install `exp-runtime[tools]` for file tools, `exp-runtime[engine,shs]` or
9
+ `exp-runtime[engine,cod]` for a headless game, or `exp-runtime[player]` for
10
+ the desktop player with both games. Individual component wheels also support
11
+ selective installs. See the project's `docs/SDK.md` for APIs and examples.
12
+
13
+ No original game content is included. Users supply their own game files.
14
+ The inherited MIT license and attribution are included in LICENSE; see
15
+ [provenance](https://github.com/joshrmcdaniel/exp-runtime/blob/main/docs/PROVENANCE.md).
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 61.0", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "exp-runtime-player"
7
+ version = "0.5.0"
8
+ description = "Shared EXP Runtime player and native/desktop rendering"
9
+ readme = "README.md"
10
+ license = {file = "LICENSE"}
11
+ requires-python = ">=3.10"
12
+ dependencies = ["exp-runtime-engine[fonts]==0.5.0"]
13
+
14
+ [project.optional-dependencies]
15
+ desktop = ["pygame-ce>=2.5.7,<3"]
16
+
17
+ [project.gui-scripts]
18
+ exp-runtime = "exp_runtime.application:main"
19
+ shs = "exp_runtime.application:main"
20
+
21
+ [tool.setuptools]
22
+ include-package-data = false
23
+
24
+ [tool.setuptools.packages.find]
25
+ where = ["src"]
26
+ include = ["exp_runtime", "exp_runtime.*"]
27
+ namespaces = true
28
+
29
+ [tool.setuptools.package-data]
30
+ exp_runtime = ["assets/kiwi.svg"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,12 @@
1
+ """The authored app logo, independent of player-supplied game artwork."""
2
+ from functools import lru_cache
3
+ from importlib.resources import files
4
+ from io import BytesIO
5
+
6
+ from . import graphics as pygame
7
+
8
+
9
+ @lru_cache(maxsize=8)
10
+ def icon_surface(size=128):
11
+ data = files('exp_runtime').joinpath('assets/kiwi.svg').read_bytes()
12
+ return pygame.image.load_sized_svg(BytesIO(data), (size, size))
@@ -0,0 +1,16 @@
1
+ """Public runtime identity, independent of the imported game's version."""
2
+ from importlib.metadata import PackageNotFoundError, version
3
+
4
+
5
+ PROJECT_REPOSITORY = 'joshrmcdaniel/exp-runtime'
6
+ PROJECT_URL = f'https://github.com/{PROJECT_REPOSITORY}'
7
+
8
+
9
+ def runtime_version():
10
+ # A custom install may use the player component without the umbrella.
11
+ for distribution in ('exp-runtime', 'exp-runtime-player'):
12
+ try:
13
+ return version(distribution)
14
+ except PackageNotFoundError:
15
+ pass
16
+ return 'development'