raylib 5.5.0.1__tar.gz → 5.5.0.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.

Potentially problematic release.


This version of raylib might be problematic. Click here for more details.

Files changed (33) hide show
  1. {raylib-5.5.0.1 → raylib-5.5.0.3}/PKG-INFO +35 -16
  2. raylib-5.5.0.1/raylib.egg-info/PKG-INFO → raylib-5.5.0.3/README.md +24 -30
  3. {raylib-5.5.0.1 → raylib-5.5.0.3}/pyproject.toml +1 -1
  4. {raylib-5.5.0.1 → raylib-5.5.0.3}/pyray/__init__.py +1 -1
  5. {raylib-5.5.0.1 → raylib-5.5.0.3}/pyray/__init__.pyi +2274 -2203
  6. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/__init__.py +9 -5
  7. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/__init__.pyi +2176 -2156
  8. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/build.py +107 -41
  9. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/defines.py +2 -4
  10. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/enums.py +40 -0
  11. raylib-5.5.0.3/raylib/physac.h.modified +171 -0
  12. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/raygui.h.modified +2 -2
  13. raylib-5.5.0.3/raylib/version.py +1 -0
  14. raylib-5.5.0.1/README.md → raylib-5.5.0.3/raylib.egg-info/PKG-INFO +49 -9
  15. {raylib-5.5.0.1 → raylib-5.5.0.3}/setup.py +1 -7
  16. raylib-5.5.0.3/version.py +1 -0
  17. raylib-5.5.0.1/raylib/physac.h.modified +0 -165
  18. raylib-5.5.0.1/raylib/version.py +0 -1
  19. raylib-5.5.0.1/version.py +0 -1
  20. {raylib-5.5.0.1 → raylib-5.5.0.3}/LICENSE +0 -0
  21. {raylib-5.5.0.1 → raylib-5.5.0.3}/MANIFEST.in +0 -0
  22. {raylib-5.5.0.1 → raylib-5.5.0.3}/pyray/py.typed +0 -0
  23. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/colors.py +0 -0
  24. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/glfw3.h.modified +0 -0
  25. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/py.typed +0 -0
  26. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/raylib.h.modified +0 -0
  27. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/raymath.h.modified +0 -0
  28. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib/rlgl.h.modified +0 -0
  29. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib.egg-info/SOURCES.txt +0 -0
  30. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib.egg-info/dependency_links.txt +0 -0
  31. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib.egg-info/requires.txt +0 -0
  32. {raylib-5.5.0.1 → raylib-5.5.0.3}/raylib.egg-info/top_level.txt +0 -0
  33. {raylib-5.5.0.1 → raylib-5.5.0.3}/setup.cfg +0 -0
@@ -1,23 +1,27 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: raylib
3
- Version: 5.5.0.1
3
+ Version: 5.5.0.3
4
4
  Summary: Python CFFI bindings for Raylib
5
5
  Home-page: https://github.com/electronstudio/raylib-python-cffi
6
6
  Author: Electron Studio
7
7
  Author-email: github@electronstudio.co.uk
8
- License: EPL-2.0
9
- Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
10
8
  Classifier: Programming Language :: Python :: 3
11
9
  Classifier: Programming Language :: Python :: 3.13
12
10
  Classifier: Programming Language :: Python :: 3.12
13
11
  Classifier: Programming Language :: Python :: 3.11
14
12
  Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.8
17
- Classifier: Programming Language :: Python :: 3.7
18
13
  Description-Content-Type: text/markdown
19
14
  License-File: LICENSE
20
15
  Requires-Dist: cffi>=1.17.1
16
+ Dynamic: author
17
+ Dynamic: author-email
18
+ Dynamic: classifier
19
+ Dynamic: description
20
+ Dynamic: description-content-type
21
+ Dynamic: home-page
22
+ Dynamic: license-file
23
+ Dynamic: requires-dist
24
+ Dynamic: summary
21
25
 
22
26
  # Python Bindings for Raylib 5.5
23
27
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
@@ -26,7 +30,7 @@ Requires-Dist: cffi>=1.17.1
26
30
 
27
31
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
28
32
 
29
- Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
33
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/raylib?period=total&units=NONE&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/raylib)
30
34
 
31
35
  HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
32
36
 
@@ -40,12 +44,9 @@ original Raylib.
40
44
  * Docstrings and auto-completion.
41
45
  * Type checking with Mypy
42
46
 
43
-
44
- [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
45
-
46
47
  # Quickstart
47
48
 
48
- `pip3 install raylib==5.5.0.0`
49
+ `pip3 install raylib==5.5.0.3 --break-system-packages`
49
50
  ```python
50
51
  from pyray import *
51
52
  init_window(800, 450, "Hello")
@@ -57,16 +58,34 @@ while not window_should_close():
57
58
  close_window()
58
59
  ```
59
60
 
61
+ # Links
62
+
63
+ * [Tutorial video](https://www.youtube.com/watch?v=UoAsDlUwjy0&lc=UgxCR-tvnQJITZr2IvN4AaABAg)
64
+ * [Full documentation](https://electronstudio.github.io/raylib-python-cffi)
65
+ * [Imgui integration](https://github.com/Scr44gr/raylib-imgui)
66
+ * [Examples](https://github.com/electronstudio/raylib-python-cffi/tree/master/examples)
67
+ * [Blep's examples](https://github.com/blep/pyray_examples)
68
+ * [Raylib Python Discord](https://discord.gg/fKDwt85aX6)
69
+ * [Raylib General Discord](https://discord.com/invite/raylib)
70
+ * [Python video player](https://github.com/anrayliu/pyvidplayer2)
71
+ * [A Vector2 class](https://github.com/electronstudio/raylib-python-cffi/blob/master/examples/extra/vector2_extended.py)
72
+ * [Raylib C FAQ](https://github.com/raysan5/raylib/wiki/Frequently-Asked-Questions/)
73
+
60
74
  # Installation
61
75
 
62
- First make sure you have the latest pip installed:
76
+ If you are on a modern Linux you will probably want to create a venv:
77
+
78
+ python3 -m venv venv
79
+ source venv/bin/activate
80
+
81
+ Then make sure you have the latest pip installed:
63
82
 
64
83
  python3 -m pip install --upgrade pip
65
84
 
66
85
  Then install
67
86
 
68
87
  python3 -m pip install setuptools
69
- python3 -m pip install raylib==5.5.0.0
88
+ python3 -m pip install raylib==5.5.0.3
70
89
 
71
90
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
72
91
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -88,7 +107,7 @@ Older MacOS requires building from source but this is usually simple:
88
107
 
89
108
  brew install pkg-config
90
109
  brew install raylib
91
- python3 -m pip install raylib==5.5.0.0
110
+ python3 -m pip install raylib==5.5.0.3
92
111
 
93
112
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
94
113
  if you want to test them.)
@@ -202,7 +221,7 @@ Point your browser to http://localhost:8000
202
221
  Some features may not work, so you can disable them like this:
203
222
 
204
223
  ```python
205
- if platform.system() != "Emscripten": # audio does not work on current version of emscripten
224
+ if platform.system() != "Emscripten": # audio may not work on current version of emscripten
206
225
  init_audio_device()
207
226
  ```
208
227
 
@@ -1,24 +1,3 @@
1
- Metadata-Version: 2.1
2
- Name: raylib
3
- Version: 5.5.0.1
4
- Summary: Python CFFI bindings for Raylib
5
- Home-page: https://github.com/electronstudio/raylib-python-cffi
6
- Author: Electron Studio
7
- Author-email: github@electronstudio.co.uk
8
- License: EPL-2.0
9
- Classifier: License :: OSI Approved :: Eclipse Public License 2.0 (EPL-2.0)
10
- Classifier: Programming Language :: Python :: 3
11
- Classifier: Programming Language :: Python :: 3.13
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Python :: 3.11
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.9
16
- Classifier: Programming Language :: Python :: 3.8
17
- Classifier: Programming Language :: Python :: 3.7
18
- Description-Content-Type: text/markdown
19
- License-File: LICENSE
20
- Requires-Dist: cffi>=1.17.1
21
-
22
1
  # Python Bindings for Raylib 5.5
23
2
  ## Libraries: raymath, raygui, rlgl, physac and GLFW
24
3
  ## Backends: Desktop, SDL, DRM, Web
@@ -26,7 +5,7 @@ Requires-Dist: cffi>=1.17.1
26
5
 
27
6
  ![PyPI - Downloads](https://img.shields.io/pypi/dm/raylib)
28
7
 
29
- Chatroom: [Discord](https://discord.gg/fKDwt85aX6)
8
+ [![PyPI Downloads](https://static.pepy.tech/personalized-badge/raylib?period=total&units=NONE&left_color=BLACK&right_color=GREEN&left_text=downloads)](https://pepy.tech/projects/raylib)
30
9
 
31
10
  HELP WANTED: [writing examples](https://github.com/electronstudio/raylib-python-cffi/issues/155)
32
11
 
@@ -40,12 +19,9 @@ original Raylib.
40
19
  * Docstrings and auto-completion.
41
20
  * Type checking with Mypy
42
21
 
43
-
44
- [Full documentation](http://electronstudio.github.io/raylib-python-cffi)
45
-
46
22
  # Quickstart
47
23
 
48
- `pip3 install raylib==5.5.0.0`
24
+ `pip3 install raylib==5.5.0.3 --break-system-packages`
49
25
  ```python
50
26
  from pyray import *
51
27
  init_window(800, 450, "Hello")
@@ -57,16 +33,34 @@ while not window_should_close():
57
33
  close_window()
58
34
  ```
59
35
 
36
+ # Links
37
+
38
+ * [Tutorial video](https://www.youtube.com/watch?v=UoAsDlUwjy0&lc=UgxCR-tvnQJITZr2IvN4AaABAg)
39
+ * [Full documentation](https://electronstudio.github.io/raylib-python-cffi)
40
+ * [Imgui integration](https://github.com/Scr44gr/raylib-imgui)
41
+ * [Examples](https://github.com/electronstudio/raylib-python-cffi/tree/master/examples)
42
+ * [Blep's examples](https://github.com/blep/pyray_examples)
43
+ * [Raylib Python Discord](https://discord.gg/fKDwt85aX6)
44
+ * [Raylib General Discord](https://discord.com/invite/raylib)
45
+ * [Python video player](https://github.com/anrayliu/pyvidplayer2)
46
+ * [A Vector2 class](https://github.com/electronstudio/raylib-python-cffi/blob/master/examples/extra/vector2_extended.py)
47
+ * [Raylib C FAQ](https://github.com/raysan5/raylib/wiki/Frequently-Asked-Questions/)
48
+
60
49
  # Installation
61
50
 
62
- First make sure you have the latest pip installed:
51
+ If you are on a modern Linux you will probably want to create a venv:
52
+
53
+ python3 -m venv venv
54
+ source venv/bin/activate
55
+
56
+ Then make sure you have the latest pip installed:
63
57
 
64
58
  python3 -m pip install --upgrade pip
65
59
 
66
60
  Then install
67
61
 
68
62
  python3 -m pip install setuptools
69
- python3 -m pip install raylib==5.5.0.0
63
+ python3 -m pip install raylib==5.5.0.3
70
64
 
71
65
  On most platforms it should install a binary wheel. If yours isn't available then pip will attempt to build from
72
66
  source, in which case you will need to have Raylib development libs installed, e.g.
@@ -88,7 +82,7 @@ Older MacOS requires building from source but this is usually simple:
88
82
 
89
83
  brew install pkg-config
90
84
  brew install raylib
91
- python3 -m pip install raylib==5.5.0.0
85
+ python3 -m pip install raylib==5.5.0.3
92
86
 
93
87
  (I do have binaries for arm64 MacOS 11, 12 and 13 but I have no way of testing they work, so post an issue
94
88
  if you want to test them.)
@@ -202,7 +196,7 @@ Point your browser to http://localhost:8000
202
196
  Some features may not work, so you can disable them like this:
203
197
 
204
198
  ```python
205
- if platform.system() != "Emscripten": # audio does not work on current version of emscripten
199
+ if platform.system() != "Emscripten": # audio may not work on current version of emscripten
206
200
  init_audio_device()
207
201
  ```
208
202
 
@@ -1,3 +1,3 @@
1
1
  [build-system]
2
- requires = ["setuptools"]
2
+ requires = ["setuptools", "cffi>=1.17.1"]
3
3
  build-backend = "setuptools.build_meta"
@@ -126,7 +126,7 @@ def _make_struct_constructor_function(struct):
126
126
  or isinstance(arg, (array, bytes, bytearray, memoryview)))):
127
127
  arg = ffi.from_buffer(field[1].type, arg)
128
128
  modified_args.append(arg)
129
- s = ffi.new(f"struct {struct} *", modified_args)[0]
129
+ s = ffi.new(f"{struct} *", modified_args)[0]
130
130
  global_weakkeydict[s] = modified_args
131
131
  return s
132
132