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

pip Package and/or deb Package #109

Open
phistep opened this issue Dec 1, 2024 · 0 comments
Open

pip Package and/or deb Package #109

phistep opened this issue Dec 1, 2024 · 0 comments

Comments

@phistep
Copy link

phistep commented Dec 1, 2024

The manual installation seems cumbersome and compicated for novice linux users. The way of running the server seems unpythonic. Setting up the systemd service has to be done manually and from reading the README.

Restructure the project root to match the Python Packaging Authority recommended project layout. Then use [pyproject.toml][pyproj.toml] to build a wheel package. Have it secify the server as entrypoint, so that it can be installed via pipx and run directly from the shell. Distribute these pre-built packages via PyPI and/or Github Release Artifacts and use Github Actions to automate the build process on the CI.

Then the installation would be as simple as

pip3 install https://github.com/monkeymademe/picamera2-WebUI.git
# or 
pip3 install picamera2-WebUI
# then run
python3 -m picamera2_webui

# or 
pipx install picamera2-WebUI
# then run
picamera2-webui

Also create a [Debian .deb package][raspbian-deb[ that can be installed via apt-get. This can then also pull-in any platform-specific system packages and ease the installation, as well as install systemd service files and run post-installation commands like starting the server. Distribute it via Github Release Artifacts use Github Actions to automate the build process on the CI or even try to get it upstreamed into the Rasbian repositories.

Then the installation would be as simple as

wget https://github.com/monkeymademe/picamera2-WebUI/releases/download/v1.0.0/picamera2-WebUI.deb
dpkg -i picamera2-WebUI.deb
# or 
apt-get install python3-picamera2-WebUI

# server started automatically

I am happy to do all this and open an PR, since I have done similar setups before, if it will get merged. Would you be interested in this?

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

No branches or pull requests

1 participant