-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Translate GA #3650
Translate GA #3650
Conversation
This commit does two things: * Moves the library proper into a versioned namespace. * Removes the BASE/NMT enum; the API producers want this to be a plain string. And then it flips the version number to 1.0.
pubsub/nox.py
Outdated
@@ -34,14 +34,15 @@ def unit_tests(session, python_version): | |||
session.virtualenv_dirname = 'unit-' + python_version | |||
|
|||
# Install all test dependencies, then install this package in-place. | |||
session.install('mock', 'pytest', 'pytest-cov', *LOCAL_DEPS) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lukesneeringer I'm surprised there are so few changes here. What am I missing?
LGTM
:param model: (Optional) The model used to translate the text. The | ||
only accepted values are :attr:`BASE` and :attr:`NMT`. | ||
:param model: (Optional) The model used to translate the text, such | ||
as ``'base'`` or ``'nmt'``. |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -56,7 +56,7 @@ | |||
|
|||
setup( | |||
name='google-cloud-translate', | |||
version='0.25.0', | |||
version='1.0.0', |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@@ -56,7 +56,7 @@ def test_translate(self): | |||
values = ['hvala ti', 'dankon', | |||
'Me llamo Jeff', 'My name is Jeff'] | |||
translations = Config.CLIENT.translate( | |||
values, target_language='de', model=translate.NMT) | |||
values, target_language='de', model='nmt') |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This pull request bumps Translate to GA status, and should be followed by a release.
There are a couple of last minute changes:
translate
totranslate_v2
, with a alias intranslate
.