Orchestration for writing files to s3 to power our APIs
This project uses a pip tools style workflow.
Use uv
or pip-tools
.
Commands given using uv
. See uv
equivalence for comparison.
uv venv --prompt . .venv
uv pip sync requirements/dev.txt
pre-commit install
We're using CDK so you need the cdk tooling.
Probably best to use nvm
to manage npm
to manage installing libraries.
Then
nvm use --lts
npm install
uv pip compile
is equivalent topip-compile
uv pip sync
is equivalent topip-sync
uv venv
is equivalent topython -m venv
uv pip compile --generate-hashes --output-file requirements/base.txt requirements/base.in
uv pip compile --generate-hashes --output-file requirements/dev.txt requirements/base.in requirements/dev.in
- Run
uv pip compile --generate-hashes --upgrade --output-file requirements/base.txt requirements/base.in
- Run
uv pip compile --generate-hashes --upgrade-package <pkg-name> --output-file requirements/base.txt requirements/base.in
- Add a dependency to
requirements/base.in
- Run
uv pip compile --generate-hashes --output-file requirements/base.txt requirements/base.in
- Add a dependency to
requirements/dev.in
- Run
uv pip compile --generate-hashes --output-file requirements/dev.txt requirements/base.in requirements/dev.in
AWS_PROFILE=dev-aggregatorapi-dc DC_ENVIRONMENT=development cdk bootstrap
AWS_PROFILE=dev-aggregatorapi-dc DC_ENVIRONMENT=development cdk synth