Repository: piskvorky/gensim (language: python)

Issue:
Support for python3.12
Hello there, is it possible that `gensim` can support python3.12?


Discussion / hints:
Yes, why not. Can you open a PR @SysuJayce?
Are there any more fixes needed. I'm looking for first contribution.
Thank you!

Fix patch:
diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml
index a3e7a85c6c..ce43bb3bf5 100644
--- a/.github/workflows/build-wheels.yml
+++ b/.github/workflows/build-wheels.yml
@@ -65,17 +65,20 @@ jobs:
           - {python: '3.9', os: macos-11}
           - {python: '3.10', os: macos-11}
           - {python: '3.11', os: macos-11}
+          - {python: '3.12', os: macos-11}
 
           - {python: '3.8', os: ubuntu-20.04}
           - {python: '3.9', os: ubuntu-20.04}
           - {python: '3.10', os: ubuntu-20.04}
           - {python: '3.11', os: ubuntu-20.04}
+          - {python: '3.12', os: ubuntu-20.04}
 
           - {python: '3.8', os: windows-2019}
           - {python: '3.9', os: windows-2019}
 
           - {python: '3.10', os: windows-2019}
           - {python: '3.11', os: windows-2019}
+          - {python: '3.12', os: windows-2019}
 
     runs-on: ${{ matrix.os }}
     steps:
diff --git a/setup.py b/setup.py
index 4b51852b92..350869a236 100644
--- a/setup.py
+++ b/setup.py
@@ -372,6 +372,7 @@ def run(self):
         'Programming Language :: Python :: 3.9',
         'Programming Language :: Python :: 3.10',
         'Programming Language :: Python :: 3.11',
+        'Programming Language :: Python :: 3.12',
         'Programming Language :: Python :: 3 :: Only',
         'Topic :: Scientific/Engineering :: Artificial Intelligence',
         'Topic :: Scientific/Engineering :: Information Analysis',


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 09f9ca988e..64505894b7 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -67,11 +67,13 @@ jobs:
           - {python: '3.9', os: ubuntu-20.04}
           - {python: '3.10', os: ubuntu-20.04}
           - {python: '3.11', os: ubuntu-20.04}
+          - {python: '3.12', os: ubuntu-20.04}
 
           - {python: '3.8', os: windows-2019}
           - {python: '3.9', os: windows-2019}
           - {python: '3.10', os: windows-2019}
           - {python: '3.11', os: windows-2019}
+          - {python: '3.12', os: windows-2019}
 
     #
     # Don't run this job unless the linters have succeeded.