HEnquist / camillagui-backend

Backend server for camillagui
GNU General Public License v3.0
18 stars 4 forks source link

add project file for poetry #44

Closed gebi closed 8 months ago

gebi commented 9 months ago

makes it possible to start camillagui-backend with just poetry run python main.py

before just run poetry update

because install cmds from README.md do not work anymore (debian sid)

error: externally-managed-environment
hint: See PEP 668 for the detailed specification.
HEnquist commented 9 months ago

Thanks for the PR! I have not used poetry but did consider adding the equivalent for pipenv. The reason I didn't is that it adds yet another place to keep updated whenever there is a new version of some component. It's already scattered in several readmes and in the setup scripts: https://github.com/HEnquist/camilladsp-setupscripts

I haven't looked into what could be done smarter yet. Any ideas are most welcome.

HEnquist commented 8 months ago

I think I have come up with a good solution for this, templates! I converted all setup scripts etc to jinja templates, and keep the versions of libraries etc in a single file. Later I will add a an action that renders all the templates and publishes them. This means I can add poetry support without getting an additional script to update whenever there is a new release of some component. I used this PR as a base for the pyproject.toml template here: https://github.com/HEnquist/camilladsp-setupscripts/blob/jinja/templates/pyproject.toml.j2

gebi commented 8 months ago

awesome idea, thx :)!

HEnquist commented 8 months ago

I'm closing this PR then since I already implemented this in the setup scripts :)