From b3bdb6a06989967031007cb31a57a2773fdd52c6 Mon Sep 17 00:00:00 2001 From: David Hotham Date: Thu, 5 Jan 2023 19:49:55 +0000 Subject: [PATCH] Package.platform is unused --- src/poetry/core/factory.py | 3 --- src/poetry/core/packages/package.py | 1 - 2 files changed, 4 deletions(-) diff --git a/src/poetry/core/factory.py b/src/poetry/core/factory.py index 0a776659c..daa6a96d0 100644 --- a/src/poetry/core/factory.py +++ b/src/poetry/core/factory.py @@ -152,9 +152,6 @@ def configure_package( else: package.readmes = tuple(root / readme for readme in config["readme"]) - if "platform" in config: - package.platform = config["platform"] - if "dependencies" in config: cls._add_package_group_dependencies( package=package, group=MAIN_GROUP, dependencies=config["dependencies"] diff --git a/src/poetry/core/packages/package.py b/src/poetry/core/packages/package.py index 1651ca6b6..3b50b2896 100644 --- a/src/poetry/core/packages/package.py +++ b/src/poetry/core/packages/package.py @@ -108,7 +108,6 @@ def __init__( self._python_constraint = parse_constraint("*") self._python_marker: BaseMarker = AnyMarker() - self.platform = None self.marker: BaseMarker = AnyMarker() self.root_dir: Path | None = None