influxdata / kapacitor

Open source framework for processing, monitoring, and alerting on time series data
MIT License
2.31k stars 492 forks source link

Publish Python UDF package on PyPi. #930

Open OrangeTux opened 8 years ago

OrangeTux commented 8 years ago

It's cumbersome to install the Kapacitor UDF for Python because its not on Python's package index.

nathanielc commented 8 years ago

@OrangeTux This is a good idea. If it helps we do host a tar of just the python sources which can be found here:

https://dl.influxdata.com/kapacitor/releases/python-kapacitor_udf-1.0.0.tar.gz

I don't think we publish that link anywhere though, so I'll go fix that.

OrangeTux commented 8 years ago

@nathanielc Thanks for the link.

I also send in PR #935 which adds protobuf to setup.py.

nathanielc commented 8 years ago

@rossmcdonald Are you familiar with PyPi? I have used it but not published to it yet. My guess is its not too hard.

Also is there a good place we could publish the python tarball links on our downloads site? That way we have at least some visibility to the fact that we have created a install-able tarball.

rossmcdonald commented 8 years ago

@nathanielc I am not, though I read through some docs and it looks relatively straightforward.

Regarding the download links, I think we should put the links somewhere in the repo or documentation in the short-term. For getting them on the Downloads page, we'll need to have a larger discussion with @toddboom.

OrangeTux commented 8 years ago

@rossmcdonald @nathanielc I'm author of several packages on PyPi. It's not hard to upload a package as a tarball. This guide covers all aspects in length, but here is a TL;DR:

[bdist_wheel]
universal=1

Now you need to register the package on PyPi and upload a source distribution and a binary distribution (a wheel).

Finkregh commented 7 years ago

This issue makes writing UDF fall out of the normal python-workflow of using PyPi for all modules :-(

auphofBSF commented 6 years ago

@nathanielc and @rossmcdonald commented on Sep 2016, that the tar sources are published at https://dl.influxdata.com/kapacitor/releases/python-kapacitor_udf-1.0.0.tar.gz. I guessed that the current sources are https://dl.influxdata.com/kapacitor/releases/python-kapacitor_udf-1.4.0.tar.gz. but can't find a way to list the what the current or other release options are

Until the preferred option , publishing to PyPi, is made available, Is there any way to look up for this release tar ?

Chris-Tophski commented 4 years ago

Any progress on this? We are starting to use Kapacitor and really don't want to complicate our setup of a VM with downloading stuff from a bunch of sources that may be outdated any time.

tbert12 commented 3 years ago

Hi, I published it to Gitlab Package Repository under a repository in my account. We can install it using: Pipenv:

[packages]
kapacitor-udf = {editable = true,git = "https://gitlab.com/tbert.fiuba/py-kapacitor-udf.git"}

PIP:

pip install git+https://gitlab.com/tbert.fiuba/py-kapacitor-udf.git

In the next few days I will be uploading it to PyPI Gitlab Registry and Official PyPI Registry.