anki/python
2021-10-23 08:43:19 +10:00
..
pyqt5 pip/ -> python/ 2021-10-18 19:50:40 +10:00
pyqt6 remove duplicate line and unnecessary py.typed insertion in install_pyqt6 2021-10-21 14:11:09 +10:00
stubs pip/ -> python/ 2021-10-18 19:50:40 +10:00
binary.bzl pip/ -> python/ 2021-10-18 19:50:40 +10:00
BUILD.bazel add aliases to run vendored python and node from command line 2021-10-18 19:50:41 +10:00
licenses.json pip/ -> python/ 2021-10-18 19:50:40 +10:00
licenses.sh pip/ -> python/ 2021-10-18 19:50:40 +10:00
python.bzl pip/ -> python/ 2021-10-18 19:50:40 +10:00
README.md pip/ -> python/ 2021-10-18 19:50:40 +10:00
requirements.in vendor stringcase 2021-10-22 08:56:44 +10:00
requirements.txt update Python deps, and fix update script 2021-10-23 08:43:19 +10:00
update.py update Python deps, and fix update script 2021-10-23 08:43:19 +10:00

To achieve reproducible builds we use pip-tools to lock packages to a particular version. Sadly this is complicated by the fact that Python can only tell us which transitive dependencies are required by actually installing packages, and if you run pip-tools on a Mac or Linux machine, it will miss packages that are required on Windows and vice versa.

So we're stuck manually merging dependencies for now. To update deps:

  • run 'bazel run update' to update requirements.txt for the current platform
  • consult the git diff, and manually merge the changes, undoing the removal of items pinned on other platforms
  • repeat the process on the other platform
  • run the tests to ensure nothing has broken on either platform
  • commit the changes to requirements.txt

At the time of writing, Macs and Linux machines have identical output - it is only Windows that differs. But we should not assume that will always be the case.