Merge branch 'master' into nothead31/issue66
Browse files- deep_translator/__init__.py +1 -0
- docs/conf.py +3 -3
- setup.cfg +18 -10
deep_translator/__init__.py
CHANGED
|
@@ -10,6 +10,7 @@ from .qcri import QCRI
|
|
| 10 |
from .deepl import DeepL
|
| 11 |
from .detection import single_detection, batch_detection
|
| 12 |
from .microsoft import MicrosoftTranslator
|
|
|
|
| 13 |
|
| 14 |
# TODO: Discussion: These should be declared in setup.cfg, setting them here is redundant
|
| 15 |
__author__ = """Nidhal Baccouri"""
|
|
|
|
| 10 |
from .deepl import DeepL
|
| 11 |
from .detection import single_detection, batch_detection
|
| 12 |
from .microsoft import MicrosoftTranslator
|
| 13 |
+
from .papago import PapagoTranslator
|
| 14 |
|
| 15 |
# TODO: Discussion: These should be declared in setup.cfg, setting them here is redundant
|
| 16 |
__author__ = """Nidhal Baccouri"""
|
docs/conf.py
CHANGED
|
@@ -21,7 +21,7 @@ import os
|
|
| 21 |
import sys
|
| 22 |
sys.path.insert(0, os.path.abspath('..'))
|
| 23 |
|
| 24 |
-
import deep_translator
|
| 25 |
|
| 26 |
# -- General configuration ---------------------------------------------
|
| 27 |
|
|
@@ -57,9 +57,9 @@ author = "Nidhal Baccouri"
|
|
| 57 |
# the built documents.
|
| 58 |
#
|
| 59 |
# The short X.Y version.
|
| 60 |
-
version = deep_translator.__version__
|
| 61 |
# The full version, including alpha/beta/rc tags.
|
| 62 |
-
release = deep_translator.__version__
|
| 63 |
|
| 64 |
# The language for content autogenerated by Sphinx. Refer to documentation
|
| 65 |
# for a list of supported languages.
|
|
|
|
| 21 |
import sys
|
| 22 |
sys.path.insert(0, os.path.abspath('..'))
|
| 23 |
|
| 24 |
+
# import deep_translator
|
| 25 |
|
| 26 |
# -- General configuration ---------------------------------------------
|
| 27 |
|
|
|
|
| 57 |
# the built documents.
|
| 58 |
#
|
| 59 |
# The short X.Y version.
|
| 60 |
+
# version = deep_translator.__version__
|
| 61 |
# The full version, including alpha/beta/rc tags.
|
| 62 |
+
# release = deep_translator.__version__
|
| 63 |
|
| 64 |
# The language for content autogenerated by Sphinx. Refer to documentation
|
| 65 |
# for a list of supported languages.
|
setup.cfg
CHANGED
|
@@ -35,6 +35,11 @@ keywords = deep_translator, deepL, DeepL, translator, translation, automation,
|
|
| 35 |
YANDEX, MyMemory translator, Linguee, QCRI, Language, Language detection,
|
| 36 |
detect language, free translation, unlimited translation, translate for free
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# [options]
|
| 39 |
# zip_safe = 0
|
| 40 |
# setup_requires = pytest-runner
|
|
@@ -52,20 +57,23 @@ keywords = deep_translator, deepL, DeepL, translator, translation, automation,
|
|
| 52 |
# [options.packages.find]
|
| 53 |
# where = deep_translator
|
| 54 |
|
|
|
|
| 55 |
# bumpversion config
|
| 56 |
-
[bumpversion]
|
| 57 |
-
current_version = 1.4.4
|
| 58 |
-
commit = True
|
| 59 |
-
tag = True
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
-
[bumpversion:file:
|
| 62 |
-
search =
|
| 63 |
-
replace =
|
| 64 |
|
| 65 |
-
[bumpversion:file:deep_translator/__init__.py]
|
| 66 |
-
search = __version__ = '{current_version}'
|
| 67 |
-
replace = __version__ = '{new_version}'
|
| 68 |
|
|
|
|
| 69 |
[bdist_wheel]
|
| 70 |
universal = 1
|
| 71 |
|
|
|
|
| 35 |
YANDEX, MyMemory translator, Linguee, QCRI, Language, Language detection,
|
| 36 |
detect language, free translation, unlimited translation, translate for free
|
| 37 |
|
| 38 |
+
[build_sphinx]
|
| 39 |
+
version = 1.4.4
|
| 40 |
+
release = 1.4.4
|
| 41 |
+
|
| 42 |
+
# TODO: These can be switched back on if the CI platform changes from Travis. Travis still requires setup.py to function properly.
|
| 43 |
# [options]
|
| 44 |
# zip_safe = 0
|
| 45 |
# setup_requires = pytest-runner
|
|
|
|
| 57 |
# [options.packages.find]
|
| 58 |
# where = deep_translator
|
| 59 |
|
| 60 |
+
# TODO: This can be removed once Sphinx confirms it reads the version tags from here. The tags might be simplified by referencing metadata.version
|
| 61 |
# bumpversion config
|
| 62 |
+
# [bumpversion]
|
| 63 |
+
# current_version = 1.4.4
|
| 64 |
+
# commit = True
|
| 65 |
+
# tag = True
|
| 66 |
+
|
| 67 |
+
# [bumpversion:file:setup.py]
|
| 68 |
+
# search = version='{current_version}'
|
| 69 |
+
# replace = version='{new_version}'
|
| 70 |
|
| 71 |
+
# [bumpversion:file:deep_translator/__init__.py]
|
| 72 |
+
# search = __version__ = '{current_version}'
|
| 73 |
+
# replace = __version__ = '{new_version}'
|
| 74 |
|
|
|
|
|
|
|
|
|
|
| 75 |
|
| 76 |
+
# TODO: These are all optional settings, turned on for now since they exist already.
|
| 77 |
[bdist_wheel]
|
| 78 |
universal = 1
|
| 79 |
|