Commit 3dc5ae56 authored by Stephen Finucane's avatar Stephen Finucane

Add docstring from LocalManifestMaker.add_defaults

A not-so-recent change to setuptools [1] has resulted in the inclusion
of a docstring from distutils that uses broken rST.

  docstring of pbr.packaging.LocalManifestMaker.add_defaults:11:Definition
  list ends without a blank line; unexpected unindent.

Resolve the issue by simply redefining the docstring.

[1] https://github.com/pypa/setuptools/compare/252ee6f...f1cf491f
[2] https://github.com/python/cpython/blob/3.4/Lib/distutils/command/sdist.py#L217-L229

Change-Id: I84b5097bc31af601061a77dfea9d6a6f38b018cc
Signed-off-by: 's avatarStephen Finucane <sfinucan@redhat.com>
parent 73234c84
......@@ -488,6 +488,15 @@ class LocalManifestMaker(egg_info.manifest_maker):
self.filelist.process_template_line(template_line)
def add_defaults(self):
"""Add all the default files to self.filelist:
Extends the functionality provided by distutils to also included
additional sane defaults, such as the ``AUTHORS`` and ``ChangeLog``
files generated by *pbr*.
Warns if (``README`` or ``README.txt``) or ``setup.py`` are missing;
everything else is optional.
"""
option_dict = self.distribution.get_option_dict('pbr')
sdist.sdist.add_defaults(self)
......
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