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

Publish Python UDF package on PyPi. #930

Open
OrangeTux opened this issue Sep 21, 2016 · 9 comments
Open

Publish Python UDF package on PyPi. #930

OrangeTux opened this issue Sep 21, 2016 · 9 comments
Milestone

Comments

@OrangeTux
Copy link
Contributor

OrangeTux commented Sep 21, 2016

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

@nathanielc
Copy link
Contributor

@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
Copy link
Contributor Author

OrangeTux commented Sep 22, 2016

@nathanielc Thanks for the link.

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

@nathanielc
Copy link
Contributor

@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
Copy link
Contributor

@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
Copy link
Contributor Author

OrangeTux commented Sep 28, 2016

@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:

  • Add README to the root of the Python package
  • Add long_description arg to setup() in setup.py.
  • Add classifiers arg to setup() to setup.py.
  • Add a file setup.cfg to the root of the projects to tell that this projects works under Python 2 and Python 3 with the following content:
[bdist_wheel]
universal=1

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

@nathanielc nathanielc added this to the Unplanned milestone Sep 28, 2016
@Finkregh
Copy link

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

@auphofBSF
Copy link

@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
Copy link

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
Copy link

tbert12 commented Oct 20, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants