NoUnique / pymecab-ko

🐍 pymecab-ko. you can find original version here: https://bitbucket.org/eunjeon/mecab-ko, https://github.com/SamuraiT/mecab-python3
https://pypi.python.org/pypi/mecab-ko
Other
14 stars 3 forks source link

Add support for Python 3.12 #9

Open jkawamoto opened 3 months ago

jkawamoto commented 3 months ago

This PR updates CI scripts so that they build wheels for Python 3.12. Also, this PR removes support for Python 3.6 and 3.7 because they were deprecated.

Fixes #8.

Borda commented 3 weeks ago

@jkawamoto trying to install from source and hitting:

Building wheels for collected packages: mecab-ko
  Building wheel for mecab-ko (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      /Users/jirka/Workspace/torchmetrics/.venv/lib/python3.10/site-packages/setuptools/__init__.py:80: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!

              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************

      !!
        dist.fetch_build_eggs(dist.setup_requires)
      WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
      Traceback (most recent call last):
        File "/private/var/folders/vl/1yxwpkwn40j_ycd2zpxhfwm40000gn/T/pip-req-build-e6pi810g/.eggs/setuptools_scm-8.1.0-py3.10.egg/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
          section = defn.get("tool", {})[tool_name]
      KeyError: 'setuptools_scm'
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.macosx-14-arm64-cpython-310
      creating build/lib.macosx-14-arm64-cpython-310/mecab_ko
      copying src/mecab_ko/__init__.py -> build/lib.macosx-14-arm64-cpython-310/mecab_ko
      copying src/mecab_ko/cli.py -> build/lib.macosx-14-arm64-cpython-310/mecab_ko
      running build_ext
      error: [Errno 2] No such file or directory: 'mecab-config'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for mecab-ko
  Running setup.py clean for mecab-ko
Failed to build mecab-ko
ERROR: Could not build wheels for mecab-ko, which is required to install pyproject.toml-based projects
jkawamoto commented 3 weeks ago

@Borda It looks like you are using an Apple Silicon Mac, and unfortunately, it does not support Apple Silicon yet #2.