amueller / word_cloud

A little word cloud generator in Python
https://amueller.github.io/word_cloud
MIT License
10.1k stars 2.31k forks source link

Fix: #730 and #733 - Unable to build/install under Python 3.12 #738

Closed T1t4m1un closed 10 months ago

T1t4m1un commented 11 months ago

FIX #733 : Replaced deprecated names based on Python 3.12's changelog (configparser.SafeConfigParser -> configparser.ConfigParser, configparser.readfp() -> configparser.read_file()). These two both have been introduced into lib before python 3,5, barely not introduce the risk of front-compatibility.

FIX #730 : After I fix the problem introduced by deprecated module and method, new problem that GCC cannot compile the cython C code. I found the pre-generated code is under a fairly old version of cython, which generation raising many warnings while compiling.

  1. Added Cython as a dependency.
  2. Changed the generation of the Cython C code for release to occur and compile during setup.py execution.
nickineering commented 11 months ago

I would love to see this merged!