toshas / torch_truncnorm

Truncated Normal Distribution in PyTorch
BSD 3-Clause "New" or "Revised" License
79 stars 13 forks source link

Upload to pypi #8

Open oliverdain opened 1 year ago

oliverdain commented 1 year ago

Thanks for making this. Very helpful! It'd be really nice if you could pip install it.

oliverdain commented 1 year ago

If it helps, I have a simple pyproject.toml here https://gitlab.com/companionlabs-opensource/classy-fastapi/-/blob/master/pyproject.toml that lets me to release to pypi via:

poetry publish -u __token__ -p "$PYPI_TOKEN" --build

Hooking that up to a CI to do regular releases is then pretty easy.

tivek commented 1 year ago

That would be awesome. For some reason, setuptools.find_packages() does not find the .py file for me, so not having to install this very useful package manually would be a boon.