From 1a84fb0c7044d7f1123a39d6c66737a5769fe15b Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Tue, 14 Jul 2020 00:23:41 +0200 Subject: [PATCH] Fix default value for build.generate-setup-file --- poetry/core/masonry/builders/sdist.py | 2 +- tests/masonry/builders/fixtures/disable_setup_py/pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/poetry/core/masonry/builders/sdist.py b/poetry/core/masonry/builders/sdist.py index f1e5b2afb..479174509 100644 --- a/poetry/core/masonry/builders/sdist.py +++ b/poetry/core/masonry/builders/sdist.py @@ -89,7 +89,7 @@ def build(self, target_dir=None): # type: (Path) -> Path else: tar.addfile(tar_info) # Symlinks & ? - if not self._poetry.package.build_config.get("generate-setup-file", False): + if self._poetry.package.build_config.get("generate-setup-file", True): setup = self.build_setup() tar_info = tarfile.TarInfo(pjoin(tar_dir, "setup.py")) tar_info.size = len(setup) diff --git a/tests/masonry/builders/fixtures/disable_setup_py/pyproject.toml b/tests/masonry/builders/fixtures/disable_setup_py/pyproject.toml index efc4c8baf..372501ff9 100644 --- a/tests/masonry/builders/fixtures/disable_setup_py/pyproject.toml +++ b/tests/masonry/builders/fixtures/disable_setup_py/pyproject.toml @@ -21,7 +21,7 @@ classifiers = [ ] [tool.poetry.build] -generate-setup-file = true +generate-setup-file = false # Requirements [tool.poetry.dependencies]