Skip to content

Commit

Permalink
update package.py: unique python_classifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
yuji38kwmt committed May 3, 2023
1 parent f314393 commit d338f6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/core/packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d338f6e

Please sign in to comment.