File tree Expand file tree Collapse file tree 4 files changed +11
-9
lines changed
Expand file tree Collapse file tree 4 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 5656
5757 - run : |
5858 uv lock --check
59- uv sync --locked
59+ uv sync
6060 uv pip list
6161
6262 - run : make lint test
@@ -102,7 +102,7 @@ jobs:
102102 with :
103103 registry : ghcr.io
104104 username : ${{ github.repository_owner }}
105- password : ${{ secrets.GITHUB_TOKEN }}
105+ password : ${{ github.token }}
106106
107107 - if : ${{ github.event_name == 'push' || github.ref_name == github.event.repository.default_branch }}
108108 uses : docker/build-push-action@1dc73863535b631f98b2378be8619f83b136f4a0 # v6
Original file line number Diff line number Diff line change 11rules :
22 quoted-strings :
33 required : only-when-needed
4- extra-allowed : ["{|}"]
4+ extra-allowed : ["{|}? "]
55 key-duplicates : {}
66 octal-values :
77 forbid-implicit-octal : true
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ ARG VIRTUAL_ENV=${APP_HOME}/.venv
1818ENV PATH=${VIRTUAL_ENV}/bin:${PATH} \
1919 PYTHONFAULTHANDLER=1 \
2020 PYTHONUNBUFFERED=1 \
21+ UV_LOCKED=1 \
22+ UV_NO_SYNC=1 \
23+ UV_PYTHON_DOWNLOADS=manual \
2124 UV_PYTHON_INSTALL_DIR=/opt \
2225 VIRTUAL_ENV=${VIRTUAL_ENV}
2326
@@ -45,14 +48,13 @@ RUN apt-get update && \
4548 && rm -rf /var/lib/apt/lists/*
4649
4750ARG PYTHONDONTWRITEBYTECODE=1
48- ENV UV_LOCKED=1 \
49- UV_NO_CACHE=1 \
50- UV_NO_SYNC=1
51+ ARG UV_NO_CACHE=1
5152
5253# set up python
5354COPY --from=ghcr.io/astral-sh/uv:latest@sha256:83285c39ee68ed64708fca1495c2d0aad084e9ac02a8910f5180b8e36bcf803a /uv /uvx /bin/
5455COPY .python-version pyproject.toml uv.lock ./
55- RUN uv sync --no-default-groups --no-install-project && \
56+ RUN uv python install && \
57+ uv sync --no-default-groups --no-install-project && \
5658 chown -R "${USER}:${USER}" "${VIRTUAL_ENV}" && \
5759 chown -R "${USER}:${USER}" "${APP_HOME}" && \
5860 uv pip list
@@ -103,7 +105,7 @@ COPY main.py main.py
103105RUN pyinstaller --hidden-import example_app.main --onefile main.py && \
104106 staticx --strip dist/main /main
105107
106- USER user
108+ USER ${USER}
107109ENTRYPOINT [ "/dist/main" ]
108110
109111# #
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66name = " example-app"
77version = " 0.1.0"
88description = " Python example app incorporating best practices"
9- authors = [{ name = " yxtay" , email = " wyextay@gmail .com" }]
9+ authors = [{
name =
" yxtay" ,
email =
" [email protected] .com" }]
1010license = " MIT"
1111requires-python = " ~=3.11"
1212dependencies = [
You can’t perform that action at this time.
0 commit comments