-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
43 lines (40 loc) · 1.34 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"""
Setup script for the gpt-po-translator package.
This script is used to install the package and its dependencies.
"""
from setuptools import find_packages, setup
# Read the contents of README file
with open('README.md', encoding='utf-8') as f:
long_description = f.read()
setup(
name='gpt-po-translator',
use_scm_version=True, # Automatically fetch version from git tags
setup_requires=['setuptools-scm==8.1.0'], # Ensure setuptools-scm is used during setup
author='Bram Mittendorff',
author_email='[email protected]',
description='A CLI tool for translating .po files using GPT models.',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/pescheckit/python-gpt-po',
license='LICENSE',
packages=find_packages(),
include_package_data=True,
install_requires=[
'polib==1.2.0',
'openai==1.58.1',
'python-dotenv==1.0.0',
'tenacity==9.0.0',
'pycountry==24.6.1'
],
entry_points={
'console_scripts': [
'gpt-po-translator=python_gpt_po.po_translator:main',
],
},
classifiers=[
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.8',
# Add additional classifiers as needed
],
)