Skip to content

Commit 8e988f1

Browse files
committed
Update Poetry 2.1.1
1 parent 9014228 commit 8e988f1

File tree

6 files changed

+178
-43
lines changed

6 files changed

+178
-43
lines changed

.github/workflows/build-docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
- name: Set up poetry
2424
uses: Gr1N/setup-poetry@v9
25+
with:
26+
poetry-version: "2.1.1"
2527

2628
- name: Configure poetry
2729
run: poetry config virtualenvs.in-project true

.github/workflows/python-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424

2525
- name: Set up poetry
2626
uses: Gr1N/setup-poetry@v9
27+
with:
28+
poetry-version: "2.1.1"
2729

2830
- name: Build
2931
run: poetry build

.github/workflows/python-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030

3131
- name: Set up poetry
3232
uses: Gr1N/setup-poetry@v9
33+
with:
34+
poetry-version: "2.1.1"
3335

3436
- name: Configure poetry
3537
run: poetry config virtualenvs.in-project true

.readthedocs.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,26 @@ build:
1414
tools:
1515
python: "3.12"
1616
jobs:
17-
post_create_environment:
17+
pre_create_environment:
1818
# Install poetry
19-
- pip install poetry==1.7.1
20-
# Tell poetry to not use a virtual environment
19+
- asdf plugin-add poetry
20+
- asdf install poetry 2.1.1
21+
- asdf global poetry 2.1.1
22+
# Verify Poetry configuration
2123
- poetry config virtualenvs.create false
24+
- poetry config --list
25+
post_create_environment:
26+
# Use existing environment
27+
- . $READTHEDOCS_VIRTUALENV_PATH/bin/activate
28+
# Verify Poetry environment
29+
- poetry env info
2230
post_install:
31+
- which python
32+
- poetry run which python
2333
# Install dependencies
2434
- poetry install --with docs
35+
# Verify installed dependencies
36+
- poetry run which python
37+
- poetry run python -m pip freeze
38+
- which python
39+
- python -m pip freeze

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ reports-cleanup:
3232
test-cleanup: test-cache-cleanup reports-cleanup
3333

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

3737
docs-cleanup:
38-
@rm -rf docs/_build
38+
@rm -rf docs_build
3939

4040
cleanup: dist-cleanup test-cleanup
4141

0 commit comments

Comments
 (0)