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
188d85f4
Kaydet (Commit)
188d85f4
authored
Şub 19, 2003
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Patch #683939] Add download_url field to metadata
üst
23c98c5f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
core.py
Lib/distutils/core.py
+1
-1
dist.py
Lib/distutils/dist.py
+8
-1
No files found.
Lib/distutils/core.py
Dosyayı görüntüle @
188d85f4
...
...
@@ -47,7 +47,7 @@ setup_keywords = ('distclass', 'script_name', 'script_args', 'options',
'name'
,
'version'
,
'author'
,
'author_email'
,
'maintainer'
,
'maintainer_email'
,
'url'
,
'license'
,
'description'
,
'long_description'
,
'keywords'
,
'platforms'
,
'classifiers'
)
'platforms'
,
'classifiers'
,
'download_url'
)
# Legal keyword arguments for the Extension constructor
extension_keywords
=
(
'name'
,
'sources'
,
'include_dirs'
,
...
...
Lib/distutils/dist.py
Dosyayı görüntüle @
188d85f4
...
...
@@ -966,7 +966,8 @@ class DistributionMetadata:
"maintainer"
,
"maintainer_email"
,
"url"
,
"license"
,
"description"
,
"long_description"
,
"keywords"
,
"platforms"
,
"fullname"
,
"contact"
,
"contact_email"
,
"licence"
,
"classifiers"
)
"contact_email"
,
"licence"
,
"classifiers"
,
"download_url"
)
def
__init__
(
self
):
self
.
name
=
None
...
...
@@ -982,6 +983,7 @@ class DistributionMetadata:
self
.
keywords
=
None
self
.
platforms
=
None
self
.
classifiers
=
None
self
.
download_url
=
None
def
write_pkg_info
(
self
,
base_dir
):
"""Write the PKG-INFO file into the release tree.
...
...
@@ -997,6 +999,8 @@ class DistributionMetadata:
pkg_info
.
write
(
'Author:
%
s
\n
'
%
self
.
get_contact
()
)
pkg_info
.
write
(
'Author-email:
%
s
\n
'
%
self
.
get_contact_email
()
)
pkg_info
.
write
(
'License:
%
s
\n
'
%
self
.
get_license
()
)
if
self
.
download_url
:
pkg_info
.
write
(
'Download-URL:
%
s
\n
'
%
self
.
download_url
)
long_desc
=
rfc822_escape
(
self
.
get_long_description
()
)
pkg_info
.
write
(
'Description:
%
s
\n
'
%
long_desc
)
...
...
@@ -1070,6 +1074,9 @@ class DistributionMetadata:
def
get_classifiers
(
self
):
return
self
.
classifiers
or
[]
def
get_download_url
(
self
):
return
self
.
download_url
or
"UNKNOWN"
# class DistributionMetadata
...
...
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