Skip to content

Commit

Permalink
Update Poetry 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
p1c2u committed Mar 9, 2025
1 parent 9014228 commit 8bd419b
Show file tree
Hide file tree
Showing 6 changed files with 165 additions and 47 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:

- name: Set up poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "2.1.1"

- name: Configure poetry
run: poetry config virtualenvs.in-project true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:

- name: Set up poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "2.1.1"

- name: Build
run: poetry build
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:

- name: Set up poetry
uses: Gr1N/setup-poetry@v9
with:
poetry-version: "2.1.1"

- name: Configure poetry
run: poetry config virtualenvs.in-project true
Expand Down
12 changes: 5 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@ build:
tools:
python: "3.12"
jobs:
post_create_environment:
# Install poetry
- pip install poetry==1.7.1
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_system_dependencies:
- asdf plugin-add poetry
- asdf install poetry 2.1.1
- asdf global poetry 2.1.1
post_install:
# Install dependencies
- poetry install --with docs
- VIRTUAL_ENV=$READTHEDOCS_VIRTUALENV_PATH poetry install --no-interaction --with docs
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ reports-cleanup:
test-cleanup: test-cache-cleanup reports-cleanup

docs-html:
sphinx-build -b html docs docs/_build
python -m mkdocs build --clean --site-dir docs_build --config-file mkdocs.yml

docs-cleanup:
@rm -rf docs/_build
@rm -rf docs_build

cleanup: dist-cleanup test-cleanup

Expand Down
Loading

0 comments on commit 8bd419b

Please sign in to comment.