Explorar o código

:bug: fix for python3.14 support

Jeremy Zheng hai 2 semanas
pai
achega
3c9e83a3fe
Modificáronse 3 ficheiros con 6 adicións e 6 borrados
  1. 1 0
      ai-translate/.gitignore
  2. 1 0
      ai-translate/README.md
  3. 4 6
      ai-translate/pyproject.toml

+ 1 - 0
ai-translate/.gitignore

@@ -1,6 +1,7 @@
 /tmp/
 /tmp/
 /config.toml
 /config.toml
 
 
+/dist/
 __pycache__/
 __pycache__/
 ai_translate.egg-info/
 ai_translate.egg-info/
 .stop
 .stop

+ 1 - 0
ai-translate/README.md

@@ -2,6 +2,7 @@
 
 
 ```bash
 ```bash
 # initial python3 virtual env folder
 # initial python3 virtual env folder
+$ export PYTHON_GIL=0
 $ python3 -m venv $HOME/tmp/python3
 $ python3 -m venv $HOME/tmp/python3
 # load virtual env vars
 # load virtual env vars
 $ source $HOME/tmp/python3/bin/activate
 $ source $HOME/tmp/python3/bin/activate

+ 4 - 6
ai-translate/pyproject.toml

@@ -1,11 +1,11 @@
 [build-system]
 [build-system]
-requires = ["setuptools"]
-build-backend = "setuptools.build_meta"
+requires = ["hatchling >= 1.26"]
+build-backend = "hatchling.build"
 
 
 [project]
 [project]
 name = "ai_translate"
 name = "ai_translate"
-version = "2026.1.16"
-requires-python = ">= 3.12"
+version = "2026.6.28"
+requires-python = ">= 3.14"
 description = "An OpenAI consumer process"
 description = "An OpenAI consumer process"
 readme = "README.md"
 readme = "README.md"
 license = "MIT"
 license = "MIT"
@@ -15,5 +15,3 @@ dependencies = ["pika", "requests", "redis[hiredis]", "openai"]
 [project.scripts]
 [project.scripts]
 mint-ai-translate-consumer = "ai_translate.__main__:main"
 mint-ai-translate-consumer = "ai_translate.__main__:main"
 
 
-[tool.setuptools]
-py-modules = []