Skip to content

Commit e236877

Browse files
authored
docs(boxsdk): Add deprecation notice for client module in legacy SDK (#1116)
1 parent 5b66ea5 commit e236877

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

boxsdk/client/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ def __init__(self, oauth: 'OAuth2', session: Session = None):
8383
The session object to use. If None is provided then an instance of :class:`AuthorizedSession` will be used.
8484
"""
8585
super().__init__()
86+
warn(
87+
"The 'Client' class and the entire 'boxsdk' package is deprecated and will be removed in the future version. "
88+
"It is recommended to use 'box_sdk_gen' package and 'BoxClient' instead. ",
89+
DeprecationWarning,
90+
stacklevel=2,
91+
)
8692
self._oauth = oauth
8793
if session is not None:
8894
self._session = session

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from setuptools.command.test import test as TestCommand
88

99
CLASSIFIERS = [
10-
'Development Status :: 6 - Mature',
10+
'Development Status :: 5 - Production/Stable',
1111
'Intended Audience :: Developers',
1212
'License :: OSI Approved :: Apache Software License',
1313
'Programming Language :: Python',

0 commit comments

Comments
 (0)