Commit 4a31168e authored by Mick Koch's avatar Mick Koch

Use an OrderedSet for accumulating license files

parent 648dfe5a
...@@ -5,7 +5,7 @@ import sys ...@@ -5,7 +5,7 @@ import sys
import io import io
import contextlib import contextlib
from setuptools.extern import six from setuptools.extern import six, ordered_set
from .py36compat import sdist_add_defaults from .py36compat import sdist_add_defaults
...@@ -204,7 +204,7 @@ class sdist(sdist_add_defaults, orig.sdist): ...@@ -204,7 +204,7 @@ class sdist(sdist_add_defaults, orig.sdist):
valid paths to 'self.filelist'. valid paths to 'self.filelist'.
""" """
files = set() files = ordered_set.OrderedSet()
opts = self.distribution.get_option_dict('metadata') opts = self.distribution.get_option_dict('metadata')
......
...@@ -409,7 +409,7 @@ class Distribution(_Distribution): ...@@ -409,7 +409,7 @@ class Distribution(_Distribution):
'long_description_content_type': None, 'long_description_content_type': None,
'project_urls': dict, 'project_urls': dict,
'provides_extras': ordered_set.OrderedSet, 'provides_extras': ordered_set.OrderedSet,
'license_files': list, 'license_files': ordered_set.OrderedSet,
} }
_patched_dist = None _patched_dist = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment