summaryrefslogtreecommitdiff
path: root/pbr/packaging.py
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2018-07-30 12:33:20 -0700
committerStephen Finucane <sfinucan@redhat.com>2018-09-24 13:05:35 +0100
commita34629a956e614f60932e664801393cf1200438d (patch)
treea3fa7d5d4269dd58334da9d911b3625875e813dd /pbr/packaging.py
parentdac6f829af0fcca3586d7e953c7020692ae700c0 (diff)
downloadpbr-a34629a956e614f60932e664801393cf1200438d.tar.gz
Add an option to skip generating RELEASENOTES.rst
This is comparable to the existing skip_authors and skip_changelog options. Change-Id: Icfefb20fb3c9b2e983e56f6e5440119d4dce2d3f Co-Authored-By: Stephen Finucane <stephenfin@redhat.com>
Diffstat (limited to 'pbr/packaging.py')
-rw-r--r--pbr/packaging.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index bb0ec6b..210fe95 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -577,6 +577,13 @@ class LocalSDist(sdist.sdist):
if hasattr(self, '_has_reno'):
return self._has_reno
+ option_dict = self.distribution.get_option_dict('pbr')
+ should_skip = options.get_boolean_option(option_dict, 'skip_reno',
+ 'SKIP_GENERATE_RENO')
+ if should_skip:
+ self._has_reno = False
+ return False
+
try:
# versions of reno witout this module will not have the required
# feature, hence the import