gitman icon indicating copy to clipboard operation
gitman copied to clipboard

Support pyoxidizer to generate standalone executables

Open richnetdesign opened this issue 6 years ago • 1 comments

I really like gitman (and dislike submodules), and would like to bundle gitman up as a static exe for those on my team. Unlike pyinstaller which is slow as it unzips python runtime and app. Py-oxidizer can create faster static python executables

Unfortunately, somethign with the project configuration is causing a build error. Here are the steps to reproduce:

cargo install pyoxidizer

pyoxidizer init --pip-install gitman oxi-gitman
cd oxi-gitman
pyoxidizer build

This is the error I get:

LookupError: https://files.pythonhosted.org/packages/2b/7e/372f12f571f8dcb855f3444c3ca463399fa1d76fcb8dd48d476c2cd1a610/tomlkit-0.5.5.tar.gz#sha256=a8d806f3a453c2d292afe97918398354e405b93919e2e68771a3fd0a90e89576 (from https://pypi.org/simple/tomlkit/) (requires-python:>=2.7, !=3.0., !=3.1., !=3.2., !=3.3.) is already being built: tomlkit<0.6.0,>=0.5.1 from https://files.pythonhosted.org/packages/2b/7e/372f12f571f8dcb855f3444c3ca463399fa1d76fcb8dd48d476c2cd1a610/tomlkit-0.5.5.tar.gz#sha256=a8d806f3a453c2d292afe97918398354e405b93919e2e68771a3fd0a90e89576 (from poetry>=0.12)

I don't imagine this is a high priority, but I think the goal of making gitman more accessible to those not using python would be a good project goal. Personally I'd like to see it built into git.

richnetdesign avatar Aug 27 '19 16:08 richnetdesign

I have good experiences in using pyinstaller under linux and windows. I think in the near future I will compare it to the Py-oxidizer.

Did you already tried to fetch the py-oxidizer via poetry as described here. To make this work you should add the dependency in the pyproject.toml in the same way as the pyinstaller resp. try to install it manually into the virtual enviroment via poetry run.

daniel-brosche avatar Sep 03 '19 08:09 daniel-brosche