I've set up two Python projects inside a new support folder at the root of the monorepo: one to create sample.h5 and one to start an h5grove tornado server. I've then changed the API tests as follows:
h5wasm-api.test.ts now looks for the sample file at support/sample/dist/sample.h5
h5grove-api.test.ts now connects to the h5grove support instance at http://localhost:8888, which serves the sample file from support/sample/dist.
Both support projects are managed with Poetry. I've added pnpm scripts for convenience and documented everything in CONTRIBUTING.md. Concerning the Python version, I've set it to 3.12 with a .python-version file at the root of the monorepo, and I explain how to use pyenv in the contributing guide.
Of course, I've also updated the CI test job with steps to set up Python, install Poetry, create/cache the Poetry environments, create the sample file and start h5grove. It's surprisingly fast; once everything is cached (including the installation of Poetry itself), it adds only a few seconds to the test job, which is awesome.
I've set up two Python projects inside a new
support
folder at the root of the monorepo: one to createsample.h5
and one to start an h5grove tornado server. I've then changed the API tests as follows:h5wasm-api.test.ts
now looks for the sample file atsupport/sample/dist/sample.h5
h5grove-api.test.ts
now connects to the h5grove support instance at http://localhost:8888, which serves the sample file fromsupport/sample/dist
.Both support projects are managed with Poetry. I've added pnpm scripts for convenience and documented everything in
CONTRIBUTING.md
. Concerning the Python version, I've set it to3.12
with a.python-version
file at the root of the monorepo, and I explain how to usepyenv
in the contributing guide.Of course, I've also updated the CI
test
job with steps to set up Python, install Poetry, create/cache the Poetry environments, create the sample file and start h5grove. It's surprisingly fast; once everything is cached (including the installation of Poetry itself), it adds only a few seconds to thetest
job, which is awesome.