From d338f6e4b71475697431d6ccaf5391398d7e0827 Mon Sep 17 00:00:00 2001 From: yuji38kwmt Date: Wed, 3 May 2023 11:21:30 +0900 Subject: [PATCH] update package.py: unique python_classifiers --- src/poetry/core/packages/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poetry/core/packages/package.py b/src/poetry/core/packages/package.py index 0a8399861..dbe4ff222 100644 --- a/src/poetry/core/packages/package.py +++ b/src/poetry/core/packages/package.py @@ -348,7 +348,7 @@ def all_classifiers(self) -> list[str]: # it like this so that 3.10 is sorted after 3.9. sorted_classifiers = [] python_classifiers_inserted = False - for classifier in sorted(set(classifiers)): + for classifier in sorted(set(classifiers) - set(python_classifiers)): if ( not python_classifiers_inserted and classifier > python_classifier_prefix