Skip to content

Commit

Permalink
Merge pull request #154 from acsone/fix-poetry
Browse files Browse the repository at this point in the history
Fix poetry dependency
  • Loading branch information
sbidoul authored Sep 4, 2022
2 parents 0fc8013 + 0b6dfc4 commit 923b2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Python Poetry Action
uses: abatilo/actions-poetry@v2.1.0
- name: generate cache key PY
run:
echo "PY=$((python -VV; pip freeze; poetry --version) | sha256sum | cut -d' '
Expand All @@ -54,9 +52,7 @@ jobs:
key: >-
cache ${{ secrets.CACHE_DATE }} ${{ env.PY }} ${{ runner.os }} ${{
hashFiles('pyproject.toml') }} ${{ hashFiles('poetry.lock') }}
# HACK python-poetry/poetry#3010 and 3336 workaround for GitHub actions
# and poetry 1.1.2 throwing 'Incorrectly nested style tag found.'
- run: poetry config experimental.new-installer false
- run: pipx install poetry
- run: poetry install
# Let tests issue git commits
- run: git config --global user.name CI
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ pre-commit = "^2.15.0"
pytest-xdist = "^2.4.0"

[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"

0 comments on commit 923b2e5

Please sign in to comment.