Harry Henry Gebel: add 'long_description' to DistributionMetadata.
This commit is contained in:
parent
839d532e50
commit
e5a584e865
|
@ -89,6 +89,8 @@ class Distribution:
|
||||||
"alias for --licence"),
|
"alias for --licence"),
|
||||||
('description', None,
|
('description', None,
|
||||||
"print the package description"),
|
"print the package description"),
|
||||||
|
('long-description', None,
|
||||||
|
"print the long package description"),
|
||||||
]
|
]
|
||||||
display_option_names = map(lambda x: string.translate(x[0], longopt_xlate),
|
display_option_names = map(lambda x: string.translate(x[0], longopt_xlate),
|
||||||
display_options)
|
display_options)
|
||||||
|
@ -638,6 +640,7 @@ class DistributionMetadata:
|
||||||
self.url = None
|
self.url = None
|
||||||
self.licence = None
|
self.licence = None
|
||||||
self.description = None
|
self.description = None
|
||||||
|
self.long_description = None
|
||||||
|
|
||||||
# -- Metadata query methods ----------------------------------------
|
# -- Metadata query methods ----------------------------------------
|
||||||
|
|
||||||
|
@ -681,6 +684,9 @@ class DistributionMetadata:
|
||||||
def get_description(self):
|
def get_description(self):
|
||||||
return self.description or "UNKNOWN"
|
return self.description or "UNKNOWN"
|
||||||
|
|
||||||
|
def get_long_description(self):
|
||||||
|
return self.long_description or "UNKNOWN"
|
||||||
|
|
||||||
# class DistributionMetadata
|
# class DistributionMetadata
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue