codeforboston / home-energy-analysis-tool

https://www.codeforboston.org/projects/
MIT License
8 stars 25 forks source link

Build a wheel and add to Git LFS #88

Closed alanisaac closed 7 months ago

alanisaac commented 8 months ago

The front end did some testing and needs a wheel if we want to split into multiple files. Build a wheel!

thadk commented 8 months ago

Please place the wheel file in heat-stack/public so that it is hosted.

jkwan2011 commented 8 months ago

CI for build has been added in #90, but since no CD yet, will have to manually deploy to location above. Add wheel file to Git LFS.

alanisaac commented 8 months ago

Steps to build the wheel

Check that you are on the same version of Python that we want to run in pyodide with:

python --version

Then build the wheel:

cd rules-engine
pip install -q build
python -m build

The wheel should output at:

rules-engine\dist\rules_engine-0.0.1-py3-none-any.whl
jkwan2011 commented 7 months ago

@thadk Is this still needed, or does the new build pipeline create the wheel automatically?

thadk commented 7 months ago

I don't think so, we can build it as a deployment step on the frontend. We should just keep an eye on that vitest test I made (once it gets merged) whenever y'all add any sub-dependencies to the rules-engine package—it should still pass.