Skip to content

Commit

Permalink
chore: update deps (#188)
Browse files Browse the repository at this point in the history
* chore: update deps

* feat: remove custom cmd

* chore: bump deps

* feat: assign to var

* disable again
  • Loading branch information
cofin authored Dec 21, 2024
1 parent 9894286 commit 00be067
Show file tree
Hide file tree
Showing 6 changed files with 570 additions and 1,085 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.8.2
rev: v0.8.4
hooks:
- id: ruff
args:
Expand Down
8 changes: 4 additions & 4 deletions nixpacks.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ providers = ['python', 'node'] # force python as the only provider, otherwise ra
# set up some variables to minimize annoyance
[variables]
LITESTAR_SKIP_NODEENV_INSTALL = 'true' # skip using nodeenv. nix handles that for us.
NIXPACKS_UV_VERSION = '0.5.10' # set uv version to install
NIXPACKS_UV_VERSION = '0.5.11' # set uv version to install
NIXPACKS_PYTHON_VERSION = '3.12' # set python version to install
NPM_CONFIG_FUND = 'false' # the fund notification is is also pretty useless in a production environment
NPM_CONFIG_UPDATE_NOTIFIER = 'false' # the node update notification is relatively useless in a production environment
Expand All @@ -14,9 +14,9 @@ PIP_DISABLE_PIP_VERSION_CHECK = '1' # the pip update notification is relative
nixPkgs = ['...'] # add nodejs since it is needed to build the frontend

[phases.install]
cmds = [
'python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -U mypy cython setuptools uv==NIXPACKS_UV_VERSION && uv sync --frozen --no-dev',
] # custom install command allows for setting uv version above
# cmds = [
# 'python -m venv --copies /opt/venv && . /opt/venv/bin/activate && pip install -U mypy cython setuptools uv==$NIXPACKS_UV_VERSION && uv sync --frozen --no-dev',
# ] # custom install command allows for setting uv version above

[start]
cmd = '/opt/venv/bin/app database upgrade --no-prompt && /opt/venv/bin/app run --wc 2 --host 0.0.0.0 --port $PORT'
Loading

0 comments on commit 00be067

Please sign in to comment.