Skip to content

Commit

Permalink
poetry.file -> poetry.pyproject_path
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby authored and radoering committed Apr 3, 2023
1 parent d64457b commit 3469365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/poetry/core/masonry/builders/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def __init__(

self._poetry = poetry
self._package = poetry.package
self._path: Path = poetry.file.parent
self._path: Path = poetry.pyproject_path.parent
self._excluded_files: set[str] | None = None
self._executable = Path(executable or sys.executable)

Expand Down
2 changes: 1 addition & 1 deletion src/poetry/core/poetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def pyproject(self) -> PyProjectTOML:
return self._pyproject

@property
def file(self) -> Path:
def pyproject_path(self) -> Path:
return self._pyproject.file

@property
Expand Down
2 changes: 1 addition & 1 deletion tests/masonry/builders/test_sdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def test_setup_py_context() -> None:

builder = SdistBuilder(poetry)

project_setup_py = poetry.file.parent / "setup.py"
project_setup_py = poetry.pyproject_path.parent / "setup.py"

assert not project_setup_py.exists()

Expand Down

0 comments on commit 3469365

Please sign in to comment.