Skip to content

Commit

Permalink
Migrate from poetry install to poetry sync
Browse files Browse the repository at this point in the history
  • Loading branch information
johnthagen committed Jan 12, 2025
1 parent be3ebf2 commit 30cf97c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
- name: Install Nox and doc dependencies
run: poetry install --only nox,docs
run: poetry sync --only nox,docs
- name: Publish Docs
run: poetry run nox -s docs_github_pages
4 changes: 2 additions & 2 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# https://github.com/actions/setup-python#caching-packages-dependencies
cache: poetry
- name: Install Nox
run: poetry install --only nox
run: poetry sync --only nox
- name: Test with Nox
run: poetry run nox -s test-${{ matrix.python-version }}
quality:
Expand All @@ -45,7 +45,7 @@ jobs:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
- name: Install Nox and group dependencies
run: poetry install --only nox,${{ matrix.job.poetry-groups }}
run: poetry sync --only nox,${{ matrix.job.poetry-groups }}
- name: Test with Nox
run: poetry run nox -s ${{ matrix.job.nox-session }}
poetry-check:
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
COPY pyproject.toml poetry.lock ./

# Don't install the package itself with Poetry because it will install it as an editable install.
# TODO: Improve this when non-editable `poetry install` is supported in Poetry.
# https://github.com/python-poetry/poetry/issues/1382
RUN poetry install --only main --no-root
RUN poetry sync --only main --no-root

# Copy in source files.
COPY README.md ./
Expand Down

0 comments on commit 30cf97c

Please sign in to comment.