openpilot
openpilot copied to clipboard
Pipenv -> poetry
- removes pipenv from openpilot
- add poetry, dependencies defined in
pyproject.tomlpoetry install --no-rootso that "openpilot" isn't installed as a package itself...
- add xx packages to an optional dependency group
- if
xxdir is present, installs packages to system (POETRY_VIRTUALENVS_CREATE=false) and--with xx
- if
Poetry 1.2 (with package groups) was just released: https://python-poetry.org/blog/announcing-poetry-1.2.0/
Cool! might try to revive this.
@incognitojam can you finish this up? goal is to get rid of xx/blob/master/pipenv-merge.sh in a clean way. if we can't do that, then let's just close this
@adeebshihadeh we could export the dependencies from the pyproject.toml to generate the xx Pipfile..
or I'm thinking we add openpilot as a dependency of xx? then running pipenv install in xx would install the openpilot deps
I've added semver version constraints to all of the * packages, using the version from the old Pipfile.lock, so they shouldn't have breaking changes.. Also pinned the Python version to ~3.8.
if CI passes this should be ready to review!