forked from UlionTse/translators
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
64 lines (58 loc) · 2.01 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# coding=utf-8
# author=UlionTse
import os
from setuptools import setup, find_packages
PACKAGE = "translators"
NAME = "translators"
DESCRIPTION = "Translators is a library which aims to bring free, multiple, enjoyable translation to individuals and students in Python."
AUTHOR = "UlionTse"
AUTHOR_EMAIL = "[email protected]"
URL = "https://github.com/uliontse/translators"
try:
VERSION = __import__(PACKAGE).__version__
except:
os.system('pip install --upgrade -r requirements.txt')
VERSION = __import__(PACKAGE).__version__
with open('README.md', 'r', encoding='utf-8') as file:
long_description = file.read()
setup(
name=NAME,
version=VERSION,
description=DESCRIPTION,
long_description=long_description,
long_description_content_type="text/markdown",
author=AUTHOR,
author_email=AUTHOR_EMAIL,
license="MIT",
url=URL,
packages=find_packages(),
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
# "Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
keywords=[
'translate', 'translator', 'fanyi', 'translate_html',
'Google', 'Yandex', 'Bing', 'Baidu', 'Alibaba', 'Tencent', 'Youdao', 'Sogou',
'Iciba', 'Iflytek', 'Deepl', 'Niutrans', 'Lingvanex', 'Reverso', 'Itranslate',
'Papago', 'Caiyun', 'Mglip', 'Utibet', 'Argos', 'TranslateCom',
],
install_requires=[
'requests>=2.28.1',
'PyExecJS>=1.5.1',
'lxml>=4.9.1',
'loguru>=0.6.0',
'pathos>=0.2.9',
],
zip_safe=False,
)