Compare commits

...

3 Commits

Author SHA1 Message Date
Zuul
5f7d102f0e Merge "Add warning for using the python bindings" 2025-06-13 01:25:15 +00:00
Takashi Kajinami
905be917fe Drop explicit dependency on python-subunit
It is no longer directly used by any test code in this repository since
we switched to stestr[1].

It is now installed as a dependency of stestr.

[1] 259c386d42

Change-Id: Iacbdd3477a9e0b2d2bae3e09d20867d794586673
2025-06-10 12:12:18 +00:00
elajkat
857b4b233c Add warning for using the python bindings
The deprecation of python-neutronclient bindings
was discussed on the 2025.2 (Flamingo) PTG:
https://etherpad.opendev.org/p/apr2025-ptg-neutron#L163

Change-Id: Ieb08fc0884d7f386dc94090dce9d284d786d1ec2
2025-04-30 13:35:14 +02:00
3 changed files with 4 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ provides a Python API (the ``neutronclient`` module).
.. note:: This project has been deprecated. The CLI code has been deleted
and is not accessible anymore. The Python bindings are still in use by
other projects but no new features will be added to this project.
All projects under Openstack governance migrating to use OpenstackSDK.
Any new feature should be proposed to OpenStack SDK and OpenStack
Client.

View File

@@ -250,6 +250,9 @@ class ClientBase(object):
def __init__(self, **kwargs):
"""Initialize a new client for the Neutron v2.0 API."""
super(ClientBase, self).__init__()
_logger.warning("The python binding code in neutronclient is "
"deprecated in favor of OpenstackSDK, please use "
"that as this will be removed in a future release.")
self.retries = kwargs.pop('retries', 0)
self.raise_errors = kwargs.pop('raise_errors', True)
self.httpclient = client.construct_http_client(**kwargs)

View File

@@ -7,7 +7,6 @@ flake8-import-order>=0.18.0,<0.19.0 # LGPLv3
oslotest>=3.2.0 # Apache-2.0
osprofiler>=2.3.0 # Apache-2.0
python-openstackclient>=3.12.0 # Apache-2.0
python-subunit>=1.0.0 # Apache-2.0/BSD
requests-mock>=1.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT