client icon indicating copy to clipboard operation
client copied to clipboard

Also build source distribution for Python client

Open janjagusch opened this issue 3 years ago • 8 comments

Closes https://github.com/triton-inference-server/server/issues/4661.

With this PR, we're adding source distribution builds to the build script, which is necessary to add the package to conda-forge. The build_wheel.py script now creates a tritonclient*.tar.gz file additional to the tritonclient*.whl. It would make sense to rename the build script, for example, to build_dist.py, but I wanted this change to be as small as possible.

I don't know what's your release process but I would really appreciate a new PyPI release with the source distribution included, so I can continue with bringing tritonclient to conda-forge. Thanks a lot for your help! 🙏

janjagusch avatar Jul 23 '22 15:07 janjagusch

CC @szalpal

rmccorm4 avatar Aug 04 '22 20:08 rmccorm4

looks like there's a conflict somehow. Can you run the common/tools/format.py on this one?

jbkyang-nvi avatar Aug 04 '22 23:08 jbkyang-nvi

looks like there's a conflict somehow. Can you run the common/tools/format.py on this one?

@jbkyang-nvi, I couldn't find the format.py script you were referring to but resolved the conflict manually. Is this good to get merged now?

janjagusch avatar Aug 09 '22 07:08 janjagusch

@janjagusch https://github.com/triton-inference-server/common/blob/main/tools/format.py

matthewkotila avatar Aug 09 '22 16:08 matthewkotila

@Tabrizian et al., is there anything I can help you with so we can get this merged? 🙏

janjagusch avatar Aug 22 '22 09:08 janjagusch

@janjagusch Sorry about the delay. I'm just running this change through CI to make sure there aren't any issues. After that, I'll merge the PR. Thank you for your contribution!

Tabrizian avatar Aug 22 '22 12:08 Tabrizian

Looks like you can't specify sdist the way you have specified. I think You need a separate run to generate the sdist.

@Tabrizian, sorry for not getting back to your sooner!

I'm not sure I understand. With the changes in this PR you can run:

python build_wheel.py --dest-dir .

And then the source distribution is located at ./wheel/tritonclient-test.tar.gz.

janjagusch avatar Sep 29 '22 08:09 janjagusch

@Tabrizian, could you also please let me know which Git commit the 2.25.0 release was built with. Then I can go ahead and put that version on Conda-Forge already.

janjagusch avatar Sep 29 '22 08:09 janjagusch

How is this progressing? It would be extremely useful to have it on conda-forge. Not having it on conda-forge is currently preventing me from using it.

samhedin avatar Oct 17 '22 12:10 samhedin

How is this progressing? It would be extremely useful to have it on conda-forge. Not having it on conda-forge is currently preventing me from using it.

@Tabrizian, is there any way we can move this PR forward? Maybe I don't understand your release process well enough, but all I'd need is a source distribution (.tar.gz) on PyPI with your next release. 😇

janjagusch avatar Oct 19 '22 09:10 janjagusch

How is this progressing? It would be extremely useful to have it on conda-forge. Not having it on conda-forge is currently preventing me from using it.

FYI, we've just merged https://github.com/conda-forge/staged-recipes/pull/20820, so the tritonclient package should be on CF in a few hours. We've split it into three packages: tritonclient, tritonclient-http, and tritonclient-grpc.

We used the wheel for the conda build, which is less than ideal. Having the source distribution available on PyPI would still be much appreciated, as this helps tremendously maintain the feedstock long-term. 🙏

janjagusch avatar Oct 21 '22 12:10 janjagusch

@Tabrizian what's the status of this PR?

matthewkotila avatar Nov 04 '22 17:11 matthewkotila

Thank you for this pull request! We have discussed it internally. We may move forward with Condo, but we would do so with an internal team responsible for packaging and distributing software. As a result, I'll close this PR.

the-david-oy avatar Jul 11 '23 15:07 the-david-oy