NetSys / bess

BESS: Berkeley Extensible Software Switch
Other
313 stars 156 forks source link

pybess should be published as an official python package on PyPI #967

Open rvichery opened 4 years ago

rvichery commented 4 years ago

There seems to be a python module within the pybess directory to interact with BESS gRPC channel locally or remotely. It would be great if this python module was published as a package on PyPI for everybody to use without having to manually compile the protobuf and play with PYTHONPATH.

The travis job would have to be updated to push new python packages on tags and I think the python library version should follow BESS versioning.

I can open a PR to add the necessary files and modifications to make the module ready for packaging but I would like to ask @maintainers, how should we handle the authentication token to push the python package to PyPI.

sangjinhan commented 4 years ago

Thank you for the suggestion! I am not familiar with pypi much; did some hello-world thing reading https://docs.travis-ci.com/user/deployment/pypi/ and got the following encrypted pypi api_token (linked to username "sangjin" on pypi.org) that you can use in .travis.yml

  password:
    secure: QBTeLnZpatwk+U0/iGH63sAnc1SkLASL7TPtbhWkjockP9ykvlGR7vg+usf+MfopLtzOV/t89VGRjkDwdq73Zrb+gSfG64hGc+0kR5lq6h+4fiujGHWsF0F0/s27JmykkLDGC29mJXLaFlca1iV6qeUrm3jqGE45pwyY0ESy6BM5IyM2uT9w1H3lBb3LD8275tQKYTi3VCpb+8vvOXrXOhx/3Pj427hpw3bKkGHb91ZABDTyD5cMRbMgRGzWiBvAtz/ndadLwj5aMizOk6M2MNH93RAufgIy+8Au9W2RIHXB3MuCCaJiY35sXfVexM2yXuNHovYp9awEdSRSeDQ69YjTaKpSk10vM6UBQ0CmGBgkhjXW1y+inJFFynfC2lrz7gEleeAzKLMG7zhj1hvUs4H6qTobnOtiST2rw86+WryzttbDqmvXTAFsg9Uwy35Xe2PS1t/Ao0YnDnBNjp/nL3dTiZOBwNNQu5yKDZnXtoWiN65cKqvSHYExvdJgjAqQb21TOyvkyfHKnjENDG4P3QLKq7emUldXvRxFt4R6y0Q74wZv1XKCF2Is1j+Jk4tWUXo7KxJHVGmiYauGYBq5OS54oYW6TJgUeCQ8MTTGjzRr+v2L/jFzrop1bX5gNS3Pcu10cP9663S/aGkKkSz41wYbvky8PRNYBipjlh5di2c=

Please guide me if you need anything else to be done on my side. Thanks!