Commit Graph

33 Commits

Author SHA1 Message Date
Kacper Rączy
7f1b13923f update_requirements: fix opendbc pre-commit hook installation (#29175)
Force poetry to stay in the same venv when installing pre-commit hooks
2023-07-31 00:47:00 +02:00
Cameron Clough
16c56e644e update update_requirements.sh (#28002)
* simplify update_requirements.sh

* check POETRY_VIRTUALENVS_CREATE
2023-04-21 22:36:10 -07:00
Adeeb Shihadeh
28d0459c69 update_requirements: skip pre-commit install on mac 2022-12-30 14:45:25 -08:00
Cameron Clough
e6182cb9aa fix dependencies for macOS (#26684)
* misc changes

* sort and remove duplicates

* only linux

* upgrade to pip 22.3.1
2022-12-08 20:15:37 -08:00
Cameron Clough
821d8ff12f tools: pyenv setup fix (#26601)
* setup pyenv immediately

* sudo

* fix
2022-11-30 15:11:26 -08:00
Cameron Clough
1be5cecfa2 add poetry-dotenv-plugin (#26216) 2022-10-23 15:49:32 -07:00
Cameron Clough
db6c9b9d45 install xx deps with XX env (#26205) 2022-10-21 23:09:24 -07:00
HaraldSchafer
a98d105cb9 Pipenv -> poetry (#24858)
* Try poetry

* Remove casadi for now

* Update docker

* Copy pipfiles

* add casadi back

* Too many slashes

* New poetry api

* Install system

* Try again

* No more pipenv

* new dependencies

* updates

* poetry 1.2.1, install dev dependencies

* keep install pipenv for xx for now?

* add pre-commit checks for poetry

* poetry lock is too slow

* update pip

* migrate to poetry groups

* update lockfile

* don't need to specify dev group unless it is made optional

* always install poetry

* set POETRY_VIRTUALENVS_CREATE instead, and use pipenv for xx

* use env for docs docker image

* alphabetical

* poetry 1.2.2

* add dev dependencies for typing

added in 4e310b80

* remove constraint

* fix PIPENV_SYSTEM

* remove constraint

* don't need this here

* bump

* bump pipenv

adds support for installing local pyprojects (can add openpilot as dependency of xx)

* README improvements

* probably not necessary

* bump pip

* maybe not necessary?

* revert

* don't install openpilot itself into the virtual env

* remove PySide2 and shiboken2

reverts c6b749fb96

* remove Pipenv, add xx dependencies, sync system python

* add pipenv as xx dep

* semver package constraints, use old lockfile versions

* fix casadi

* remove whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* disable poetry cache

* cleanup

* prefer config file

Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-10-21 16:23:56 -07:00
Adeeb Shihadeh
c6b749fb96 add pyside2 package (#25602) 2022-08-30 15:10:52 -07:00
Greg Hogan
f2f8e7b930 setup: perform all pyenv setup in a single place (#23408)
* consolidate pyenv setup

* cleanup openpilot_env.sh

* undo openpilot_env.sh changes

* needed on mac

* add that back

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-08-20 23:13:19 -07:00
Adeeb Shihadeh
a958213ec7 fix pre-commit install when subdirectories don't have a config 2022-03-13 20:00:23 -07:00
Adeeb Shihadeh
d6f6e024b3 no git in CI 2022-03-13 16:37:53 -07:00
Adeeb Shihadeh
8252134e62 install pre-commit hooks for all submodules 2022-03-13 16:18:01 -07:00
Andrew
6664421710 mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
2022-01-07 15:15:18 -08:00
Greg Hogan
bafdb20eb1 setup: remove duplicate pipenv install (#23406) 2022-01-05 13:25:41 +01:00
Greg Hogan
23346ae63c setup: update pyenv before installing python (#23405) 2022-01-05 00:25:34 -08:00
Greg Hogan
3e5a273022 tools: configure PYTHONPATH in pipenv (#23361)
* automatically set PYTHONPATH in pipenv

* remove other place this was set
2022-01-03 20:15:10 -08:00
Adeeb Shihadeh
066e3e3626 CI: use ubuntu_setup.sh (#23349)
* CI: use ubuntu_setup.sh

* works?

* need to fix paths

* set paths

* no batman for now

* pyenv version

* rehash after install packages

* unify python install

* revert that

* fix pyenv path

* no pipenv

* flip that

* fix rehash

* skip that

* revert panda
2022-01-02 14:47:16 -08:00
Greg Hogan
148c739ec7 Revert "update_requirements.sh: install both Pipfiles"
This reverts commit dec2cb6a65.
2021-11-19 11:48:34 -08:00
Willem Melching
dec2cb6a65 update_requirements.sh: install both Pipfiles 2021-11-04 16:31:49 +01:00
lipniak
1d55f2f23e tools/setup: do not change global state (#22735)
* tools/setup: do not change global state

1. download packages in the venv
2. never change global python version

* update_requirements.sh: install to system if used by comma employees

* bump pip & pipenv versions

* no --upgrade

* run pre-commmit install in venv

* for consistency

Co-authored-by: predicate@bonzo <noreply@example.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-10-31 16:37:07 +01:00
HaraldSchafer
06944165d0 notebook precommit install (#22382)
* notebook precommit install

* Update update_requirements.sh

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-09-29 19:05:11 -07:00
ZwX1616
c01e622e82 install hook for xx 2021-09-21 21:16:05 -07:00
Greg Hogan
2fe5eff88c better way to set pipfile 2021-03-09 17:56:23 -08:00
Greg Hogan
81433f1e54 use xx pipfile when available 2021-03-09 17:46:45 -08:00
Adeeb Shihadeh
c8bbb8ea87 update_requirements: install pipenv 2021-03-09 13:41:19 -08:00
Greg Hogan
92bc71c2e7 upgrade pip 2020-11-18 16:25:38 -08:00
Greg Hogan
c0715b57e2 update update_requirements.sh 2020-10-23 16:09:34 -07:00
Greg Hogan
0aaeaef79d make scons work immediately after install 2020-10-21 11:44:26 -07:00
Greg Hogan
7114cc29ab improve update_requirements.sh 2020-10-21 11:36:18 -07:00
Greg Hogan
cad76bf28b update pipenv install 2020-09-15 18:04:53 -07:00
Willem Melching
b16e90c781 Update pip to 20.1.1 so python-opencv installation succeeds 2020-07-24 12:13:00 +02:00
George Hotz
012535a84e root directory non hidden files 2020-01-17 10:22:00 -08:00