Skip to content

Commit 43b13f5

Browse files
Carl/release merge cleanup (#1184)
* Remove warning. We will support these for now. * Remove dead code in comment. * update comments
1 parent b0a8f71 commit 43b13f5

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

planet/auth.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,6 @@ def from_key(key: typing.Optional[str]) -> Auth:
322322
Parameters:
323323
key: Planet API key
324324
"""
325-
warnings.warn(
326-
"Planet API keys will be deprecated for most use cases."
327-
" Initialize an OAuth client, or create an OAuth service account."
328-
" Proceeding for now.",
329-
PendingDeprecationWarning)
330325
if not key:
331326
raise APIKeyAuthException('API key cannot be empty.')
332327

tests/unit/test_auth.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,6 @@ def test_Auth_from_env_alternate_doesnotexist(monkeypatch):
131131

132132

133133
def test_Auth_from_login(monkeypatch):
134-
# auth.AuthClient has been completely removed
135-
# in the conversion to planet_auth
136-
# def login(*args, **kwargs):
137-
# return {'api_key': auth_data}
138-
#
139-
# monkeypatch.setattr(auth.AuthClient, 'login', login)
140134
with pytest.raises(DeprecationWarning):
141135
_ = auth.Auth.from_login('email', 'pw')
142136

tests/unit/test_cli_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def test_CliSession_auth_valid(test_valid_secretfile):
7373
received_request = route.calls.last.request
7474
# The planet_auth library sends the api key as bearer token.
7575
# The older Planet SDK sent it as HTTP basic.
76-
# Most Planet APIs accept either (and API keys are being deprecated.)
76+
# Most Planet APIs accept either.
7777
# credentials = received_request.headers['authorization'].strip(
7878
# 'Authorization: Basic ')
7979
# assert base64.b64decode(credentials) == b'clisessiontest:'

0 commit comments

Comments
 (0)