servo / intermittent-tracker

A live database of intermittent test failures based on github's webhook notifications.
https://build.servo.org/intermittent-tracker/query.py?name=
Mozilla Public License 2.0
3 stars 12 forks source link

fix a variety of packaging issues #7

Closed delan closed 1 year ago

delan commented 1 year ago

The production server uses pip to install the intermittent tracker, but static files weren’t being deployed. This patch moves those files into the package directory and registers them in setup.py.

When installed in non-editable mode (the usual way), these static files are relative to $venv/lib/python*/site-packages/intermittent_tracker, not the working directory. Flask knows how to find static/index.html by default, but the rest of our code didn’t know how to find anything else. This patch fixes our path logic, and centralises it in a new fs.py.

Our deps weren’t pinned to any particular versions, so deployment was not repeatable. This patch adds a requirements.txt, which will be used when deploying servo/saltfs#1036.