Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e5a584e8
Kaydet (Commit)
e5a584e8
authored
Nis 26, 2000
tarafından
Greg Ward
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Harry Henry Gebel: add 'long_description' to DistributionMetadata.
üst
839d532e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
dist.py
Lib/distutils/dist.py
+7
-1
No files found.
Lib/distutils/dist.py
Dosyayı görüntüle @
e5a584e8
...
@@ -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