tcod 16.2.2__tar.gz → 17.0.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 (213) hide show
  1. {tcod-16.2.2 → tcod-17.0.0}/CHANGELOG.md +23 -0
  2. {tcod-16.2.2 → tcod-17.0.0}/PKG-INFO +5 -3
  3. {tcod-16.2.2 → tcod-17.0.0}/build_libtcod.py +6 -4
  4. {tcod-16.2.2 → tcod-17.0.0}/build_sdl.py +5 -1
  5. {tcod-16.2.2 → tcod-17.0.0}/libtcodpy.py +1 -0
  6. {tcod-16.2.2 → tcod-17.0.0}/pyproject.toml +18 -20
  7. {tcod-16.2.2 → tcod-17.0.0}/requirements.txt +2 -1
  8. {tcod-16.2.2 → tcod-17.0.0}/setup.py +1 -0
  9. {tcod-16.2.2 → tcod-17.0.0}/tcod/__init__.py +6 -5
  10. {tcod-16.2.2 → tcod-17.0.0}/tcod/__pyinstaller/__init__.py +1 -0
  11. {tcod-16.2.2 → tcod-17.0.0}/tcod/__pyinstaller/hook-tcod.py +1 -0
  12. {tcod-16.2.2 → tcod-17.0.0}/tcod/_internal.py +14 -17
  13. {tcod-16.2.2 → tcod-17.0.0}/tcod/bsp.py +6 -4
  14. {tcod-16.2.2 → tcod-17.0.0}/tcod/cffi.py +3 -2
  15. {tcod-16.2.2 → tcod-17.0.0}/tcod/color.py +8 -7
  16. {tcod-16.2.2 → tcod-17.0.0}/tcod/console.py +69 -34
  17. {tcod-16.2.2 → tcod-17.0.0}/tcod/constants.py +2 -1
  18. {tcod-16.2.2 → tcod-17.0.0}/tcod/context.py +22 -20
  19. {tcod-16.2.2 → tcod-17.0.0}/tcod/event.py +73 -95
  20. {tcod-16.2.2 → tcod-17.0.0}/tcod/event_constants.py +1 -18
  21. {tcod-16.2.2 → tcod-17.0.0}/tcod/image.py +12 -4
  22. {tcod-16.2.2 → tcod-17.0.0}/tcod/libtcodpy.py +87 -96
  23. {tcod-16.2.2 → tcod-17.0.0}/tcod/los.py +1 -0
  24. {tcod-16.2.2 → tcod-17.0.0}/tcod/map.py +7 -4
  25. {tcod-16.2.2 → tcod-17.0.0}/tcod/noise.py +4 -2
  26. {tcod-16.2.2 → tcod-17.0.0}/tcod/path.py +10 -7
  27. {tcod-16.2.2 → tcod-17.0.0}/tcod/random.py +5 -3
  28. {tcod-16.2.2 → tcod-17.0.0}/tcod/render.py +2 -0
  29. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/__init__.py +1 -0
  30. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/_internal.py +1 -0
  31. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/audio.py +1 -0
  32. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/joystick.py +1 -0
  33. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/mouse.py +1 -0
  34. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/render.py +32 -33
  35. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/video.py +3 -2
  36. {tcod-16.2.2 → tcod-17.0.0}/tcod/tcod.py +2 -1
  37. {tcod-16.2.2 → tcod-17.0.0}/tcod/tileset.py +32 -7
  38. {tcod-16.2.2 → tcod-17.0.0}/tcod/version.py +9 -4
  39. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/PKG-INFO +5 -3
  40. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/requires.txt +1 -1
  41. {tcod-16.2.2 → tcod-17.0.0}/CONTRIBUTING.md +0 -0
  42. {tcod-16.2.2 → tcod-17.0.0}/LICENSE.txt +0 -0
  43. {tcod-16.2.2 → tcod-17.0.0}/MANIFEST.in +0 -0
  44. {tcod-16.2.2 → tcod-17.0.0}/README.rst +0 -0
  45. {tcod-16.2.2 → tcod-17.0.0}/libtcod/CHANGELOG.md +0 -0
  46. {tcod-16.2.2 → tcod-17.0.0}/libtcod/CMakeLists.txt +0 -0
  47. {tcod-16.2.2 → tcod-17.0.0}/libtcod/CONTRIBUTING.md +0 -0
  48. {tcod-16.2.2 → tcod-17.0.0}/libtcod/LIBTCOD-CREDITS.txt +0 -0
  49. {tcod-16.2.2 → tcod-17.0.0}/libtcod/LICENSE.txt +0 -0
  50. {tcod-16.2.2 → tcod-17.0.0}/libtcod/README.md +0 -0
  51. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/bresenham.h +0 -0
  52. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/bresenham_c.c +0 -0
  53. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/bsp.h +0 -0
  54. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/bsp_c.c +0 -0
  55. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/color.c +0 -0
  56. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/color.h +0 -0
  57. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/config.h +0 -0
  58. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console.c +0 -0
  59. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console.h +0 -0
  60. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_drawing.c +0 -0
  61. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_drawing.h +0 -0
  62. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_etc.c +0 -0
  63. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_etc.h +0 -0
  64. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_init.c +0 -0
  65. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_init.h +0 -0
  66. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_printing.c +0 -0
  67. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_printing.h +0 -0
  68. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_rexpaint.c +0 -0
  69. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_rexpaint.h +0 -0
  70. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/console_types.h +0 -0
  71. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context.c +0 -0
  72. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context.h +0 -0
  73. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context_init.c +0 -0
  74. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context_init.h +0 -0
  75. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context_viewport.c +0 -0
  76. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/context_viewport.h +0 -0
  77. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/error.c +0 -0
  78. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/error.h +0 -0
  79. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov.h +0 -0
  80. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_c.c +0 -0
  81. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
  82. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
  83. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_permissive2.c +0 -0
  84. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
  85. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_restrictive.c +0 -0
  86. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
  87. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/fov_types.h +0 -0
  88. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/globals.c +0 -0
  89. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/globals.h +0 -0
  90. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/heapq.c +0 -0
  91. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/heapq.h +0 -0
  92. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/heightmap.h +0 -0
  93. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/heightmap_c.c +0 -0
  94. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/image.h +0 -0
  95. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/image_c.c +0 -0
  96. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/lex.h +0 -0
  97. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/lex_c.c +0 -0
  98. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/libtcod.h +0 -0
  99. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/libtcod_int.h +0 -0
  100. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/list.h +0 -0
  101. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/list_c.c +0 -0
  102. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/logging.c +0 -0
  103. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/logging.h +0 -0
  104. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/mersenne.h +0 -0
  105. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/mersenne_c.c +0 -0
  106. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/mersenne_types.h +0 -0
  107. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/mouse.h +0 -0
  108. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/mouse_types.h +0 -0
  109. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/namegen.h +0 -0
  110. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/namegen_c.c +0 -0
  111. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/noise.h +0 -0
  112. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/noise_c.c +0 -0
  113. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/noise_defaults.h +0 -0
  114. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/parser.h +0 -0
  115. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/parser_c.c +0 -0
  116. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/path.h +0 -0
  117. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/path_c.c +0 -0
  118. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/pathfinder.c +0 -0
  119. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/pathfinder.h +0 -0
  120. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
  121. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
  122. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/portability.h +0 -0
  123. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/random.c +0 -0
  124. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/random.h +0 -0
  125. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
  126. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
  127. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/renderer_xterm.c +0 -0
  128. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/renderer_xterm.h +0 -0
  129. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
  130. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
  131. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sdl2/event.h +0 -0
  132. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sys.h +0 -0
  133. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sys_c.c +0 -0
  134. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
  135. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
  136. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
  137. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset.c +0 -0
  138. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset.h +0 -0
  139. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_bdf.c +0 -0
  140. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_bdf.h +0 -0
  141. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_fallback.c +0 -0
  142. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_fallback.h +0 -0
  143. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_render.c +0 -0
  144. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_render.h +0 -0
  145. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_truetype.c +0 -0
  146. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tileset_truetype.h +0 -0
  147. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/timer.h +0 -0
  148. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tree.h +0 -0
  149. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/tree_c.c +0 -0
  150. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/txtfield.h +0 -0
  151. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/txtfield_c.c +0 -0
  152. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/utility.h +0 -0
  153. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/version.h +0 -0
  154. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/wrappers.c +0 -0
  155. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/wrappers.h +0 -0
  156. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/zip.h +0 -0
  157. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod/zip_c.c +0 -0
  158. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod.h +0 -0
  159. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/libtcod_c.c +0 -0
  160. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/khrplatform.h +0 -0
  161. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/lodepng.c +0 -0
  162. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/lodepng.h +0 -0
  163. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/stb.c +0 -0
  164. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/stb_ds.h +0 -0
  165. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/stb_truetype.h +0 -0
  166. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
  167. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
  168. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
  169. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/adler32.c +0 -0
  170. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/compress.c +0 -0
  171. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/crc32.c +0 -0
  172. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/crc32.h +0 -0
  173. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/deflate.c +0 -0
  174. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/deflate.h +0 -0
  175. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/gzclose.c +0 -0
  176. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/gzguts.h +0 -0
  177. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/gzlib.c +0 -0
  178. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/gzread.c +0 -0
  179. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
  180. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/infback.c +0 -0
  181. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inffast.c +0 -0
  182. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inffast.h +0 -0
  183. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inffixed.h +0 -0
  184. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inflate.c +0 -0
  185. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inflate.h +0 -0
  186. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inftrees.c +0 -0
  187. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/inftrees.h +0 -0
  188. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/trees.c +0 -0
  189. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/trees.h +0 -0
  190. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/uncompr.c +0 -0
  191. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/zconf.h +0 -0
  192. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/zlib.h +0 -0
  193. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/zutil.c +0 -0
  194. {tcod-16.2.2 → tcod-17.0.0}/libtcod/src/vendor/zlib/zutil.h +0 -0
  195. {tcod-16.2.2 → tcod-17.0.0}/setup.cfg +0 -0
  196. {tcod-16.2.2 → tcod-17.0.0}/tcod/cdef.h +0 -0
  197. {tcod-16.2.2 → tcod-17.0.0}/tcod/cffi.h +0 -0
  198. {tcod-16.2.2 → tcod-17.0.0}/tcod/noise.c +0 -0
  199. {tcod-16.2.2 → tcod-17.0.0}/tcod/noise.h +0 -0
  200. {tcod-16.2.2 → tcod-17.0.0}/tcod/path.c +0 -0
  201. {tcod-16.2.2 → tcod-17.0.0}/tcod/path.h +0 -0
  202. {tcod-16.2.2 → tcod-17.0.0}/tcod/py.typed +0 -0
  203. {tcod-16.2.2 → tcod-17.0.0}/tcod/random.h +0 -0
  204. {tcod-16.2.2 → tcod-17.0.0}/tcod/sdl/sys.py +0 -0
  205. {tcod-16.2.2 → tcod-17.0.0}/tcod/tcod.c +0 -0
  206. {tcod-16.2.2 → tcod-17.0.0}/tcod/tcod.h +0 -0
  207. {tcod-16.2.2 → tcod-17.0.0}/tcod/tdl.c +0 -0
  208. {tcod-16.2.2 → tcod-17.0.0}/tcod/tdl.h +0 -0
  209. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/SOURCES.txt +0 -0
  210. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/dependency_links.txt +0 -0
  211. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/entry_points.txt +0 -0
  212. {tcod-16.2.2 → tcod-17.0.0}/tcod.egg-info/top_level.txt +0 -0
  213. {tcod-16.2.2 → tcod-17.0.0}/tox.ini +0 -0
@@ -6,6 +6,29 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [17.0.0] - 2025-03-28
10
+
11
+ ### Changed
12
+
13
+ - `EventDispatch`'s on event methods are now defined as positional parameters, so renaming the `event` parameter is now valid in subclasses.
14
+
15
+ ### Deprecated
16
+
17
+ - Keyboard bitmask modifiers `tcod.event.KMOD_*` have been replaced by `tcod.event.Modifier`.
18
+
19
+ ### Fixed
20
+
21
+ - Suppressed internal `mouse.tile_motion` deprecation warning.
22
+ - Fixed SDL renderer primitive drawing methods. #159
23
+
24
+ ## [16.2.3] - 2024-07-16
25
+
26
+ ### Fixed
27
+
28
+ - Fixed access violation when events are polled before SDL is initialized.
29
+ - Fixed access violation when libtcod images fail to load.
30
+ - Verify input files exist when calling `libtcodpy.parser_run`, `libtcodpy.namegen_parse`, `tcod.image.load`.
31
+
9
32
  ## [16.2.2] - 2024-01-16
10
33
 
11
34
  ### Fixed
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 16.2.2
3
+ Version: 17.0.0
4
4
  Summary: The official Python port of libtcod.
5
5
  Author-email: Kyle Benesch <4b796c65+tcod@gmail.com>
6
6
  License: Simplified BSD License
@@ -41,7 +41,9 @@ Description-Content-Type: text/x-rst
41
41
  License-File: LICENSE.txt
42
42
  Requires-Dist: cffi>=1.15
43
43
  Requires-Dist: numpy>=1.21.4; implementation_name != "pypy"
44
- Requires-Dist: typing_extensions
44
+ Requires-Dist: typing_extensions>=4.12.2
45
+ Dynamic: license-file
46
+ Dynamic: platform
45
47
 
46
48
  .. contents::
47
49
  :backlinks: top
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  """Parse and compile libtcod and SDL sources for CFFI."""
3
+
3
4
  from __future__ import annotations
4
5
 
5
6
  import contextlib
@@ -15,7 +16,7 @@ from cffi import FFI
15
16
 
16
17
  sys.path.append(str(Path(__file__).parent)) # Allow importing local modules.
17
18
 
18
- import build_sdl # noqa: E402
19
+ import build_sdl
19
20
 
20
21
  Py_LIMITED_API = 0x03060000
21
22
 
@@ -232,6 +233,7 @@ CONSTANT_MODULE_HEADER = '''"""Constants from the libtcod C API.
232
233
 
233
234
  This module is auto-generated by `build_libtcod.py`.
234
235
  """
236
+
235
237
  from tcod.color import Color
236
238
 
237
239
  '''
@@ -365,7 +367,7 @@ def write_library_constants() -> None:
365
367
  f.write(f"{name[5:]} = {color!r}\n")
366
368
 
367
369
  all_names_merged = ",\n ".join(f'"{name}"' for name in all_names)
368
- f.write(f"\n__all__ = [\n {all_names_merged},\n]\n")
370
+ f.write(f"\n__all__ = [ # noqa: RUF022\n {all_names_merged},\n]\n")
369
371
  update_module_all(Path("tcod/libtcodpy.py"), all_names_merged)
370
372
 
371
373
  with Path("tcod/event_constants.py").open("w", encoding="utf-8") as f:
@@ -378,12 +380,12 @@ def write_library_constants() -> None:
378
380
  f.write(f"""{parse_sdl_attrs("SDLK", None)[0]}\n""")
379
381
 
380
382
  f.write("\n# --- SDL keyboard modifiers ---\n")
381
- f.write("{}\n_REVERSE_MOD_TABLE = {}\n".format(*parse_sdl_attrs("KMOD", all_names)))
383
+ f.write("{}\n_REVERSE_MOD_TABLE = {}\n".format(*parse_sdl_attrs("KMOD", None)))
382
384
 
383
385
  f.write("\n# --- SDL wheel ---\n")
384
386
  f.write("{}\n_REVERSE_WHEEL_TABLE = {}\n".format(*parse_sdl_attrs("SDL_MOUSEWHEEL", all_names)))
385
387
  all_names_merged = ",\n ".join(f'"{name}"' for name in all_names)
386
- f.write(f"\n__all__ = [\n {all_names_merged},\n]\n")
388
+ f.write(f"\n__all__ = [ # noqa: RUF022\n {all_names_merged},\n]\n")
387
389
 
388
390
  event_py = Path("tcod/event.py").read_text(encoding="utf-8")
389
391
 
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  """Build script to parse SDL headers and generate CFFI bindings."""
3
+
3
4
  from __future__ import annotations
4
5
 
5
6
  import io
@@ -32,7 +33,7 @@ SDL2_BUNDLE_VERSION = os.environ.get("SDL_VERSION", "2.28.1")
32
33
  # Used to remove excessive newlines in debug outputs.
33
34
  RE_NEWLINES = re.compile(r"\n\n+")
34
35
  # Functions using va_list need to be culled.
35
- RE_VAFUNC = re.compile(r"^.*?\([^()]*va_list[^()]*\);$", re.MULTILINE)
36
+ RE_VAFUNC = re.compile(r"^.*?\([^()]*va_list[^()]*\)\s*;\s*$", re.MULTILINE)
36
37
  # Static inline functions need to be culled.
37
38
  RE_INLINE = re.compile(r"^static inline.*?^}$", re.MULTILINE | re.DOTALL)
38
39
  # Most SDL_PIXELFORMAT names need their values scrubbed.
@@ -59,6 +60,9 @@ IGNORE_DEFINES = frozenset(
59
60
  "SDL_INLINE",
60
61
  "SDL_FORCE_INLINE",
61
62
  "SDL_FALLTHROUGH",
63
+ "SDL_HAS_FALLTHROUGH",
64
+ "SDL_NO_THREAD_SAFETY_ANALYSIS",
65
+ "SDL_SCOPED_CAPABILITY",
62
66
  # Might show up in parsing and not in source.
63
67
  "SDL_ANDROID_EXTERNAL_STORAGE_READ",
64
68
  "SDL_ANDROID_EXTERNAL_STORAGE_WRITE",
@@ -1,4 +1,5 @@
1
1
  """Deprecated module alias for tcod.libtcodpy, use 'import tcod as libtcodpy' instead."""
2
+
2
3
  import warnings
3
4
 
4
5
  from tcod.libtcodpy import * # noqa: F403
@@ -23,7 +23,7 @@ license = { text = "Simplified BSD License" }
23
23
  dependencies = [
24
24
  "cffi>=1.15",
25
25
  'numpy>=1.21.4; implementation_name != "pypy"',
26
- "typing_extensions",
26
+ "typing_extensions>=4.12.2",
27
27
  ]
28
28
  keywords = [
29
29
  "roguelike",
@@ -146,7 +146,10 @@ module = "tcod._libtcod"
146
146
  ignore_missing_imports = true
147
147
 
148
148
  [tool.ruff]
149
- # https://beta.ruff.rs/docs/rules/
149
+ extend-exclude = ["libtcod"] # Ignore submodule
150
+ line-length = 120
151
+
152
+ [tool.ruff.lint] # https://docs.astral.sh/ruff/rules/
150
153
  select = [
151
154
  "C90", # mccabe
152
155
  "E", # pycodestyle
@@ -175,24 +178,19 @@ select = [
175
178
  "D", # pydocstyle
176
179
  ]
177
180
  ignore = [
178
- "E501", # line-too-long
179
- "S101", # assert
180
- "S301", # suspicious-pickle-usage
181
- "S311", # suspicious-non-cryptographic-random-usage
182
- "ANN101", # missing-type-self
183
- "ANN102", # missing-type-cls
184
- "D203", # one-blank-line-before-class
185
- "D204", # one-blank-line-after-class
186
- "D213", # multi-line-summary-second-line
187
- "D407", # dashed-underline-after-section
188
- "D408", # section-underline-after-name
189
- "D409", # section-underline-matches-section-length
190
- "D206", # indent-with-spaces
191
- "W191", # tab-indentation
181
+ "E501", # line-too-long
182
+ "S101", # assert
183
+ "S301", # suspicious-pickle-usage
184
+ "S311", # suspicious-non-cryptographic-random-usage
185
+ "D203", # one-blank-line-before-class
186
+ "D204", # one-blank-line-after-class
187
+ "D213", # multi-line-summary-second-line
188
+ "D407", # dashed-underline-after-section
189
+ "D408", # section-underline-after-name
190
+ "D409", # section-underline-matches-section-length
191
+ "D206", # indent-with-spaces
192
+ "W191", # tab-indentation
192
193
  ]
193
- extend-exclude = ["libtcod"] # Ignore submodule
194
- line-length = 120
195
194
 
196
- [tool.ruff.pydocstyle]
197
- # Use Google-style docstrings.
195
+ [tool.ruff.lint.pydocstyle] # https://docs.astral.sh/ruff/settings/#lintpydocstyle
198
196
  convention = "google"
@@ -3,9 +3,10 @@ cffi>=1.15
3
3
  numpy>=1.21.4
4
4
  pycparser>=2.14
5
5
  requests>=2.28.1
6
- setuptools==65.5.1
6
+ setuptools==70.0.0
7
7
  types-cffi
8
8
  types-requests
9
+ types-Pillow
9
10
  types-setuptools
10
11
  types-tabulate
11
12
  typing_extensions
@@ -1,5 +1,6 @@
1
1
  #!/usr/bin/env python
2
2
  """Python-tcod setup script."""
3
+
3
4
  from __future__ import annotations
4
5
 
5
6
  import platform
@@ -6,6 +6,7 @@ Bring any issues or feature requests to GitHub: https://github.com/libtcod/pytho
6
6
 
7
7
  Read the documentation online: https://python-tcod.readthedocs.io/en/latest/
8
8
  """
9
+
9
10
  from __future__ import annotations
10
11
 
11
12
  from pkgutil import extend_path
@@ -18,22 +19,22 @@ from tcod.tcod import __getattr__ # noqa: F401
18
19
  from tcod.version import __version__
19
20
 
20
21
  __all__ = [
21
- "__version__",
22
+ "Console",
22
23
  "__sdl_version__",
23
- "lib",
24
- "ffi",
24
+ "__version__",
25
25
  "bsp",
26
26
  "color",
27
27
  "console",
28
28
  "context",
29
29
  "event",
30
- "tileset",
30
+ "ffi",
31
31
  "image",
32
+ "lib",
32
33
  "los",
33
34
  "map",
34
35
  "noise",
35
36
  "path",
36
37
  "random",
37
38
  "tileset",
38
- "Console",
39
+ "tileset",
39
40
  ]
@@ -1,4 +1,5 @@
1
1
  """PyInstaller entry point for tcod."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
5
  from pathlib import Path
@@ -5,6 +5,7 @@ There were added since tcod 12.0.0.
5
5
  If this hook is ever modified then the contributed hook needs to be removed from:
6
6
  https://github.com/pyinstaller/pyinstaller-hooks-contrib
7
7
  """
8
+
8
9
  from PyInstaller.utils.hooks import collect_dynamic_libs # type: ignore
9
10
 
10
11
  hiddenimports = ["_cffi_backend"]
@@ -1,17 +1,17 @@
1
1
  """Internal helper functions used by the rest of the library."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
- import functools
5
5
  import locale
6
6
  import sys
7
7
  import warnings
8
8
  from pathlib import Path
9
9
  from types import TracebackType
10
- from typing import TYPE_CHECKING, Any, AnyStr, Callable, NoReturn, SupportsInt, TypeVar, cast
10
+ from typing import TYPE_CHECKING, Any, AnyStr, Callable, NoReturn, SupportsInt, TypeVar
11
11
 
12
12
  import numpy as np
13
13
  from numpy.typing import ArrayLike, NDArray
14
- from typing_extensions import Literal
14
+ from typing_extensions import Literal, LiteralString, deprecated
15
15
 
16
16
  from tcod.cffi import ffi, lib
17
17
 
@@ -23,31 +23,28 @@ F = TypeVar("F", bound=FuncType)
23
23
  T = TypeVar("T")
24
24
 
25
25
 
26
- def deprecate(message: str, category: type[Warning] = DeprecationWarning, stacklevel: int = 0) -> Callable[[F], F]:
27
- """Return a decorator which adds a warning to functions."""
26
+ def _deprecate_passthrough(
27
+ message: str, /, *, category: type[Warning] = DeprecationWarning, stacklevel: int = 0
28
+ ) -> Callable[[F], F]:
29
+ """Return a decorator which skips wrapping a warning onto functions. This is used for non-debug runs."""
28
30
 
29
31
  def decorator(func: F) -> F:
30
- if not __debug__:
31
- return func
32
+ return func
32
33
 
33
- @functools.wraps(func)
34
- def wrapper(*args: Any, **kwargs: Any) -> Any: # noqa: ANN401
35
- warnings.warn(message, category, stacklevel=stacklevel + 2)
36
- return func(*args, **kwargs)
34
+ return decorator
37
35
 
38
- return cast(F, wrapper)
39
36
 
40
- return decorator
37
+ deprecate = deprecated if __debug__ or TYPE_CHECKING else _deprecate_passthrough
41
38
 
42
39
 
43
40
  def pending_deprecate(
44
- message: str = "This function may be deprecated in the future."
41
+ message: LiteralString = "This function may be deprecated in the future."
45
42
  " Consider raising an issue on GitHub if you need this feature.",
46
43
  category: type[Warning] = PendingDeprecationWarning,
47
44
  stacklevel: int = 0,
48
45
  ) -> Callable[[F], F]:
49
46
  """Like deprecate, but the default parameters are filled out for a generic pending deprecation warning."""
50
- return deprecate(message, category, stacklevel)
47
+ return deprecate(message, category=category, stacklevel=stacklevel)
51
48
 
52
49
 
53
50
  def verify_order(order: Literal["C", "F"]) -> Literal["C", "F"]:
@@ -118,7 +115,7 @@ def _unicode(string: AnyStr, stacklevel: int = 2) -> str:
118
115
  stacklevel=stacklevel + 1,
119
116
  )
120
117
  return string.decode("latin-1")
121
- return string
118
+ return str(string)
122
119
 
123
120
 
124
121
  def _fmt(string: str, stacklevel: int = 2) -> bytes:
@@ -270,5 +267,5 @@ class TempImage:
270
267
  def _as_image(image: ArrayLike | tcod.image.Image) -> TempImage | tcod.image.Image:
271
268
  """Convert this input into an Image-like object."""
272
269
  if hasattr(image, "image_c"):
273
- return image # type: ignore
270
+ return image
274
271
  return TempImage(image)
@@ -24,12 +24,14 @@ Example::
24
24
  else:
25
25
  print('Dig a room for %s.' % node)
26
26
  """
27
+
27
28
  from __future__ import annotations
28
29
 
29
30
  from typing import Any, Iterator
30
31
 
32
+ from typing_extensions import deprecated
33
+
31
34
  import tcod.random
32
- from tcod._internal import deprecate
33
35
  from tcod.cffi import ffi, lib
34
36
 
35
37
 
@@ -71,7 +73,7 @@ class BSP:
71
73
  self.children: tuple[()] | tuple[BSP, BSP] = ()
72
74
 
73
75
  @property
74
- @deprecate("This attribute has been renamed to `width`.", FutureWarning)
76
+ @deprecated("This attribute has been renamed to `width`.", category=FutureWarning)
75
77
  def w(self) -> int: # noqa: D102
76
78
  return self.width
77
79
 
@@ -80,7 +82,7 @@ class BSP:
80
82
  self.width = value
81
83
 
82
84
  @property
83
- @deprecate("This attribute has been renamed to `height`.", FutureWarning)
85
+ @deprecated("This attribute has been renamed to `height`.", category=FutureWarning)
84
86
  def h(self) -> int: # noqa: D102
85
87
  return self.height
86
88
 
@@ -176,7 +178,7 @@ class BSP:
176
178
  )
177
179
  self._unpack_bsp_tree(cdata)
178
180
 
179
- @deprecate("Use pre_order method instead of walk.")
181
+ @deprecated("Use pre_order method instead of walk.")
180
182
  def walk(self) -> Iterator[BSP]:
181
183
  """Iterate over this BSP's hierarchy in pre order.
182
184
 
@@ -1,4 +1,5 @@
1
1
  """This module handles loading of the libtcod cffi API."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
5
  import logging
@@ -58,7 +59,7 @@ if sys.platform == "win32":
58
59
 
59
60
 
60
61
  verify_dependencies()
61
- from tcod._libtcod import ffi, lib # noqa
62
+ from tcod._libtcod import ffi, lib # noqa: E402
62
63
 
63
64
  __sdl_version__ = get_sdl_version()
64
65
 
@@ -75,4 +76,4 @@ def _libtcod_log_watcher(message: Any, userdata: None) -> None: # noqa: ANN401
75
76
  lib.TCOD_set_log_callback(lib._libtcod_log_watcher, ffi.NULL)
76
77
  lib.TCOD_set_log_level(0)
77
78
 
78
- __all__ = ["ffi", "lib", "__sdl_version__"]
79
+ __all__ = ["__sdl_version__", "ffi", "lib"]
@@ -1,4 +1,5 @@
1
1
  """Old libtcod color management."""
2
+
2
3
  from __future__ import annotations
3
4
 
4
5
  import warnings
@@ -30,7 +31,7 @@ class Color(List[int]):
30
31
  return int(self[0])
31
32
 
32
33
  @r.setter
33
- @deprecate("Setting color attributes has been deprecated.", FutureWarning)
34
+ @deprecate("Setting color attributes has been deprecated.", category=FutureWarning)
34
35
  def r(self, value: int) -> None:
35
36
  self[0] = value & 0xFF
36
37
 
@@ -44,7 +45,7 @@ class Color(List[int]):
44
45
  return int(self[1])
45
46
 
46
47
  @g.setter
47
- @deprecate("Setting color attributes has been deprecated.", FutureWarning)
48
+ @deprecate("Setting color attributes has been deprecated.", category=FutureWarning)
48
49
  def g(self, value: int) -> None:
49
50
  self[1] = value & 0xFF
50
51
 
@@ -58,7 +59,7 @@ class Color(List[int]):
58
59
  return int(self[2])
59
60
 
60
61
  @b.setter
61
- @deprecate("Setting color attributes has been deprecated.", FutureWarning)
62
+ @deprecate("Setting color attributes has been deprecated.", category=FutureWarning)
62
63
  def b(self, value: int) -> None:
63
64
  self[2] = value & 0xFF
64
65
 
@@ -81,7 +82,7 @@ class Color(List[int]):
81
82
  return super().__getitem__("rgb".index(index))
82
83
  return super().__getitem__(index)
83
84
 
84
- @deprecate("This class will not be mutable in the future.", FutureWarning)
85
+ @deprecate("This class will not be mutable in the future.", category=FutureWarning)
85
86
  def __setitem__(self, index: Any, value: Any) -> None: # noqa: ANN401, D105
86
87
  if isinstance(index, str):
87
88
  super().__setitem__("rgb".index(index), value)
@@ -98,7 +99,7 @@ class Color(List[int]):
98
99
  except TypeError:
99
100
  return False
100
101
 
101
- @deprecate("Use NumPy instead for color math operations.", FutureWarning)
102
+ @deprecate("Use NumPy instead for color math operations.", category=FutureWarning)
102
103
  def __add__(self, other: object) -> Color: # type: ignore[override]
103
104
  """Add two colors together.
104
105
 
@@ -107,7 +108,7 @@ class Color(List[int]):
107
108
  """
108
109
  return Color._new_from_cdata(lib.TCOD_color_add(self, other))
109
110
 
110
- @deprecate("Use NumPy instead for color math operations.", FutureWarning)
111
+ @deprecate("Use NumPy instead for color math operations.", category=FutureWarning)
111
112
  def __sub__(self, other: object) -> Color:
112
113
  """Subtract one color from another.
113
114
 
@@ -116,7 +117,7 @@ class Color(List[int]):
116
117
  """
117
118
  return Color._new_from_cdata(lib.TCOD_color_subtract(self, other))
118
119
 
119
- @deprecate("Use NumPy instead for color math operations.", FutureWarning)
120
+ @deprecate("Use NumPy instead for color math operations.", category=FutureWarning)
120
121
  def __mul__(self, other: object) -> Color:
121
122
  """Multiply with a scaler or another color.
122
123