Skip to content

Commit

Permalink
fix: building a wheel
Browse files Browse the repository at this point in the history
this fixes two issues when building a wheel using pyproject-build.
The first issue
```
ERROR Missing dependencies:
  poetry>=0.12
```
can be resolved by requiring poetry-core over poetry>=0.12

The second issue
```
ModuleNotFoundError: No module named 'poetry.masonry'
```
can be resolved by importing the correct module from poetry.core.

see also https://pypi.org/project/poetry-core/
  • Loading branch information
Conni2461 committed Jul 17, 2024
1 parent 6fb48af commit 5cb3ce3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ mypy = "^0.790"
pytest-cov = "^2.10.1"

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

[tool.pytest.ini_options]
addopts = "--strict-markers"
Expand Down

0 comments on commit 5cb3ce3

Please sign in to comment.