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 5845cef
Show file tree
Hide file tree
Showing 6 changed files with 176 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
23 changes: 16 additions & 7 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,20 @@ build:
tools:
python: "3.12"
jobs:
post_create_environment:
pre_create_environment:
# Install poetry
- pip install poetry==1.7.1
# Tell poetry to not use a virtual environment
- poetry config virtualenvs.create false
post_install:
# Install dependencies
- poetry install --with docs
- asdf plugin-add poetry
- asdf install poetry 2.1.1
- asdf global poetry 2.1.1
# Verify Poetry configuration
- poetry config --list
create_environment:
- poetry env use python
post_create_environment:
- poetry env info
install:
- poetry install --no-interaction --with docs
# pre_build:
# - cat mkdocs.yml
build:
- poetry run mkdocs build --clean --site-dir $READTHEDOCS_OUTPUT/html --config-file mkdocs.yml
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 5845cef

Please sign in to comment.