Skip to content

Commit

Permalink
update readme with uv instructions, add uv to pip install task an…
Browse files Browse the repository at this point in the history
…d dev-start
  • Loading branch information
NickAkhmetov committed Dec 18, 2024
1 parent a6122b3 commit ca8d7bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"label": "pip install",
"type": "shell",
"command": "PIP_CONSTRAINT=context/constraints.txt pip install -r context/requirements.txt --use-deprecated=legacy-resolver",
"command": "PIP_CONSTRAINT=context/constraints.txt uv pip install -r context/requirements.txt",
"group": {
"kind": "build",
"isDefault": false
Expand Down
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ All designs are in [Figma](https://www.figma.com/files/team/834568130405102661/H

- `git`: Suggest [installing Apple XCode](https://developer.apple.com/xcode/).
- `python 3.10`
- `uv` (Recommended):
- [Install `uv`](https://docs.astral.sh/uv/getting-started/installation/) using any supported installation method.
- Create a `uv` virtual environment with the appropriate python version via `uv venv --python $(cat .python-version)`.
- Activate the environment with `source .venv/bin/activate`.
- Install locked requirements with `uv pip sync context/requirements.txt` and `uv pip sync context/requirements-dev.txt`.
- MiniConda:
- [installing miniconda](https://docs.conda.io/en/latest/miniconda.html#macosx-installers) and [creating a new conda environment](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-with-commands): `conda create -n portal python=$(cat .python-version)`
- pyenv:
Expand Down
2 changes: 1 addition & 1 deletion etc/dev/dev-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ trap 'jobs -p | xargs kill' EXIT
CONTEXT=context

if [ "$NO_PIP" -lt 1 ] ; then
PIP_CONSTRAINT=$CONTEXT/constraints.txt pip install -r $CONTEXT/requirements.txt > /dev/null --use-deprecated=legacy-resolver
PIP_CONSTRAINT=$CONTEXT/constraints.txt uv pip install -r $CONTEXT/requirements.txt > /dev/null
fi

etc/dev/copy-app-conf.sh
Expand Down

0 comments on commit ca8d7bf

Please sign in to comment.