Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9365e07c
Commit
9365e07c
authored
Apr 26, 2000
by
Greg Ward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Harry Henry Gebel: add 'long_description' to DistributionMetadata.
parent
d4de9b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Lib/distutils/dist.py
Lib/distutils/dist.py
+7
-1
No files found.
Lib/distutils/dist.py
View file @
9365e07c
...
@@ -89,6 +89,8 @@ class Distribution:
...
@@ -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:
...
@@ -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 ----------------------------------------
...
@@ -680,7 +683,10 @@ class DistributionMetadata:
...
@@ -680,7 +683,10 @@ 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__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment