summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog.d/2620.breaking.rst3
-rw-r--r--docs/references/keywords.rst1
-rw-r--r--setuptools/command/sdist.py3
-rw-r--r--setuptools/tests/test_egg_info.py3
4 files changed, 5 insertions, 5 deletions
diff --git a/changelog.d/2620.breaking.rst b/changelog.d/2620.breaking.rst
index de91facc..431e7105 100644
--- a/changelog.d/2620.breaking.rst
+++ b/changelog.d/2620.breaking.rst
@@ -1,5 +1,4 @@
If neither ``license_file`` nor ``license_files`` is specified, the ``sdist``
option will now auto-include files that match the following patterns:
``LICEN[CS]E*``, ``COPYING*``, ``NOTICE*``, ``AUTHORS*``.
-This matches the behavior of ``bdist_wheel``.
-Any ``exclude`` in ``MANIFEST.in`` will overwrite it. -- by :user:`cdce8p`
+This matches the behavior of ``bdist_wheel``. -- by :user:`cdce8p`
diff --git a/docs/references/keywords.rst b/docs/references/keywords.rst
index 6485437b..619b2d14 100644
--- a/docs/references/keywords.rst
+++ b/docs/references/keywords.rst
@@ -86,7 +86,6 @@ Keywords
A list of glob patterns for license related files that should be included.
If neither ``license_file`` nor ``license_files`` is specified, this option
defaults to ``LICEN[CS]E*``, ``COPYING*``, ``NOTICE*``, and ``AUTHORS*``.
- Any ``exclude`` specified in ``MANIFEST.in`` will overwrite it.
``keywords``
A list of strings or a comma-separated string providing descriptive
diff --git a/setuptools/command/sdist.py b/setuptools/command/sdist.py
index 278b8ce0..a6ea814a 100644
--- a/setuptools/command/sdist.py
+++ b/setuptools/command/sdist.py
@@ -213,6 +213,9 @@ class sdist(sdist_add_defaults, orig.sdist):
patterns.append(opts['license_file'][1])
if 'license_file' not in opts and 'license_files' not in opts:
+ # Default patterns match the ones wheel uses
+ # See https://wheel.readthedocs.io/en/stable/user_guide.html
+ # -> 'Including license files in the generated wheel file'
patterns = ('LICEN[CS]E*', 'COPYING*', 'NOTICE*', 'AUTHORS*')
for pattern in patterns:
diff --git a/setuptools/tests/test_egg_info.py b/setuptools/tests/test_egg_info.py
index 4751d1b5..80d35774 100644
--- a/setuptools/tests/test_egg_info.py
+++ b/setuptools/tests/test_egg_info.py
@@ -654,8 +654,7 @@ class TestEggInfo:
'LICENSE-XYZ': "XYZ license"
}, ['LICENSE-ABC'], ['LICENSE-XYZ']), # subset is manually excluded
pytest.param({
- 'setup.cfg': DALS("""
- """),
+ 'setup.cfg': "",
'LICENSE-ABC': "ABC license",
'COPYING-ABC': "ABC copying",
'NOTICE-ABC': "ABC notice",