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 b929712
Show file tree
Hide file tree
Showing 6 changed files with 177 additions and 43 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
20 changes: 17 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,25 @@ 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
- asdf plugin-add poetry
- asdf install poetry 2.1.1
- asdf global poetry 2.1.1
# Verify Poetry configuration
- poetry config virtualenvs.create false
- poetry config --list
post_create_environment:
# Use existing environment
- . $READTHEDOCS_VIRTUALENV_PATH/bin/activate
# Verify Poetry environment
- poetry env info
post_install:
- which python
- poetry run which python
# Install dependencies
- poetry install --with docs
# Verify installed dependencies
- poetry run which python
- poetry run python -m pip freeze
- python -m pip freeze
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 b929712

Please sign in to comment.