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

Update setup.py #93

Merged
merged 1 commit into from
May 6, 2021
Merged

Update setup.py #93

merged 1 commit into from
May 6, 2021

Conversation

omikader
Copy link
Contributor

@omikader omikader commented May 4, 2021

  • Updated package namespace from python.onos.<module> to onos_api.<module>
  • Updated module dependencies to only betterproto (w/ version constraint) and gnmi-proto
  • Deleted gnmi, gnmi_ext and gogoproto modules
omikader@omikader-mbp onos-api % python3 -m venv /tmp/my_venv
omikader@omikader-mbp onos-api % source /tmp/my_venv/bin/activate
(my_venv) omikader@omikader-mbp onos-api % pip install .
Processing /Users/omikader/onos-api
Collecting betterproto<3,>=2.0.0b3 (from onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/ec/f1/099946e44e1e5d11c05000f8efa799107272d1c1cb54f32aa2d509cd6309/betterproto-2.0.0b3-py3-none-any.whl
Collecting gnmi-proto (from onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/45/c0/da32312b032a305d232bc203a9f7eeea1015d91d9c22f3a3d1d11d6e7c99/gnmi_proto-0.1.0a3-py3-none-any.whl
Collecting grpclib<0.5.0,>=0.4.1 (from betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
Collecting python-dateutil<3.0,>=2.8 (from betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl
Collecting protobuf<4.0,>=3.12 (from gnmi-proto->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/e9/bb/6ca2011fd6cc62a942e1920cb0ddac348079af2d6fbf5ca84e9eb399ca71/protobuf-3.15.8-cp37-cp37m-macosx_10_9_x86_64.whl
Collecting grpcio<2.0,>=1.30 (from gnmi-proto->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/b1/6c/21c8592fafbc509d655b66ab740f89b0ce9c3fc758b263df36c81b181374/grpcio-1.37.1-cp37-cp37m-macosx_10_10_x86_64.whl
Collecting h2<5,>=3.1.0 (from grpclib<0.5.0,>=0.4.1->betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/bd/c2/5ffec707d0022208787908d9657f782ce35b653baa1e87abecf22a7cf513/h2-4.0.0-py3-none-any.whl
Collecting multidict (from grpclib<0.5.0,>=0.4.1->betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/bf/1f/6ccb2f678e6d147cc6eec00a5b8615f9fa8d8a8271cc98a2ffa0343c9063/multidict-5.1.0-cp37-cp37m-macosx_10_14_x86_64.whl
Collecting six>=1.5 (from python-dateutil<3.0,>=2.8->betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/ee/ff/48bde5c0f013094d729fe4b0316ba2a24774b3ff1c52d924a8a4cb04078a/six-1.15.0-py2.py3-none-any.whl
Collecting hyperframe<7,>=6.0 (from h2<5,>=3.1.0->grpclib<0.5.0,>=0.4.1->betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/d7/de/85a784bcc4a3779d1753a7ec2dee5de90e18c7bcf402e71b51fcf150b129/hyperframe-6.0.1-py3-none-any.whl
Collecting hpack<5,>=4.0 (from h2<5,>=3.1.0->grpclib<0.5.0,>=0.4.1->betterproto<3,>=2.0.0b3->onos-api==0.7.29.dev0)
  Using cached https://files.pythonhosted.org/packages/d5/34/e8b383f35b77c402d28563d2b8f83159319b509bc5f760b15d60b0abf165/hpack-4.0.0-py3-none-any.whl
Installing collected packages: hyperframe, hpack, h2, multidict, grpclib, six, python-dateutil, betterproto, protobuf, grpcio, gnmi-proto, onos-api
  Running setup.py install for onos-api ... done
Successfully installed betterproto-2.0.0b3 gnmi-proto-0.1.0a3 grpcio-1.37.1 grpclib-0.4.1 h2-4.0.0 hpack-4.0.0 hyperframe-6.0.1 multidict-5.1.0 onos-api-0.7.29.dev0 protobuf-3.15.8 python-dateutil-2.8.1 six-1.15.0
WARNING: You are using pip version 19.2.3, however version 21.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(my_venv) omikader@omikader-mbp onos-api % python
Python 3.7.5 (default, Oct 22 2019, 10:35:10)
[Clang 10.0.1 (clang-1001.0.46.4)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from onos_api.e2sub.endpoint import E2RegistryServiceStub
>>> dir(E2RegistryServiceStub)
['_ServiceStub__resolve_request_kwargs', '__abstractmethods__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__slots__', '__str__', '__subclasshook__', '__weakref__', '_abc_impl', '_send_messages', '_stream_stream', '_stream_unary', '_unary_stream', '_unary_unary', 'add_termination', 'get_termination', 'list_terminations', 'remove_termination', 'watch_terminations']

@ray-milkey ray-milkey merged commit 6db30c5 into onosproject:master May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants