Skip to content

Commit c115710

Browse files
yuji38kwmtradoering
authored andcommitted
update package.py: unique python_classifiers
1 parent c87a764 commit c115710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/poetry/core/packages/package.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def all_classifiers(self) -> list[str]:
348348
# it like this so that 3.10 is sorted after 3.9.
349349
sorted_classifiers = []
350350
python_classifiers_inserted = False
351-
for classifier in sorted(set(classifiers)):
351+
for classifier in sorted(set(classifiers) - set(python_classifiers)):
352352
if (
353353
not python_classifiers_inserted
354354
and classifier > python_classifier_prefix

0 commit comments

Comments
 (0)