Skip to content

Commit a1f2f84

Browse files
jskeetchalmerlowe
authored andcommitted
chore: complete google-auth-oauth-lib migration (#16676)
- Reformat with nox - Enable generation with librarian - Regenerate with librarian
1 parent 34da4d1 commit a1f2f84

File tree

9 files changed

+13
-20
lines changed

9 files changed

+13
-20
lines changed

librarian.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ libraries:
336336
issue_tracker_override: https://github.com/googleapis/google-cloud-python/issues
337337
- name: google-auth-oauthlib
338338
version: 1.3.1
339-
skip_generate: true
340339
python:
341340
library_type: AUTH
342341
name_pretty_override: Google Auth OAuthlib
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
2-
"name": "google-auth-oauthlib",
3-
"name_pretty": "Google Auth OAuthlib",
42
"client_documentation": "https://googleapis.dev/python/google-auth-oauthlib/latest",
3+
"distribution_name": "google-auth-oauthlib",
54
"issue_tracker": "https://github.com/googleapis/google-cloud-python/issues",
6-
"release_level": "stable",
75
"language": "python",
86
"library_type": "AUTH",
9-
"repo": "googleapis/google-cloud-python",
10-
"distribution_name": "google-auth-oauthlib",
11-
"default_version": "",
12-
"codeowner_team": "@googleapis/googleapis-auth"
13-
}
7+
"name": "google-auth-oauthlib",
8+
"name_pretty": "Google Auth OAuthlib",
9+
"release_level": "stable",
10+
"repo": "googleapis/google-cloud-python"
11+
}

packages/google-auth-oauthlib/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# All configuration values have a default; values that are commented out
2525
# serve to show the default.
2626

27-
import sys
2827
import os
2928
import shlex
29+
import sys
3030

3131
# If extensions (or modules to document with autodoc) are in another directory,
3232
# add these directories to sys.path here. If the directory is relative to the

packages/google-auth-oauthlib/google_auth_oauthlib/flow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
from secrets import SystemRandom
5858
except ImportError: # pragma: NO COVER
5959
from random import SystemRandom
60+
6061
from string import ascii_letters, digits
6162
import webbrowser
6263
import wsgiref.simple_server
@@ -67,7 +68,6 @@
6768

6869
import google_auth_oauthlib.helpers
6970

70-
7171
_LOGGER = logging.getLogger(__name__)
7272

7373

packages/google-auth-oauthlib/google_auth_oauthlib/interactive.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626

2727
import google_auth_oauthlib.flow
2828

29-
3029
LOCALHOST = "localhost"
3130
DEFAULT_PORTS_TO_TRY = 100
3231

packages/google-auth-oauthlib/google_auth_oauthlib/tool/__main__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939
import google_auth_oauthlib.flow
4040

41-
4241
APP_NAME = "google-oauthlib-tool"
4342
DEFAULT_CREDENTIALS_FILENAME = "credentials.json"
4443

packages/google-auth-oauthlib/setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414

1515
import io
1616

17-
from setuptools import find_namespace_packages
18-
from setuptools import setup
19-
17+
from setuptools import find_namespace_packages, setup
2018

2119
TOOL_DEPENDENCIES = "click>=6.0.0"
2220

packages/google-auth-oauthlib/tests/unit/test_flow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
import re
2222
import socket
2323
from unittest import mock
24+
import urllib
25+
import webbrowser
2426

2527
import pytest
2628
import requests
27-
import urllib
28-
import webbrowser
2929

3030
from google_auth_oauthlib import flow
3131

packages/google-auth-oauthlib/tests/unit/test_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
import os
1818
from unittest import mock
1919

20-
import pytest
21-
2220
from google.auth import external_account_authorized_user
2321
import google.oauth2.credentials
22+
import pytest
23+
2424
from google_auth_oauthlib import helpers
2525

2626
DATA_DIR = os.path.join(os.path.dirname(__file__), "data")

0 commit comments

Comments
 (0)