netdevopsbr / netbox-proxbox

Netbox Plugin for integration between Proxmox and Netbox
Apache License 2.0
341 stars 50 forks source link

Closes #37 - Automatically publish the package on PyPI #55

Closed klaernie closed 2 years ago

klaernie commented 2 years ago

After considering installing the plugin and then reading the notice in the readme, and #37 afterwards, I thought that this will make life a little bit easier.

It requires you, @emersonfelipesp, to create an API token on PyPI scoped for the netbox-proxbox project, and store it as a repository secret called PYPI_API_TOKEN.

Once the secret is created every time you create a release in GitHub it will automatically build the package and upload it to PyPI.

I'll hope you'll find this useful and it saves you some time and effort.


PS: why does this help me? As I run my netbox in Kubernetes, installing plugins a little more involved. But as I'm lazy I'd rather have netbox-proxbox installable from pypi instead of manually building it in my netbox-extension-collecting container.

quiknick commented 2 years ago

Thanks @klaernie!

emersonfelipesp commented 2 years ago

I'm going to review it, but it seems pretty useful. Thank you already!