cChardet icon indicating copy to clipboard operation
cChardet copied to clipboard

Support Python 3.12

Open PyYoshi opened this issue 1 year ago • 6 comments

少し時間ができたので調査がてら必要なタスクを洗い出した

  • [x] 開発用依存関係のアップデート
  • [x] distutils 廃止に伴う対応
  • [x] CPythonサポート系
    • [x] Drop 3.6, 3.7
    • [x] Add 3.10, 3.11, 3.12
  • [x] pytest への移行
    • 以下PRによってnoseは廃止できたので、 テスト実行などの調整。 Thanks @mcepl
    • https://github.com/PyYoshi/cChardet/pull/87
  • [x] オリジナルのuchardetのコードベースに追従
  • [ ] cmake を利用して uchardet をビルドするように
  • [x] GitHub Actionsのワークフローの改善 (cibuildwheel関連)
    • [x] aarch64 バイナリのサポート
  • [ ] 以下PRでの議論が起きているようなので、 それの確認と必要な対応の実施
    • https://github.com/PyYoshi/cChardet/pull/78

作業ブランチ: https://github.com/PyYoshi/cChardet/tree/support-py312

あと、 メンテナー募集について考えたほうが良さそう Pythonに関するプロダクトに関わることがほとんどなくなってしまった影響で、 最近のPythonエコシステムの技術情報に触れる機会がまったくない状況になってしまった (モチベーションがほとんどなくなってしまった) cChardetがPythonコミュニティにどれだけ影響を与えているのがわかっていないが、 ありがたいことにIssueを立ててくれる人がいるので、 何かしらの形で貢献したい

PyYoshi avatar May 30 '24 10:05 PyYoshi

@PyYoshi Hi,

this probably hasn't to do anything with this issue (can't even read 80% of it lol), but didn't know where else to ask... I wrote you a message on keybase and idk if you got it... Don't want to stress you, just wanna make sure you'll read it, if you have the time to do so.

Best Regards Lenn

DevLenn avatar Jun 10 '24 20:06 DevLenn

didn't work in Python 3.13 either

jeasoft avatar Nov 28 '24 22:11 jeasoft

Hey, just wanted to do a heads up here to know if there's any expecting release date? Thank you!

oscaroteromar avatar Dec 19 '24 10:12 oscaroteromar

cchardet==2.2.0a2 it's work on container python:3.13-slim-bookworm

staciax avatar Jan 06 '25 04:01 staciax

MacOS 15.2 Python 3.13

import platform
import sys

import cchardet as chardet
import distro
from cchardet import version

with open(r'wikipediaJa_One_Thousand_and_One_Nights_SJIS.txt', 'rb') as f:
    msg = f.read()
    result = chardet.detect(msg)
    print(result)


print(
    f"""
Python version: {sys.version}
cchardet version: {version}
platform: {platform.platform()}
uname: {platform.uname()!s}
linux_distribution: ('{distro.name()}', '{distro.version()}', '{distro.codename()}')
mac_ver: {platform.mac_ver()}
"""
)


{'encoding': 'SHIFT_JIS', 'confidence': 0.9900000095367432}

Python version: 3.13.1 (v3.13.1:06714517797, Dec  3 2024, 14:00:22) [Clang 15.0.0 (clang-1500.3.9.4)]
cchardet version: (2, 2, 0, 'alpha', 2)
platform: macOS-15.2-arm64-arm-64bit-Mach-O
uname: uname_result(system='Darwin', node='STACIAs-MacBook-Air.local', release='24.2.0', version='Darwin Kernel Version 24.2.0: Fri Dec  6 19:00:33 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T8122', machine='arm64')
linux_distribution: ('Darwin', '24.2.0', '')
mac_ver: ('15.2', ('', '', ''), 'arm64')

staciax avatar Jan 06 '25 05:01 staciax

Hey @PyYoshi, Any update on when we can get an official release on PyPI? The alpha seems stable — would be great to have a proper release. Thanks!

bityob avatar Apr 03 '25 20:04 bityob