-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build wheel #2389
Build wheel #2389
Conversation
The entire workflow is documented in the `build-dist` nix script, which can be run via `nix run .#build-dist`. In particular, the wheel intentionally contains the built JavaScript, CSS, and translations, so that these steps don't need to be run on production anymore.
@richardebeling You previously had concerns that we would at some point forget to update the build configuration in |
I think for js we're fine with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think there is bootstrap missing or so.
- create a new venv
python3.10 -n venv venv && source venv/bin/activate
- install evap wheel:
pip install evap-0.0.0-py3-none-any.whl
- setup localsettings for redis and postgres
python -m evap runserver 0.0.0.0:8000
leads to:
when opening the index page
everything else seems to be fine...
[2025-02-10 22:38:46,287] DEBUG: request is not refreshable
[2025-02-10 22:38:46,311] INFO: "GET / HTTP/1.1" 302 0
[2025-02-10 22:38:46,321] DEBUG: request is not refreshable
/home/jonas/development/evap/tmp/vevn/lib/python3.10/site-packages/django/core/cache/backends/redis.py:27: RuntimeWarning: Pickled model instance's Django version 5.1.3 does not match the current version 5.1.6.
return pickle.loads(data)
[2025-02-10 22:38:46,521] INFO: "GET /contributor/ HTTP/1.1" 200 170173
[2025-02-10 22:38:46,599] INFO: "GET /static/css/evap.css HTTP/1.1" 200 755
[2025-02-10 22:38:46,602] INFO: "GET /static/js/csrf-utils.js HTTP/1.1" 200 629
[2025-02-10 22:38:46,605] INFO: "GET /static/js/utils.js HTTP/1.1" 200 1462
[2025-02-10 22:38:46,608] INFO: "GET /static/js/base-template.js HTTP/1.1" 200 415
[2025-02-10 22:38:46,610] DEBUG: request is not refreshable
[2025-02-10 22:38:46,615] INFO: "GET /static/js/confirmation-modal.js HTTP/1.1" 200 3215
[2025-02-10 22:38:46,619] INFO: "GET /static/js/contact_modal.js HTTP/1.1" 200 2448
[2025-02-10 22:38:46,620] INFO: "GET /static/js/infobox.js HTTP/1.1" 200 1498
[2025-02-10 22:38:46,620] INFO: "GET /static/js/notebook.js HTTP/1.1" 200 2756
[2025-02-10 22:38:46,626] INFO: "GET /catalog.js HTTP/1.1" 200 3000
[2025-02-10 22:38:46,667] INFO: "GET /static/js/custom-success-form.js HTTP/1.1" 200 1161
[2025-02-10 22:38:46,671] INFO: "GET /static/js/translation.js HTTP/1.1" 200 11
Ahh, I found the problem: I ran
|
This is in preparation for #2328. The entire workflow is documented in the
build-dist
nix script, which can be run vianix run .#build-dist
. In particular, the wheel intentionally contains the built JavaScript, CSS, and translations, so that these steps don't need to be run on production anymore. To test the process, I added a CI job that builds the wheel and another that installs it using a non-nix Python installation.