Skip to content

Commit 7eba005

Browse files
Merge pull request #30 from pescheckit/hotfix_fixed-all-build-issues
Fixed all build issues
2 parents 41b5022 + f086d70 commit 7eba005

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

pyproject.toml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,54 @@ build-backend = "setuptools.build_meta"
44

55
[tool.setuptools_scm]
66
fallback_version = "0.1.0"
7+
write_to = "python_gpt_po/_version.py"
8+
9+
[project]
10+
name = "gpt_po_translator"
11+
dynamic = ["version"]
12+
authors = [
13+
{name = "Bram Mittendorff", email = "[email protected]"},
14+
]
15+
description = "A CLI tool for translating .po files using GPT models."
16+
readme = "README.md"
17+
requires-python = ">=3.8"
18+
license = {text = "MIT"}
19+
dependencies = [
20+
"polib==1.2.0",
21+
"openai==1.58.1",
22+
"python-dotenv==1.0.0",
23+
"pytest==8.2.2",
24+
"tenacity==9.0.0",
25+
"setuptools-scm==8.1.0",
26+
"pycountry==24.6.1",
27+
"anthropic==0.48.0",
28+
"requests==2.32.3",
29+
"responses==0.25.6",
30+
]
31+
classifiers = [
32+
"Development Status :: 4 - Beta",
33+
"Intended Audience :: Developers",
34+
"Intended Audience :: System Administrators",
35+
"Topic :: Software Development :: Internationalization",
36+
"Topic :: Software Development :: Localization",
37+
"Topic :: Text Processing :: Linguistic",
38+
"Operating System :: OS Independent",
39+
"License :: OSI Approved :: MIT License",
40+
"Programming Language :: Python :: 3",
41+
"Programming Language :: Python :: 3.8",
42+
"Programming Language :: Python :: 3.9",
43+
"Programming Language :: Python :: 3.10",
44+
"Programming Language :: Python :: 3.11",
45+
"Programming Language :: Python :: 3.12",
46+
"Programming Language :: Python :: 3 :: Only",
47+
"Natural Language :: English",
48+
"Natural Language :: Dutch",
49+
"Environment :: Console",
50+
"Typing :: Typed"
51+
]
52+
53+
[project.scripts]
54+
gpt-po-translator = "python_gpt_po.main:main"
755

856
[tool.flake8]
957
max-line-length = 120

python_gpt_po/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""
2+
GPT-PO Translator - A tool for translating PO files using GPT language models.
3+
This package provides utilities to translate gettext PO files to multiple languages
4+
with support for multiple AI providers including OpenAI and Anthropic.
5+
"""
6+
7+
try:
8+
from ._version import version as __version__
9+
except ImportError:
10+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)