tcod 19.5.0__tar.gz → 19.6.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.
Files changed (213) hide show
  1. {tcod-19.5.0 → tcod-19.6.1}/CHANGELOG.md +20 -0
  2. {tcod-19.5.0 → tcod-19.6.1}/PKG-INFO +1 -1
  3. {tcod-19.5.0 → tcod-19.6.1}/build_sdl.py +1 -1
  4. {tcod-19.5.0 → tcod-19.6.1}/tcod/bsp.py +19 -17
  5. {tcod-19.5.0 → tcod-19.6.1}/tcod/cffi.py +1 -1
  6. {tcod-19.5.0 → tcod-19.6.1}/tcod/context.py +1 -1
  7. {tcod-19.5.0 → tcod-19.6.1}/tcod/event.py +83 -29
  8. {tcod-19.5.0 → tcod-19.6.1}/tcod/libtcodpy.py +5 -5
  9. {tcod-19.5.0 → tcod-19.6.1}/tcod/path.py +4 -4
  10. {tcod-19.5.0 → tcod-19.6.1}/tcod/random.py +4 -2
  11. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/_internal.py +1 -1
  12. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/audio.py +13 -9
  13. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/render.py +2 -2
  14. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/video.py +2 -2
  15. {tcod-19.5.0 → tcod-19.6.1}/tcod/version.py +3 -3
  16. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/PKG-INFO +1 -1
  17. {tcod-19.5.0 → tcod-19.6.1}/CONTRIBUTING.md +0 -0
  18. {tcod-19.5.0 → tcod-19.6.1}/LICENSE.txt +0 -0
  19. {tcod-19.5.0 → tcod-19.6.1}/MANIFEST.in +0 -0
  20. {tcod-19.5.0 → tcod-19.6.1}/README.rst +0 -0
  21. {tcod-19.5.0 → tcod-19.6.1}/build_libtcod.py +0 -0
  22. {tcod-19.5.0 → tcod-19.6.1}/libtcod/CHANGELOG.md +0 -0
  23. {tcod-19.5.0 → tcod-19.6.1}/libtcod/CMakeLists.txt +0 -0
  24. {tcod-19.5.0 → tcod-19.6.1}/libtcod/CONTRIBUTING.md +0 -0
  25. {tcod-19.5.0 → tcod-19.6.1}/libtcod/LIBTCOD-CREDITS.txt +0 -0
  26. {tcod-19.5.0 → tcod-19.6.1}/libtcod/LICENSE.txt +0 -0
  27. {tcod-19.5.0 → tcod-19.6.1}/libtcod/README.md +0 -0
  28. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/bresenham.h +0 -0
  29. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/bresenham_c.c +0 -0
  30. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/bsp.h +0 -0
  31. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/bsp_c.c +0 -0
  32. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/color.c +0 -0
  33. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/color.h +0 -0
  34. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/config.h +0 -0
  35. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console.c +0 -0
  36. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console.h +0 -0
  37. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_drawing.c +0 -0
  38. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_drawing.h +0 -0
  39. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_etc.c +0 -0
  40. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_etc.h +0 -0
  41. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_init.c +0 -0
  42. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_init.h +0 -0
  43. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_printing.c +0 -0
  44. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_printing.h +0 -0
  45. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_rexpaint.c +0 -0
  46. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_rexpaint.h +0 -0
  47. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/console_types.h +0 -0
  48. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context.c +0 -0
  49. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context.h +0 -0
  50. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context_init.c +0 -0
  51. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context_init.h +0 -0
  52. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context_viewport.c +0 -0
  53. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/context_viewport.h +0 -0
  54. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/error.c +0 -0
  55. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/error.h +0 -0
  56. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov.h +0 -0
  57. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_c.c +0 -0
  58. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
  59. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
  60. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_permissive2.c +0 -0
  61. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
  62. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_restrictive.c +0 -0
  63. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
  64. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/fov_types.h +0 -0
  65. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/globals.c +0 -0
  66. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/globals.h +0 -0
  67. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/heapq.c +0 -0
  68. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/heapq.h +0 -0
  69. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/heightmap.h +0 -0
  70. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/heightmap_c.c +0 -0
  71. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/image.h +0 -0
  72. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/image_c.c +0 -0
  73. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/lex.h +0 -0
  74. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/lex_c.c +0 -0
  75. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/libtcod.h +0 -0
  76. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/libtcod_int.h +0 -0
  77. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/list.h +0 -0
  78. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/list_c.c +0 -0
  79. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/logging.c +0 -0
  80. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/logging.h +0 -0
  81. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/mersenne.h +0 -0
  82. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/mersenne_c.c +0 -0
  83. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/mersenne_types.h +0 -0
  84. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/mouse.h +0 -0
  85. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/mouse_types.h +0 -0
  86. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/namegen.h +0 -0
  87. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/namegen_c.c +0 -0
  88. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/noise.h +0 -0
  89. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/noise_c.c +0 -0
  90. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/noise_defaults.h +0 -0
  91. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/parser.h +0 -0
  92. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/parser_c.c +0 -0
  93. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/path.h +0 -0
  94. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/path_c.c +0 -0
  95. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/pathfinder.c +0 -0
  96. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/pathfinder.h +0 -0
  97. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
  98. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
  99. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/portability.h +0 -0
  100. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/random.c +0 -0
  101. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/random.h +0 -0
  102. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
  103. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
  104. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/renderer_xterm.c +0 -0
  105. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/renderer_xterm.h +0 -0
  106. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
  107. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
  108. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sdl2/event.h +0 -0
  109. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sys.h +0 -0
  110. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sys_c.c +0 -0
  111. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
  112. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
  113. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
  114. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset.c +0 -0
  115. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset.h +0 -0
  116. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_bdf.c +0 -0
  117. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_bdf.h +0 -0
  118. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_fallback.c +0 -0
  119. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_fallback.h +0 -0
  120. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_render.c +0 -0
  121. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_render.h +0 -0
  122. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_truetype.c +0 -0
  123. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tileset_truetype.h +0 -0
  124. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/timer.h +0 -0
  125. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tree.h +0 -0
  126. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/tree_c.c +0 -0
  127. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/txtfield.h +0 -0
  128. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/txtfield_c.c +0 -0
  129. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/utility.h +0 -0
  130. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/version.h +0 -0
  131. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/wrappers.c +0 -0
  132. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/wrappers.h +0 -0
  133. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/zip.h +0 -0
  134. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod/zip_c.c +0 -0
  135. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod.h +0 -0
  136. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/libtcod_c.c +0 -0
  137. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/khrplatform.h +0 -0
  138. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/lodepng.c +0 -0
  139. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/lodepng.h +0 -0
  140. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/stb.c +0 -0
  141. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/stb_ds.h +0 -0
  142. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/stb_truetype.h +0 -0
  143. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
  144. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
  145. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
  146. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/adler32.c +0 -0
  147. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/compress.c +0 -0
  148. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/crc32.c +0 -0
  149. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/crc32.h +0 -0
  150. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/deflate.c +0 -0
  151. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/deflate.h +0 -0
  152. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/gzclose.c +0 -0
  153. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/gzguts.h +0 -0
  154. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/gzlib.c +0 -0
  155. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/gzread.c +0 -0
  156. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
  157. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/infback.c +0 -0
  158. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inffast.c +0 -0
  159. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inffast.h +0 -0
  160. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inffixed.h +0 -0
  161. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inflate.c +0 -0
  162. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inflate.h +0 -0
  163. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inftrees.c +0 -0
  164. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/inftrees.h +0 -0
  165. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/trees.c +0 -0
  166. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/trees.h +0 -0
  167. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/uncompr.c +0 -0
  168. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/zconf.h +0 -0
  169. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/zlib.h +0 -0
  170. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/zutil.c +0 -0
  171. {tcod-19.5.0 → tcod-19.6.1}/libtcod/src/vendor/zlib/zutil.h +0 -0
  172. {tcod-19.5.0 → tcod-19.6.1}/libtcodpy.py +0 -0
  173. {tcod-19.5.0 → tcod-19.6.1}/pyproject.toml +0 -0
  174. {tcod-19.5.0 → tcod-19.6.1}/requirements.txt +0 -0
  175. {tcod-19.5.0 → tcod-19.6.1}/setup.cfg +0 -0
  176. {tcod-19.5.0 → tcod-19.6.1}/setup.py +0 -0
  177. {tcod-19.5.0 → tcod-19.6.1}/tcod/__init__.py +0 -0
  178. {tcod-19.5.0 → tcod-19.6.1}/tcod/__pyinstaller/__init__.py +0 -0
  179. {tcod-19.5.0 → tcod-19.6.1}/tcod/__pyinstaller/hook-tcod.py +0 -0
  180. {tcod-19.5.0 → tcod-19.6.1}/tcod/_internal.py +0 -0
  181. {tcod-19.5.0 → tcod-19.6.1}/tcod/_libtcod.pyi +0 -0
  182. {tcod-19.5.0 → tcod-19.6.1}/tcod/cdef.h +0 -0
  183. {tcod-19.5.0 → tcod-19.6.1}/tcod/cffi.h +0 -0
  184. {tcod-19.5.0 → tcod-19.6.1}/tcod/color.py +0 -0
  185. {tcod-19.5.0 → tcod-19.6.1}/tcod/console.py +0 -0
  186. {tcod-19.5.0 → tcod-19.6.1}/tcod/constants.py +0 -0
  187. {tcod-19.5.0 → tcod-19.6.1}/tcod/event_constants.py +0 -0
  188. {tcod-19.5.0 → tcod-19.6.1}/tcod/image.py +0 -0
  189. {tcod-19.5.0 → tcod-19.6.1}/tcod/los.py +0 -0
  190. {tcod-19.5.0 → tcod-19.6.1}/tcod/map.py +0 -0
  191. {tcod-19.5.0 → tcod-19.6.1}/tcod/noise.c +0 -0
  192. {tcod-19.5.0 → tcod-19.6.1}/tcod/noise.h +0 -0
  193. {tcod-19.5.0 → tcod-19.6.1}/tcod/noise.py +0 -0
  194. {tcod-19.5.0 → tcod-19.6.1}/tcod/path.c +0 -0
  195. {tcod-19.5.0 → tcod-19.6.1}/tcod/path.h +0 -0
  196. {tcod-19.5.0 → tcod-19.6.1}/tcod/py.typed +0 -0
  197. {tcod-19.5.0 → tcod-19.6.1}/tcod/random.h +0 -0
  198. {tcod-19.5.0 → tcod-19.6.1}/tcod/render.py +0 -0
  199. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/__init__.py +0 -0
  200. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/constants.py +0 -0
  201. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/joystick.py +0 -0
  202. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/mouse.py +0 -0
  203. {tcod-19.5.0 → tcod-19.6.1}/tcod/sdl/sys.py +0 -0
  204. {tcod-19.5.0 → tcod-19.6.1}/tcod/tcod.c +0 -0
  205. {tcod-19.5.0 → tcod-19.6.1}/tcod/tcod.h +0 -0
  206. {tcod-19.5.0 → tcod-19.6.1}/tcod/tcod.py +0 -0
  207. {tcod-19.5.0 → tcod-19.6.1}/tcod/tileset.py +0 -0
  208. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/SOURCES.txt +0 -0
  209. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/dependency_links.txt +0 -0
  210. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/entry_points.txt +0 -0
  211. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/requires.txt +0 -0
  212. {tcod-19.5.0 → tcod-19.6.1}/tcod.egg-info/top_level.txt +0 -0
  213. {tcod-19.5.0 → tcod-19.6.1}/tox.ini +0 -0
@@ -6,6 +6,26 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [19.6.1] - 2025-12-15
10
+
11
+ ### Fixed
12
+
13
+ - `tcod.event.add_watch` was crashing due to a cdef type mismatch.
14
+
15
+ ## [19.6.0] - 2025-10-20
16
+
17
+ ### Added
18
+
19
+ - Alternative syntax for number symbols with `KeySym`, can now specify `KeySym["3"]`, etc.
20
+ Only available on Python 3.13 or later.
21
+
22
+ ### Fixed
23
+
24
+ - Fixed regression with lowercase key symbols with `tcod.event.K_*` and `KeySym.*` constants, these are still deprecated.
25
+ Event constants are only fixed for `tcod.event.K_*`, not the undocumented `tcod.event_constants` module.
26
+ Lowercase `KeySym.*` constants are only available on Python 3.13 or later.
27
+ - `BSP.split_recursive` did not accept a `Random` class as the seed. #168
28
+
9
29
  ## [19.5.0] - 2025-09-13
10
30
 
11
31
  ### Changed
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.5.0
3
+ Version: 19.6.1
4
4
  Summary: The official Python port of libtcod.
5
5
  Author-email: Kyle Benesch <4b796c65+tcod@gmail.com>
6
6
  License-Expression: BSD-2-Clause
@@ -311,7 +311,7 @@ void _sdl_audio_stream_callback(void* userdata, SDL_AudioStream *stream, int add
311
311
  // SDL to Python log function.
312
312
  void _sdl_log_output_function(void *userdata, int category, SDL_LogPriority priority, const char *message);
313
313
  // Generic event watcher callback.
314
- int _sdl_event_watcher(void* userdata, SDL_Event* event);
314
+ bool _sdl_event_watcher(void* userdata, SDL_Event* event);
315
315
  }
316
316
  """
317
317
 
@@ -27,7 +27,6 @@ Example::
27
27
 
28
28
  from __future__ import annotations
29
29
 
30
- from collections.abc import Iterator
31
30
  from typing import TYPE_CHECKING, Any
32
31
 
33
32
  from typing_extensions import deprecated
@@ -35,6 +34,8 @@ from typing_extensions import deprecated
35
34
  from tcod.cffi import ffi, lib
36
35
 
37
36
  if TYPE_CHECKING:
37
+ from collections.abc import Iterator
38
+
38
39
  import tcod.random
39
40
 
40
41
 
@@ -125,7 +126,11 @@ class BSP:
125
126
  self.children[1].parent = self
126
127
  self.children[1]._unpack_bsp_tree(lib.TCOD_bsp_right(cdata))
127
128
 
128
- def split_once(self, horizontal: bool, position: int) -> None:
129
+ def split_once(
130
+ self,
131
+ horizontal: bool, # noqa: FBT001
132
+ position: int,
133
+ ) -> None:
129
134
  """Split this partition into 2 sub-partitions.
130
135
 
131
136
  Args:
@@ -148,20 +153,17 @@ class BSP:
148
153
  """Divide this partition recursively.
149
154
 
150
155
  Args:
151
- depth (int): The maximum depth to divide this object recursively.
152
- min_width (int): The minimum width of any individual partition.
153
- min_height (int): The minimum height of any individual partition.
154
- max_horizontal_ratio (float):
155
- Prevent creating a horizontal ratio more extreme than this.
156
- max_vertical_ratio (float):
157
- Prevent creating a vertical ratio more extreme than this.
158
- seed (Optional[tcod.random.Random]):
159
- The random number generator to use.
156
+ depth: The maximum depth to divide this object recursively.
157
+ min_width: The minimum width of any individual partition.
158
+ min_height: The minimum height of any individual partition.
159
+ max_horizontal_ratio: Prevent creating a horizontal ratio more extreme than this.
160
+ max_vertical_ratio: Prevent creating a vertical ratio more extreme than this.
161
+ seed: The random number generator to use.
160
162
  """
161
163
  cdata = self._as_cdata()
162
164
  lib.TCOD_bsp_split_recursive(
163
165
  cdata,
164
- seed or ffi.NULL,
166
+ seed.random_c if seed is not None else ffi.NULL,
165
167
  depth,
166
168
  min_width,
167
169
  min_height,
@@ -214,13 +216,13 @@ class BSP:
214
216
 
215
217
  .. versionadded:: 8.3
216
218
  """
217
- next = [self]
218
- while next:
219
- level = next
220
- next = []
219
+ next_ = [self]
220
+ while next_:
221
+ level = next_
222
+ next_ = []
221
223
  yield from level
222
224
  for node in level:
223
- next.extend(node.children)
225
+ next_.extend(node.children)
224
226
 
225
227
  def inverted_level_order(self) -> Iterator[BSP]:
226
228
  """Iterate over this BSP's hierarchy in inverse level order.
@@ -60,7 +60,7 @@ from tcod._libtcod import ffi, lib # noqa: E402
60
60
  __sdl_version__ = get_sdl_version()
61
61
 
62
62
 
63
- @ffi.def_extern() # type: ignore[misc]
63
+ @ffi.def_extern() # type: ignore[untyped-decorator]
64
64
  def _libtcod_log_watcher(message: Any, _userdata: None) -> None: # noqa: ANN401
65
65
  text = str(ffi.string(message.message), encoding="utf-8")
66
66
  source = str(ffi.string(message.source), encoding="utf-8")
@@ -444,7 +444,7 @@ class Context:
444
444
  raise pickle.PicklingError(msg)
445
445
 
446
446
 
447
- @ffi.def_extern() # type: ignore[misc]
447
+ @ffi.def_extern() # type: ignore[untyped-decorator]
448
448
  def _pycall_cli_output(catch_reference: Any, output: Any) -> None: # noqa: ANN401
449
449
  """Callback for the libtcod context CLI.
450
450
 
@@ -84,6 +84,7 @@ from __future__ import annotations
84
84
 
85
85
  import enum
86
86
  import functools
87
+ import sys
87
88
  import warnings
88
89
  from collections.abc import Callable, Iterator, Mapping
89
90
  from typing import TYPE_CHECKING, Any, Final, Generic, Literal, NamedTuple, TypeVar
@@ -1563,7 +1564,7 @@ def get_mouse_state() -> MouseState:
1563
1564
  return MouseState((xy[0], xy[1]), (int(tile[0]), int(tile[1])), buttons)
1564
1565
 
1565
1566
 
1566
- @ffi.def_extern() # type: ignore[misc]
1567
+ @ffi.def_extern() # type: ignore[untyped-decorator]
1567
1568
  def _sdl_event_watcher(userdata: Any, sdl_event: Any) -> int:
1568
1569
  callback: Callable[[Event], None] = ffi.from_handle(userdata)
1569
1570
  callback(_parse_event(sdl_event))
@@ -2230,11 +2231,19 @@ class Scancode(enum.IntEnum):
2230
2231
  class KeySym(enum.IntEnum):
2231
2232
  """Keyboard constants based on their symbol.
2232
2233
 
2233
- These names are derived from SDL except for the numbers which are prefixed
2234
- with ``N`` (since raw numbers can not be a Python name.)
2234
+ These names are derived from SDL except for numbers which are prefixed with ``N`` (since raw numbers can not be a Python name).
2235
+ Alternatively ``KeySym["9"]`` can be used to represent numbers (since Python 3.13).
2235
2236
 
2236
2237
  .. versionadded:: 12.3
2237
2238
 
2239
+ .. versionchanged:: 19.0
2240
+ SDL backend was updated to 3.x, which means some enums have been renamed.
2241
+ Single letters are now uppercase.
2242
+
2243
+ .. versionchanged:: 19.6
2244
+ Number symbols can now be fetched with ``KeySym["9"]``, etc.
2245
+ With Python 3.13 or later.
2246
+
2238
2247
  ================== ==========
2239
2248
  UNKNOWN 0
2240
2249
  BACKSPACE 8
@@ -2280,32 +2289,32 @@ class KeySym(enum.IntEnum):
2280
2289
  CARET 94
2281
2290
  UNDERSCORE 95
2282
2291
  BACKQUOTE 96
2283
- a 97
2284
- b 98
2285
- c 99
2286
- d 100
2287
- e 101
2288
- f 102
2289
- g 103
2290
- h 104
2291
- i 105
2292
- j 106
2293
- k 107
2294
- l 108
2295
- m 109
2296
- n 110
2297
- o 111
2298
- p 112
2299
- q 113
2300
- r 114
2301
- s 115
2302
- t 116
2303
- u 117
2304
- v 118
2305
- w 119
2306
- x 120
2307
- y 121
2308
- z 122
2292
+ A 97
2293
+ B 98
2294
+ C 99
2295
+ D 100
2296
+ E 101
2297
+ F 102
2298
+ G 103
2299
+ H 104
2300
+ I 105
2301
+ J 106
2302
+ K 107
2303
+ L 108
2304
+ M 109
2305
+ N 110
2306
+ O 111
2307
+ P 112
2308
+ Q 113
2309
+ R 114
2310
+ S 115
2311
+ T 116
2312
+ U 117
2313
+ V 118
2314
+ W 119
2315
+ X 120
2316
+ Y 121
2317
+ Z 122
2309
2318
  DELETE 127
2310
2319
  SCANCODE_MASK 1073741824
2311
2320
  CAPSLOCK 1073741881
@@ -2799,6 +2808,48 @@ class KeySym(enum.IntEnum):
2799
2808
  return f"tcod.event.{self.__class__.__name__}.{self.name}"
2800
2809
 
2801
2810
 
2811
+ if sys.version_info >= (3, 13):
2812
+ # Alias for lower case letters removed from SDL3
2813
+ KeySym.A._add_alias_("a")
2814
+ KeySym.B._add_alias_("b")
2815
+ KeySym.C._add_alias_("c")
2816
+ KeySym.D._add_alias_("d")
2817
+ KeySym.E._add_alias_("e")
2818
+ KeySym.F._add_alias_("f")
2819
+ KeySym.G._add_alias_("g")
2820
+ KeySym.H._add_alias_("h")
2821
+ KeySym.I._add_alias_("i")
2822
+ KeySym.J._add_alias_("j")
2823
+ KeySym.K._add_alias_("k")
2824
+ KeySym.L._add_alias_("l")
2825
+ KeySym.M._add_alias_("m")
2826
+ KeySym.N._add_alias_("n")
2827
+ KeySym.O._add_alias_("o")
2828
+ KeySym.P._add_alias_("p")
2829
+ KeySym.Q._add_alias_("q")
2830
+ KeySym.R._add_alias_("r")
2831
+ KeySym.S._add_alias_("s")
2832
+ KeySym.T._add_alias_("t")
2833
+ KeySym.U._add_alias_("u")
2834
+ KeySym.V._add_alias_("v")
2835
+ KeySym.W._add_alias_("w")
2836
+ KeySym.X._add_alias_("x")
2837
+ KeySym.Y._add_alias_("y")
2838
+ KeySym.Z._add_alias_("z")
2839
+
2840
+ # Alias for numbers, since Python enum names can not be number literals
2841
+ KeySym.N0._add_alias_("0")
2842
+ KeySym.N1._add_alias_("1")
2843
+ KeySym.N2._add_alias_("2")
2844
+ KeySym.N3._add_alias_("3")
2845
+ KeySym.N4._add_alias_("4")
2846
+ KeySym.N5._add_alias_("5")
2847
+ KeySym.N6._add_alias_("6")
2848
+ KeySym.N7._add_alias_("7")
2849
+ KeySym.N8._add_alias_("8")
2850
+ KeySym.N9._add_alias_("9")
2851
+
2852
+
2802
2853
  def __getattr__(name: str) -> int:
2803
2854
  """Migrate deprecated access of event constants."""
2804
2855
  if name.startswith("BUTTON_"):
@@ -2822,6 +2873,9 @@ def __getattr__(name: str) -> int:
2822
2873
  )
2823
2874
  return replacement
2824
2875
 
2876
+ if name.startswith("K_") and len(name) == 3: # noqa: PLR2004
2877
+ name = name.upper() # Silently fix single letter key symbols removed from SDL3, these are still deprecated
2878
+
2825
2879
  value: int | None = getattr(tcod.event_constants, name, None)
2826
2880
  if not value:
2827
2881
  msg = f"module {__name__!r} has no attribute {name!r}"
@@ -3607,27 +3607,27 @@ _parser_callback_lock = threading.Lock()
3607
3607
  _parser_listener: Any = None
3608
3608
 
3609
3609
 
3610
- @ffi.def_extern() # type: ignore[misc]
3610
+ @ffi.def_extern() # type: ignore[untyped-decorator]
3611
3611
  def _pycall_parser_new_struct(struct: Any, name: str) -> Any:
3612
3612
  return _parser_listener.new_struct(struct, _unpack_char_p(name))
3613
3613
 
3614
3614
 
3615
- @ffi.def_extern() # type: ignore[misc]
3615
+ @ffi.def_extern() # type: ignore[untyped-decorator]
3616
3616
  def _pycall_parser_new_flag(name: str) -> Any:
3617
3617
  return _parser_listener.new_flag(_unpack_char_p(name))
3618
3618
 
3619
3619
 
3620
- @ffi.def_extern() # type: ignore[misc]
3620
+ @ffi.def_extern() # type: ignore[untyped-decorator]
3621
3621
  def _pycall_parser_new_property(propname: Any, type: Any, value: Any) -> Any:
3622
3622
  return _parser_listener.new_property(_unpack_char_p(propname), type, _unpack_union(type, value))
3623
3623
 
3624
3624
 
3625
- @ffi.def_extern() # type: ignore[misc]
3625
+ @ffi.def_extern() # type: ignore[untyped-decorator]
3626
3626
  def _pycall_parser_end_struct(struct: Any, name: Any) -> Any:
3627
3627
  return _parser_listener.end_struct(struct, _unpack_char_p(name))
3628
3628
 
3629
3629
 
3630
- @ffi.def_extern() # type: ignore[misc]
3630
+ @ffi.def_extern() # type: ignore[untyped-decorator]
3631
3631
  def _pycall_parser_error(msg: Any) -> None:
3632
3632
  _parser_listener.error(_unpack_char_p(msg))
3633
3633
 
@@ -35,26 +35,26 @@ if TYPE_CHECKING:
35
35
  from numpy.typing import ArrayLike, DTypeLike, NDArray
36
36
 
37
37
 
38
- @ffi.def_extern() # type: ignore[misc]
38
+ @ffi.def_extern() # type: ignore[untyped-decorator]
39
39
  def _pycall_path_old(x1: int, y1: int, x2: int, y2: int, handle: Any) -> float: # noqa: ANN401
40
40
  """Libtcodpy style callback, needs to preserve the old userdata issue."""
41
41
  func, userdata = ffi.from_handle(handle)
42
42
  return func(x1, y1, x2, y2, userdata) # type: ignore[no-any-return]
43
43
 
44
44
 
45
- @ffi.def_extern() # type: ignore[misc]
45
+ @ffi.def_extern() # type: ignore[untyped-decorator]
46
46
  def _pycall_path_simple(x1: int, y1: int, x2: int, y2: int, handle: Any) -> float: # noqa: ANN401
47
47
  """Does less and should run faster, just calls the handle function."""
48
48
  return ffi.from_handle(handle)(x1, y1, x2, y2) # type: ignore[no-any-return]
49
49
 
50
50
 
51
- @ffi.def_extern() # type: ignore[misc]
51
+ @ffi.def_extern() # type: ignore[untyped-decorator]
52
52
  def _pycall_path_swap_src_dest(x1: int, y1: int, x2: int, y2: int, handle: Any) -> float: # noqa: ANN401
53
53
  """A TDL function dest comes first to match up with a dest only call."""
54
54
  return ffi.from_handle(handle)(x2, y2, x1, y1) # type: ignore[no-any-return]
55
55
 
56
56
 
57
- @ffi.def_extern() # type: ignore[misc]
57
+ @ffi.def_extern() # type: ignore[untyped-decorator]
58
58
  def _pycall_path_dest_only(_x1: int, _y1: int, x2: int, y2: int, handle: Any) -> float: # noqa: ANN401
59
59
  """A TDL function which samples the dest coordinate only."""
60
60
  return ffi.from_handle(handle)(x2, y2) # type: ignore[no-any-return]
@@ -12,14 +12,16 @@ from __future__ import annotations
12
12
  import os
13
13
  import random
14
14
  import warnings
15
- from collections.abc import Hashable
16
- from typing import Any
15
+ from typing import TYPE_CHECKING, Any
17
16
 
18
17
  from typing_extensions import deprecated
19
18
 
20
19
  import tcod.constants
21
20
  from tcod.cffi import ffi, lib
22
21
 
22
+ if TYPE_CHECKING:
23
+ from collections.abc import Hashable
24
+
23
25
  MERSENNE_TWISTER = tcod.constants.RNG_MT
24
26
  COMPLEMENTARY_MULTIPLY_WITH_CARRY = tcod.constants.RNG_CMWC
25
27
  MULTIPLY_WITH_CARRY = tcod.constants.RNG_CMWC
@@ -149,7 +149,7 @@ class Properties:
149
149
  lib.SDL_SetPointerProperty(self.p, name, value._as_property_pointer())
150
150
 
151
151
 
152
- @ffi.def_extern() # type: ignore[misc]
152
+ @ffi.def_extern() # type: ignore[untyped-decorator]
153
153
  def _sdl_log_output_function(_userdata: None, category: int, priority: int, message_p: Any) -> None: # noqa: ANN401
154
154
  """Pass logs sent by SDL to Python's logging system."""
155
155
  message = str(ffi.string(message_p), encoding="utf-8")
@@ -1,14 +1,15 @@
1
- """SDL2 audio playback and recording tools.
1
+ """SDL audio playback and recording tools.
2
2
 
3
3
  This module includes SDL's low-level audio API and a naive implementation of an SDL mixer.
4
4
  If you have experience with audio mixing then you might be better off writing your own mixer or
5
5
  modifying the existing one which was written using Python/Numpy.
6
6
 
7
7
  This module is designed to integrate with the wider Python ecosystem.
8
- It leaves the loading to sound samples to other libraries like
9
- `SoundFile <https://pysoundfile.readthedocs.io/en/latest/>`_.
8
+ It leaves the loading to sound samples to other libraries such as
9
+ `soundfile <https://python-soundfile.readthedocs.io/en/latest/>`_.
10
+
11
+ Example::
10
12
 
11
- Example:
12
13
  # Synchronous audio example
13
14
  import time
14
15
 
@@ -211,7 +212,8 @@ def convert_audio(
211
212
  class AudioDevice:
212
213
  """An SDL audio device.
213
214
 
214
- Example:
215
+ Example::
216
+
215
217
  device = tcod.sdl.audio.get_default_playback().open() # Open a common audio device
216
218
 
217
219
  .. versionchanged:: 16.0
@@ -487,7 +489,7 @@ class AudioStream:
487
489
 
488
490
  This class is commonly created with :any:`AudioDevice.new_stream` which creates a new stream bound to the device.
489
491
 
490
- ..versionadded:: 19.0
492
+ .. versionadded:: 19.0
491
493
  """
492
494
 
493
495
  __slots__ = ("__weakref__", "_stream_p")
@@ -904,7 +906,7 @@ class BasicMixer:
904
906
  audio_stream.queue_audio(stream)
905
907
 
906
908
 
907
- @ffi.def_extern() # type: ignore[misc]
909
+ @ffi.def_extern() # type: ignore[untyped-decorator]
908
910
  def _sdl_audio_stream_callback(userdata: Any, stream_p: Any, additional_amount: int, total_amount: int, /) -> None: # noqa: ANN401
909
911
  """Handle audio device callbacks."""
910
912
  stream = AudioStream(stream_p)
@@ -957,7 +959,8 @@ def get_capture_devices() -> dict[str, AudioDevice]:
957
959
  def get_default_playback() -> AudioDevice:
958
960
  """Return the default playback device.
959
961
 
960
- Example:
962
+ Example::
963
+
961
964
  playback_device = tcod.sdl.audio.get_default_playback().open()
962
965
 
963
966
  .. versionadded:: 19.0
@@ -969,7 +972,8 @@ def get_default_playback() -> AudioDevice:
969
972
  def get_default_recording() -> AudioDevice:
970
973
  """Return the default recording device.
971
974
 
972
- Example:
975
+ Example::
976
+
973
977
  recording_device = tcod.sdl.audio.get_default_recording().open()
974
978
 
975
979
  .. versionadded:: 19.0
@@ -1,4 +1,4 @@
1
- """SDL2 Rendering functionality.
1
+ """SDL Rendering functionality.
2
2
 
3
3
  .. versionadded:: 13.4
4
4
  """
@@ -271,7 +271,7 @@ class Texture:
271
271
  def scale_mode(self) -> ScaleMode:
272
272
  """Get or set this textures :any:`ScaleMode`.
273
273
 
274
- ..versionadded:: 19.3
274
+ .. versionadded:: 19.3
275
275
  """
276
276
  mode = ffi.new("SDL_ScaleMode*")
277
277
  _check(lib.SDL_GetTextureScaleMode(self.p, mode))
@@ -1,4 +1,4 @@
1
- """SDL2 Window and Display handling.
1
+ """SDL Window and Display handling.
2
2
 
3
3
  There are two main ways to access the SDL window.
4
4
  Either you can use this module to open a window yourself bypassing libtcod's context,
@@ -167,7 +167,7 @@ class _TempSurface:
167
167
 
168
168
 
169
169
  class Window:
170
- """An SDL2 Window object.
170
+ """An SDL Window object.
171
171
 
172
172
  Created from :any:`tcod.sdl.video.new_window` when working with SDL directly.
173
173
 
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '19.5.0'
32
- __version_tuple__ = version_tuple = (19, 5, 0)
31
+ __version__ = version = '19.6.1'
32
+ __version_tuple__ = version_tuple = (19, 6, 1)
33
33
 
34
- __commit_id__ = commit_id = 'g59d592382'
34
+ __commit_id__ = commit_id = 'gcba0c7555'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.5.0
3
+ Version: 19.6.1
4
4
  Summary: The official Python port of libtcod.
5
5
  Author-email: Kyle Benesch <4b796c65+tcod@gmail.com>
6
6
  License-Expression: BSD-2-Clause
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