tcod 19.0.0__tar.gz → 19.0.2__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 (215) hide show
  1. {tcod-19.0.0 → tcod-19.0.2}/CHANGELOG.md +9 -1
  2. {tcod-19.0.0 → tcod-19.0.2}/PKG-INFO +1 -1
  3. {tcod-19.0.0 → tcod-19.0.2}/build_libtcod.py +8 -3
  4. {tcod-19.0.0 → tcod-19.0.2}/build_sdl.py +46 -17
  5. {tcod-19.0.0 → tcod-19.0.2}/pyproject.toml +7 -0
  6. {tcod-19.0.0 → tcod-19.0.2}/setup.py +0 -28
  7. {tcod-19.0.0 → tcod-19.0.2}/tcod/console.py +18 -0
  8. {tcod-19.0.0 → tcod-19.0.2}/tcod/version.py +2 -2
  9. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/PKG-INFO +1 -1
  10. {tcod-19.0.0 → tcod-19.0.2}/CONTRIBUTING.md +0 -0
  11. {tcod-19.0.0 → tcod-19.0.2}/LICENSE.txt +0 -0
  12. {tcod-19.0.0 → tcod-19.0.2}/MANIFEST.in +0 -0
  13. {tcod-19.0.0 → tcod-19.0.2}/README.rst +0 -0
  14. {tcod-19.0.0 → tcod-19.0.2}/libtcod/CHANGELOG.md +0 -0
  15. {tcod-19.0.0 → tcod-19.0.2}/libtcod/CMakeLists.txt +0 -0
  16. {tcod-19.0.0 → tcod-19.0.2}/libtcod/CONTRIBUTING.md +0 -0
  17. {tcod-19.0.0 → tcod-19.0.2}/libtcod/LIBTCOD-CREDITS.txt +0 -0
  18. {tcod-19.0.0 → tcod-19.0.2}/libtcod/LICENSE.txt +0 -0
  19. {tcod-19.0.0 → tcod-19.0.2}/libtcod/README.md +0 -0
  20. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/bresenham.h +0 -0
  21. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/bresenham_c.c +0 -0
  22. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/bsp.h +0 -0
  23. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/bsp_c.c +0 -0
  24. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/color.c +0 -0
  25. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/color.h +0 -0
  26. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/config.h +0 -0
  27. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console.c +0 -0
  28. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console.h +0 -0
  29. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_drawing.c +0 -0
  30. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_drawing.h +0 -0
  31. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_etc.c +0 -0
  32. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_etc.h +0 -0
  33. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_init.c +0 -0
  34. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_init.h +0 -0
  35. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_printing.c +0 -0
  36. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_printing.h +0 -0
  37. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_rexpaint.c +0 -0
  38. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_rexpaint.h +0 -0
  39. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/console_types.h +0 -0
  40. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context.c +0 -0
  41. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context.h +0 -0
  42. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context_init.c +0 -0
  43. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context_init.h +0 -0
  44. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context_viewport.c +0 -0
  45. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/context_viewport.h +0 -0
  46. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/error.c +0 -0
  47. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/error.h +0 -0
  48. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov.h +0 -0
  49. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_c.c +0 -0
  50. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_circular_raycasting.c +0 -0
  51. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_diamond_raycasting.c +0 -0
  52. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_permissive2.c +0 -0
  53. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_recursive_shadowcasting.c +0 -0
  54. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_restrictive.c +0 -0
  55. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_symmetric_shadowcast.c +0 -0
  56. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/fov_types.h +0 -0
  57. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/globals.c +0 -0
  58. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/globals.h +0 -0
  59. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/heapq.c +0 -0
  60. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/heapq.h +0 -0
  61. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/heightmap.h +0 -0
  62. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/heightmap_c.c +0 -0
  63. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/image.h +0 -0
  64. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/image_c.c +0 -0
  65. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/lex.h +0 -0
  66. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/lex_c.c +0 -0
  67. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/libtcod.h +0 -0
  68. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/libtcod_int.h +0 -0
  69. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/list.h +0 -0
  70. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/list_c.c +0 -0
  71. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/logging.c +0 -0
  72. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/logging.h +0 -0
  73. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/mersenne.h +0 -0
  74. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/mersenne_c.c +0 -0
  75. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/mersenne_types.h +0 -0
  76. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/mouse.h +0 -0
  77. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/mouse_types.h +0 -0
  78. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/namegen.h +0 -0
  79. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/namegen_c.c +0 -0
  80. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/noise.h +0 -0
  81. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/noise_c.c +0 -0
  82. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/noise_defaults.h +0 -0
  83. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/parser.h +0 -0
  84. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/parser_c.c +0 -0
  85. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/path.h +0 -0
  86. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/path_c.c +0 -0
  87. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/pathfinder.c +0 -0
  88. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/pathfinder.h +0 -0
  89. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/pathfinder_frontier.c +0 -0
  90. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/pathfinder_frontier.h +0 -0
  91. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/portability.h +0 -0
  92. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/random.c +0 -0
  93. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/random.h +0 -0
  94. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/renderer_sdl2.c +0 -0
  95. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/renderer_sdl2.h +0 -0
  96. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/renderer_xterm.c +0 -0
  97. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/renderer_xterm.h +0 -0
  98. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sdl2/console_grid.glslf +0 -0
  99. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sdl2/console_grid.glslv +0 -0
  100. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sdl2/event.h +0 -0
  101. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sys.h +0 -0
  102. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sys_c.c +0 -0
  103. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sys_sdl_c.c +0 -0
  104. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sys_sdl_img_bmp.c +0 -0
  105. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/sys_sdl_img_png.c +0 -0
  106. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset.c +0 -0
  107. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset.h +0 -0
  108. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_bdf.c +0 -0
  109. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_bdf.h +0 -0
  110. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_fallback.c +0 -0
  111. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_fallback.h +0 -0
  112. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_render.c +0 -0
  113. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_render.h +0 -0
  114. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_truetype.c +0 -0
  115. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tileset_truetype.h +0 -0
  116. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/timer.h +0 -0
  117. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tree.h +0 -0
  118. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/tree_c.c +0 -0
  119. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/txtfield.h +0 -0
  120. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/txtfield_c.c +0 -0
  121. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/utility.h +0 -0
  122. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/version.h +0 -0
  123. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/wrappers.c +0 -0
  124. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/wrappers.h +0 -0
  125. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/zip.h +0 -0
  126. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod/zip_c.c +0 -0
  127. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod.h +0 -0
  128. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/libtcod_c.c +0 -0
  129. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/khrplatform.h +0 -0
  130. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/lodepng.c +0 -0
  131. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/lodepng.h +0 -0
  132. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/stb.c +0 -0
  133. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/stb_ds.h +0 -0
  134. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/stb_truetype.h +0 -0
  135. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/utf8proc/utf8proc.c +0 -0
  136. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/utf8proc/utf8proc.h +0 -0
  137. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/utf8proc/utf8proc_data.c +0 -0
  138. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/adler32.c +0 -0
  139. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/compress.c +0 -0
  140. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/crc32.c +0 -0
  141. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/crc32.h +0 -0
  142. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/deflate.c +0 -0
  143. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/deflate.h +0 -0
  144. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/gzclose.c +0 -0
  145. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/gzguts.h +0 -0
  146. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/gzlib.c +0 -0
  147. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/gzread.c +0 -0
  148. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/gzwrite.c +0 -0
  149. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/infback.c +0 -0
  150. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inffast.c +0 -0
  151. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inffast.h +0 -0
  152. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inffixed.h +0 -0
  153. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inflate.c +0 -0
  154. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inflate.h +0 -0
  155. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inftrees.c +0 -0
  156. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/inftrees.h +0 -0
  157. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/trees.c +0 -0
  158. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/trees.h +0 -0
  159. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/uncompr.c +0 -0
  160. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/zconf.h +0 -0
  161. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/zlib.h +0 -0
  162. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/zutil.c +0 -0
  163. {tcod-19.0.0 → tcod-19.0.2}/libtcod/src/vendor/zlib/zutil.h +0 -0
  164. {tcod-19.0.0 → tcod-19.0.2}/libtcodpy.py +0 -0
  165. {tcod-19.0.0 → tcod-19.0.2}/requirements.txt +0 -0
  166. {tcod-19.0.0 → tcod-19.0.2}/setup.cfg +0 -0
  167. {tcod-19.0.0 → tcod-19.0.2}/tcod/__init__.py +0 -0
  168. {tcod-19.0.0 → tcod-19.0.2}/tcod/__pyinstaller/__init__.py +0 -0
  169. {tcod-19.0.0 → tcod-19.0.2}/tcod/__pyinstaller/hook-tcod.py +0 -0
  170. {tcod-19.0.0 → tcod-19.0.2}/tcod/_internal.py +0 -0
  171. {tcod-19.0.0 → tcod-19.0.2}/tcod/_libtcod.pyi +0 -0
  172. {tcod-19.0.0 → tcod-19.0.2}/tcod/bsp.py +0 -0
  173. {tcod-19.0.0 → tcod-19.0.2}/tcod/cdef.h +0 -0
  174. {tcod-19.0.0 → tcod-19.0.2}/tcod/cffi.h +0 -0
  175. {tcod-19.0.0 → tcod-19.0.2}/tcod/cffi.py +0 -0
  176. {tcod-19.0.0 → tcod-19.0.2}/tcod/color.py +0 -0
  177. {tcod-19.0.0 → tcod-19.0.2}/tcod/constants.py +0 -0
  178. {tcod-19.0.0 → tcod-19.0.2}/tcod/context.py +0 -0
  179. {tcod-19.0.0 → tcod-19.0.2}/tcod/event.py +0 -0
  180. {tcod-19.0.0 → tcod-19.0.2}/tcod/event_constants.py +0 -0
  181. {tcod-19.0.0 → tcod-19.0.2}/tcod/image.py +0 -0
  182. {tcod-19.0.0 → tcod-19.0.2}/tcod/libtcodpy.py +0 -0
  183. {tcod-19.0.0 → tcod-19.0.2}/tcod/los.py +0 -0
  184. {tcod-19.0.0 → tcod-19.0.2}/tcod/map.py +0 -0
  185. {tcod-19.0.0 → tcod-19.0.2}/tcod/noise.c +0 -0
  186. {tcod-19.0.0 → tcod-19.0.2}/tcod/noise.h +0 -0
  187. {tcod-19.0.0 → tcod-19.0.2}/tcod/noise.py +0 -0
  188. {tcod-19.0.0 → tcod-19.0.2}/tcod/path.c +0 -0
  189. {tcod-19.0.0 → tcod-19.0.2}/tcod/path.h +0 -0
  190. {tcod-19.0.0 → tcod-19.0.2}/tcod/path.py +0 -0
  191. {tcod-19.0.0 → tcod-19.0.2}/tcod/py.typed +0 -0
  192. {tcod-19.0.0 → tcod-19.0.2}/tcod/random.h +0 -0
  193. {tcod-19.0.0 → tcod-19.0.2}/tcod/random.py +0 -0
  194. {tcod-19.0.0 → tcod-19.0.2}/tcod/render.py +0 -0
  195. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/__init__.py +0 -0
  196. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/_internal.py +0 -0
  197. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/audio.py +0 -0
  198. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/constants.py +0 -0
  199. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/joystick.py +0 -0
  200. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/mouse.py +0 -0
  201. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/render.py +0 -0
  202. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/sys.py +0 -0
  203. {tcod-19.0.0 → tcod-19.0.2}/tcod/sdl/video.py +0 -0
  204. {tcod-19.0.0 → tcod-19.0.2}/tcod/tcod.c +0 -0
  205. {tcod-19.0.0 → tcod-19.0.2}/tcod/tcod.h +0 -0
  206. {tcod-19.0.0 → tcod-19.0.2}/tcod/tcod.py +0 -0
  207. {tcod-19.0.0 → tcod-19.0.2}/tcod/tdl.c +0 -0
  208. {tcod-19.0.0 → tcod-19.0.2}/tcod/tdl.h +0 -0
  209. {tcod-19.0.0 → tcod-19.0.2}/tcod/tileset.py +0 -0
  210. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/SOURCES.txt +0 -0
  211. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/dependency_links.txt +0 -0
  212. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/entry_points.txt +0 -0
  213. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/requires.txt +0 -0
  214. {tcod-19.0.0 → tcod-19.0.2}/tcod.egg-info/top_level.txt +0 -0
  215. {tcod-19.0.0 → tcod-19.0.2}/tox.ini +0 -0
@@ -6,6 +6,14 @@ This project adheres to [Semantic Versioning](https://semver.org/) since version
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [19.0.2] - 2025-07-11
10
+
11
+ ## [19.0.1] - 2025-07-11
12
+
13
+ ### Fixed
14
+
15
+ - `Console.print` methods using `string` keyword were marked as invalid instead of deprecated.
16
+
9
17
  ## [19.0.0] - 2025-06-13
10
18
 
11
19
  Finished port to SDL3, this has caused several breaking changes from SDL such as lowercase key constants now being uppercase and mouse events returning `float` instead of `int`.
@@ -20,7 +28,6 @@ Be sure to run [Mypy](https://mypy.readthedocs.io/en/stable/getting_started.html
20
28
  - `tcod.event.KeySym` single letter symbols are now all uppercase.
21
29
  - Relative mouse mode is set via `tcod.sdl.video.Window.relative_mouse_mode` instead of `tcod.sdl.mouse.set_relative_mode`.
22
30
  - `tcod.sdl.render.new_renderer`: Removed `software` and `target_textures` parameters, `vsync` takes `int`, `driver` takes `str` instead of `int`.
23
- - SDL renderer logical
24
31
  - `tcod.sdl.render.Renderer`: `integer_scaling` and `logical_size` are now set with `set_logical_presentation` method.
25
32
  - `tcod.sdl.render.Renderer.geometry` now takes float values for `color` instead of 8-bit integers.
26
33
  - `tcod.event.Point` and other mouse/tile coordinate types now use `float` instead of `int`.
@@ -33,6 +40,7 @@ Be sure to run [Mypy](https://mypy.readthedocs.io/en/stable/getting_started.html
33
40
  - Sound queueing methods were moved from `AudioDevice` to a new `AudioStream` class.
34
41
  - `BasicMixer` may require manually specifying `frequency` and `channels` to replicate old behavior.
35
42
  - `get_devices` and `get_capture_devices` now return `dict[str, AudioDevice]`.
43
+ - `TextInput` events are no longer enabled by default.
36
44
 
37
45
  ### Deprecated
38
46
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.0.0
3
+ Version: 19.0.2
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
@@ -162,7 +162,12 @@ sources: list[str] = []
162
162
 
163
163
  libraries: list[str] = [*build_sdl.libraries]
164
164
  library_dirs: list[str] = [*build_sdl.library_dirs]
165
- define_macros: list[tuple[str, Any]] = [("Py_LIMITED_API", Py_LIMITED_API)]
165
+ define_macros: list[tuple[str, Any]] = []
166
+
167
+ if "PYODIDE" not in os.environ:
168
+ # Unable to apply Py_LIMITED_API to Pyodide in cffi<=1.17.1
169
+ # https://github.com/python-cffi/cffi/issues/179
170
+ define_macros.append(("Py_LIMITED_API", Py_LIMITED_API))
166
171
 
167
172
  sources += walk_sources("tcod/")
168
173
  sources += walk_sources("libtcod/src/libtcod/")
@@ -180,8 +185,8 @@ if sys.platform in ["win32", "darwin"]:
180
185
  include_dirs.append("libtcod/src/zlib/")
181
186
 
182
187
 
183
- if sys.platform == "darwin":
184
- # Fix "implicit declaration of function 'close'" in zlib.
188
+ if sys.platform != "win32":
189
+ # Fix implicit declaration of multiple functions in zlib.
185
190
  define_macros.append(("HAVE_UNISTD_H", 1))
186
191
 
187
192
 
@@ -20,7 +20,7 @@ import pcpp # type: ignore[import-untyped]
20
20
  import requests
21
21
 
22
22
  # This script calls a lot of programs.
23
- # ruff: noqa: S603, S607, T201
23
+ # ruff: noqa: S603, S607
24
24
 
25
25
  # Ignore f-strings in logging, these will eventually be replaced with t-strings.
26
26
  # ruff: noqa: G004
@@ -134,12 +134,19 @@ def check_sdl_version() -> None:
134
134
  sdl_version_str = subprocess.check_output(
135
135
  ["pkg-config", "sdl3", "--modversion"], universal_newlines=True
136
136
  ).strip()
137
- except FileNotFoundError as exc:
138
- msg = (
139
- "libsdl3-dev or equivalent must be installed on your system and must be at least version"
140
- f" {needed_version}.\nsdl3-config must be on PATH."
141
- )
142
- raise RuntimeError(msg) from exc
137
+ except FileNotFoundError:
138
+ try:
139
+ sdl_version_str = subprocess.check_output(["sdl3-config", "--version"], universal_newlines=True).strip()
140
+ except FileNotFoundError as exc:
141
+ msg = (
142
+ f"libsdl3-dev or equivalent must be installed on your system and must be at least version {needed_version}."
143
+ "\nsdl3-config must be on PATH."
144
+ )
145
+ raise RuntimeError(msg) from exc
146
+ except subprocess.CalledProcessError as exc:
147
+ if sys.version_info >= (3, 11):
148
+ exc.add_note(f"Note: {os.environ.get('PKG_CONFIG_PATH')=}")
149
+ raise
143
150
  logger.info(f"Found SDL {sdl_version_str}.")
144
151
  sdl_version = tuple(int(s) for s in sdl_version_str.split("."))
145
152
  if sdl_version < SDL_MIN_VERSION:
@@ -205,6 +212,12 @@ class SDLParser(pcpp.Preprocessor): # type: ignore[misc]
205
212
  buffer.write(f"#define {name} ...\n")
206
213
  return buffer.getvalue()
207
214
 
215
+ def on_file_open(self, is_system_include: bool, includepath: str) -> Any: # noqa: ANN401, FBT001
216
+ """Ignore includes other than SDL headers."""
217
+ if not Path(includepath).parent.name == "SDL3":
218
+ raise FileNotFoundError
219
+ return super().on_file_open(is_system_include, includepath)
220
+
208
221
  def on_include_not_found(self, is_malformed: bool, is_system_include: bool, curdir: str, includepath: str) -> None: # noqa: ARG002, FBT001
209
222
  """Remove bad includes such as stddef.h and stdarg.h."""
210
223
  assert "SDL3/SDL" not in includepath, (includepath, curdir)
@@ -249,23 +262,35 @@ class SDLParser(pcpp.Preprocessor): # type: ignore[misc]
249
262
  return super().on_directive_handle(directive, tokens, if_passthru, preceding_tokens)
250
263
 
251
264
 
265
+ def get_emscripten_include_dir() -> Path:
266
+ """Find and return the Emscripten include dir."""
267
+ # None of the EMSDK environment variables exist! Search PATH for Emscripten as a workaround
268
+ for path in os.environ["PATH"].split(os.pathsep)[::-1]:
269
+ if Path(path).match("upstream/emscripten"):
270
+ return Path(path, "system/include").resolve(strict=True)
271
+ raise AssertionError(os.environ["PATH"])
272
+
273
+
252
274
  check_sdl_version()
253
275
 
254
- if sys.platform == "win32" or sys.platform == "darwin":
276
+ SDL_PARSE_PATH: Path | None = None
277
+ SDL_BUNDLE_PATH: Path | None = None
278
+ if (sys.platform == "win32" or sys.platform == "darwin") and "PYODIDE" not in os.environ:
255
279
  SDL_PARSE_PATH = unpack_sdl(SDL_PARSE_VERSION)
256
280
  SDL_BUNDLE_PATH = unpack_sdl(SDL_BUNDLE_VERSION)
257
281
 
258
282
  SDL_INCLUDE: Path
259
- if sys.platform == "win32":
283
+ if sys.platform == "win32" and SDL_PARSE_PATH is not None:
260
284
  SDL_INCLUDE = SDL_PARSE_PATH / "include"
261
- elif sys.platform == "darwin":
285
+ elif sys.platform == "darwin" and SDL_PARSE_PATH is not None:
262
286
  SDL_INCLUDE = SDL_PARSE_PATH / "Versions/A/Headers"
263
287
  else: # Unix
264
288
  matches = re.findall(
265
289
  r"-I(\S+)",
266
290
  subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True),
267
291
  )
268
- assert matches
292
+ if not matches:
293
+ matches = ["/usr/include"]
269
294
 
270
295
  for match in matches:
271
296
  if Path(match, "SDL3/SDL.h").is_file():
@@ -275,6 +300,7 @@ else: # Unix
275
300
  raise AssertionError(matches)
276
301
  assert SDL_INCLUDE
277
302
 
303
+ logger.info(f"{SDL_INCLUDE=}")
278
304
 
279
305
  EXTRA_CDEF = """
280
306
  #define SDLK_SCANCODE_MASK ...
@@ -350,14 +376,15 @@ extra_link_args: list[str] = []
350
376
  libraries: list[str] = []
351
377
  library_dirs: list[str] = []
352
378
 
353
-
354
- if sys.platform == "darwin":
379
+ if "PYODIDE" in os.environ:
380
+ pass
381
+ elif sys.platform == "darwin":
355
382
  extra_link_args += ["-framework", "SDL3"]
356
383
  else:
357
384
  libraries += ["SDL3"]
358
385
 
359
386
  # Bundle the Windows SDL DLL.
360
- if sys.platform == "win32":
387
+ if sys.platform == "win32" and SDL_BUNDLE_PATH is not None:
361
388
  include_dirs.append(str(SDL_INCLUDE))
362
389
  ARCH_MAPPING = {"32bit": "x86", "64bit": "x64"}
363
390
  SDL_LIB_DIR = Path(SDL_BUNDLE_PATH, "lib/", ARCH_MAPPING[BIT_SIZE])
@@ -371,14 +398,16 @@ if sys.platform == "win32":
371
398
 
372
399
  # Link to the SDL framework on MacOS.
373
400
  # Delocate will bundle the binaries in a later step.
374
- if sys.platform == "darwin":
401
+ if sys.platform == "darwin" and SDL_BUNDLE_PATH is not None:
375
402
  include_dirs.append(SDL_INCLUDE)
376
403
  extra_link_args += [f"-F{SDL_BUNDLE_PATH}/.."]
377
404
  extra_link_args += ["-rpath", f"{SDL_BUNDLE_PATH}/.."]
378
405
  extra_link_args += ["-rpath", "/usr/local/opt/llvm/lib/"]
379
406
 
380
- # Use sdl-config to link to SDL on Linux.
381
- if sys.platform not in ["win32", "darwin"]:
407
+ if "PYODIDE" in os.environ:
408
+ extra_compile_args += ["--use-port=sdl3"]
409
+ elif sys.platform not in ["win32", "darwin"]:
410
+ # Use sdl-config to link to SDL on Linux.
382
411
  extra_compile_args += (
383
412
  subprocess.check_output(["pkg-config", "sdl3", "--cflags"], universal_newlines=True).strip().split()
384
413
  )
@@ -99,6 +99,13 @@ filterwarnings = [
99
99
  "ignore:'import tcod as libtcodpy' is preferred.",
100
100
  ]
101
101
 
102
+ [tool.cibuildwheel] # https://cibuildwheel.pypa.io/en/stable/options/
103
+ enable = ["pypy", "pyodide-prerelease"]
104
+
105
+ [tool.cibuildwheel.pyodide]
106
+ dependency-versions = "latest" # Until pyodide-version is stable on cibuildwheel
107
+ pyodide-version = "0.28.0a3"
108
+
102
109
  [tool.mypy]
103
110
  files = ["."]
104
111
  python_version = "3.10"
@@ -4,7 +4,6 @@
4
4
  from __future__ import annotations
5
5
 
6
6
  import platform
7
- import subprocess
8
7
  import sys
9
8
  from pathlib import Path
10
9
 
@@ -36,38 +35,11 @@ def get_package_data() -> list[str]:
36
35
  return files
37
36
 
38
37
 
39
- def check_sdl_version() -> None:
40
- """Check the local SDL version on Linux distributions."""
41
- if not sys.platform.startswith("linux"):
42
- return
43
- needed_version = "{}.{}.{}".format(*SDL_VERSION_NEEDED)
44
- try:
45
- sdl_version_str = subprocess.check_output(
46
- ["pkg-config", "sdl3", "--modversion"], # noqa: S607
47
- universal_newlines=True,
48
- ).strip()
49
- except FileNotFoundError:
50
- try:
51
- sdl_version_str = subprocess.check_output(["sdl3-config", "--version"], universal_newlines=True).strip() # noqa: S603, S607
52
- except FileNotFoundError as exc:
53
- msg = (
54
- f"libsdl3-dev or equivalent must be installed on your system and must be at least version {needed_version}."
55
- "\nsdl3-config must be on PATH."
56
- )
57
- raise RuntimeError(msg) from exc
58
- print(f"Found SDL {sdl_version_str}.")
59
- sdl_version = tuple(int(s) for s in sdl_version_str.split("."))
60
- if sdl_version < SDL_VERSION_NEEDED:
61
- msg = f"SDL version must be at least {needed_version}, (found {sdl_version_str})"
62
- raise RuntimeError(msg)
63
-
64
-
65
38
  if not (SETUP_DIR / "libtcod/src").exists():
66
39
  print("Libtcod submodule is uninitialized.")
67
40
  print("Did you forget to run 'git submodule update --init'?")
68
41
  sys.exit(1)
69
42
 
70
- check_sdl_version()
71
43
 
72
44
  setup(
73
45
  py_modules=["libtcodpy"],
@@ -1038,6 +1038,24 @@ Consider one of the following:
1038
1038
  string: str = "",
1039
1039
  ) -> int: ...
1040
1040
 
1041
+ @overload
1042
+ @deprecated(
1043
+ "Replace text, fg, bg, bg_blend, and alignment with keyword arguments."
1044
+ "\n'string' keyword should be renamed to `text`"
1045
+ )
1046
+ def print(
1047
+ self,
1048
+ x: int,
1049
+ y: int,
1050
+ text: str = "",
1051
+ fg: tuple[int, int, int] | None = None,
1052
+ bg: tuple[int, int, int] | None = None,
1053
+ bg_blend: int = tcod.constants.BKGND_SET,
1054
+ alignment: int = tcod.constants.LEFT,
1055
+ *,
1056
+ string: str,
1057
+ ) -> int: ...
1058
+
1041
1059
  def print( # noqa: PLR0913
1042
1060
  self,
1043
1061
  x: int,
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '19.0.0'
21
- __version_tuple__ = version_tuple = (19, 0, 0)
20
+ __version__ = version = '19.0.2'
21
+ __version_tuple__ = version_tuple = (19, 0, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tcod
3
- Version: 19.0.0
3
+ Version: 19.0.2
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
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
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
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
File without changes