Skip to content

Commit 6480174

Browse files
committed
setup.py: Require setuptools >=58.5.0
.. so that "python3 setup.py sdist" ends up including these four files in the resulting distribution source tarball: - /third_party/yapf_third_party/yapf_diff/LICENSE - /third_party/yapf_third_party/_ylib2to3/Grammar.txt - /third_party/yapf_third_party/_ylib2to3/LICENSE - /third_party/yapf_third_party/_ylib2to3/PatternGrammar.txt
1 parent 87fb70e commit 6480174

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def run(self):
9494
},
9595
include_package_data=True,
9696
python_requires='>=3.7',
97+
setup_requires=[
98+
'setuptools>=58.5.0', # for include_package_data fix (issue #1107)
99+
],
97100
install_requires=[
98101
'importlib-metadata>=6.6.0',
99102
'platformdirs>=3.5.1',

0 commit comments

Comments
 (0)