Skip to content
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

Merged
merged 5 commits into from
Jul 21, 2017
Merged

Translate GA #3650

merged 5 commits into from
Jul 21, 2017

Conversation

lukesneeringer
Copy link
Contributor

This pull request bumps Translate to GA status, and should be followed by a release.

There are a couple of last minute changes:

  • The actual surface is moved from translate to translate_v2, with a alias in translate.
  • Documentation on models is changed to encourage the use of a string, rather than the constants.

Luke Sneeringer added 4 commits July 13, 2017 13:57
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.
@lukesneeringer lukesneeringer self-assigned this Jul 21, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 21, 2017
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.

Copy link
Contributor

@dhermes dhermes left a 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.

@@ -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.

@@ -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.

@lukesneeringer lukesneeringer merged commit d2bc36d into googleapis:master Jul 21, 2017
@lukesneeringer lukesneeringer deleted the translate branch July 21, 2017 21:50
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
parthea pushed a commit that referenced this pull request Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants