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
367efc25
Kaydet (Commit)
367efc25
authored
Ara 09, 2012
tarafından
Éric Araujo
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
Branch merge
üst
d38c990b
9e06e8d5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
16 deletions
+33
-16
apiref.rst
Doc/distutils/apiref.rst
+3
-0
check.py
Lib/distutils/command/check.py
+3
-0
config.py
Lib/distutils/config.py
+0
-5
test_register.py
Lib/distutils/tests/test_register.py
+22
-11
ACKS
Misc/ACKS
+2
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Doc/distutils/apiref.rst
Dosyayı görüntüle @
367efc25
...
@@ -991,6 +991,9 @@ directories.
...
@@ -991,6 +991,9 @@ directories.
these files is available in answer D2 of the `NFS FAQ page
these files is available in answer D2 of the `NFS FAQ page
<http://nfs.sourceforge.net/#section_d>`_.
<http://nfs.sourceforge.net/#section_d>`_.
.. versionchanged:: 2.7.4
NFS files are ignored.
.. function:: remove_tree(directory[, verbose=0, dry_run=0])
.. function:: remove_tree(directory[, verbose=0, dry_run=0])
...
...
Lib/distutils/command/check.py
Dosyayı görüntüle @
367efc25
...
@@ -26,6 +26,9 @@ try:
...
@@ -26,6 +26,9 @@ try:
def
system_message
(
self
,
level
,
message
,
*
children
,
**
kwargs
):
def
system_message
(
self
,
level
,
message
,
*
children
,
**
kwargs
):
self
.
messages
.
append
((
level
,
message
,
children
,
kwargs
))
self
.
messages
.
append
((
level
,
message
,
children
,
kwargs
))
return
nodes
.
system_message
(
message
,
level
=
level
,
type
=
self
.
levels
[
level
],
*
children
,
**
kwargs
)
HAS_DOCUTILS
=
True
HAS_DOCUTILS
=
True
except
ImportError
:
except
ImportError
:
...
...
Lib/distutils/config.py
Dosyayı görüntüle @
367efc25
...
@@ -47,11 +47,6 @@ class PyPIRCCommand(Command):
...
@@ -47,11 +47,6 @@ class PyPIRCCommand(Command):
f
.
write
(
DEFAULT_PYPIRC
%
(
username
,
password
))
f
.
write
(
DEFAULT_PYPIRC
%
(
username
,
password
))
finally
:
finally
:
f
.
close
()
f
.
close
()
try
:
os
.
chmod
(
rc
,
0600
)
except
OSError
:
# should do something better here
pass
def
_read_pypirc
(
self
):
def
_read_pypirc
(
self
):
"""Reads the .pypirc file."""
"""Reads the .pypirc file."""
...
...
Lib/distutils/tests/test_register.py
Dosyayı görüntüle @
367efc25
# -*- encoding: utf8 -*-
# -*- encoding: utf8 -*-
"""Tests for distutils.command.register."""
"""Tests for distutils.command.register."""
import
sys
import
os
import
os
import
unittest
import
unittest
import
getpass
import
getpass
...
@@ -11,11 +10,14 @@ from test.test_support import check_warnings, run_unittest
...
@@ -11,11 +10,14 @@ from test.test_support import check_warnings, run_unittest
from
distutils.command
import
register
as
register_module
from
distutils.command
import
register
as
register_module
from
distutils.command.register
import
register
from
distutils.command.register
import
register
from
distutils.core
import
Distribution
from
distutils.errors
import
DistutilsSetupError
from
distutils.errors
import
DistutilsSetupError
from
distutils.tests
import
support
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
PYPIRC
,
PyPIRCCommandTestCase
try
:
import
docutils
except
ImportError
:
docutils
=
None
PYPIRC_NOPASSWORD
=
"""
\
PYPIRC_NOPASSWORD
=
"""
\
[distutils]
[distutils]
...
@@ -192,6 +194,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -192,6 +194,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
self
.
assertEqual
(
headers
[
'Content-length'
],
'290'
)
self
.
assertTrue
(
'tarek'
in
req
.
data
)
self
.
assertTrue
(
'tarek'
in
req
.
data
)
@unittest.skipUnless
(
docutils
is
not
None
,
'needs docutils'
)
def
test_strict
(
self
):
def
test_strict
(
self
):
# testing the script option
# testing the script option
# when on, the register command stops if
# when on, the register command stops if
...
@@ -204,13 +207,6 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -204,13 +207,6 @@ class RegisterTestCase(PyPIRCCommandTestCase):
cmd
.
strict
=
1
cmd
.
strict
=
1
self
.
assertRaises
(
DistutilsSetupError
,
cmd
.
run
)
self
.
assertRaises
(
DistutilsSetupError
,
cmd
.
run
)
# we don't test the reSt feature if docutils
# is not installed
try
:
import
docutils
except
ImportError
:
return
# metadata are OK but long_description is broken
# metadata are OK but long_description is broken
metadata
=
{
'url'
:
'xxx'
,
'author'
:
'xxx'
,
metadata
=
{
'url'
:
'xxx'
,
'author'
:
'xxx'
,
'author_email'
:
u'éxéxé'
,
'author_email'
:
u'éxéxé'
,
...
@@ -264,6 +260,21 @@ class RegisterTestCase(PyPIRCCommandTestCase):
...
@@ -264,6 +260,21 @@ class RegisterTestCase(PyPIRCCommandTestCase):
finally
:
finally
:
del
register_module
.
raw_input
del
register_module
.
raw_input
@unittest.skipUnless
(
docutils
is
not
None
,
'needs docutils'
)
def
test_register_invalid_long_description
(
self
):
description
=
':funkie:`str`'
# mimic Sphinx-specific markup
metadata
=
{
'url'
:
'xxx'
,
'author'
:
'xxx'
,
'author_email'
:
'xxx'
,
'name'
:
'xxx'
,
'version'
:
'xxx'
,
'long_description'
:
description
}
cmd
=
self
.
_get_cmd
(
metadata
)
cmd
.
ensure_finalized
()
cmd
.
strict
=
True
inputs
=
RawInputs
(
'2'
,
'tarek'
,
'tarek@ziade.org'
)
register_module
.
raw_input
=
inputs
self
.
addCleanup
(
delattr
,
register_module
,
'raw_input'
)
self
.
assertRaises
(
DistutilsSetupError
,
cmd
.
run
)
def
test_check_metadata_deprecated
(
self
):
def
test_check_metadata_deprecated
(
self
):
# makes sure make_metadata is deprecated
# makes sure make_metadata is deprecated
cmd
=
self
.
_get_cmd
()
cmd
=
self
.
_get_cmd
()
...
...
Misc/ACKS
Dosyayı görüntüle @
367efc25
...
@@ -201,6 +201,7 @@ David Costanzo
...
@@ -201,6 +201,7 @@ David Costanzo
Scott Cotton
Scott Cotton
Greg Couch
Greg Couch
David Cournapeau
David Cournapeau
Julien Courteau
Steve Cousins
Steve Cousins
Alex Coventry
Alex Coventry
Matthew Dixon Cowles
Matthew Dixon Cowles
...
@@ -572,6 +573,7 @@ Inyeol Lee
...
@@ -572,6 +573,7 @@ Inyeol Lee
Thomas Lee
Thomas Lee
Christopher Lee
Christopher Lee
Luc Lefebvre
Luc Lefebvre
Pierre Paul Lefebvre
Glyph Lefkowitz
Glyph Lefkowitz
Vincent Legoll
Vincent Legoll
Kip Lehman
Kip Lehman
...
...
Misc/NEWS
Dosyayı görüntüle @
367efc25
...
@@ -162,6 +162,9 @@ Library
...
@@ -162,6 +162,9 @@ Library
- Issue #16628: Fix a memory leak in ctypes.resize().
- Issue #16628: Fix a memory leak in ctypes.resize().
- Issue #13614: Fix setup.py register failure with invalid rst in description.
Patch by Julien Courteau and Pierre Paul Lefebvre.
- Issue #10182: The re module doesn'
t
truncate
indices
to
32
bits
anymore
.
- Issue #10182: The re module doesn'
t
truncate
indices
to
32
bits
anymore
.
Patch
by
Serhiy
Storchaka
.
Patch
by
Serhiy
Storchaka
.
...
...
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