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
f7f58f8d
Kaydet (Commit)
f7f58f8d
authored
Ock 02, 2014
tarafından
Donald Stufft
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update pip to the released 1.5
üst
c70d4f4d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
__init__.py
Lib/ensurepip/__init__.py
+2
-8
pip-1.5-py2.py3-none-any.whl
Lib/ensurepip/_bundled/pip-1.5-py2.py3-none-any.whl
+0
-0
test_ensurepip.py
Lib/test/test_ensurepip.py
+8
-8
No files found.
Lib/ensurepip/__init__.py
Dosyayı görüntüle @
f7f58f8d
...
...
@@ -4,15 +4,13 @@ import pkgutil
import
sys
import
tempfile
# TODO: Remove the --pre flag when a pip 1.5 final copy is available
__all__
=
[
"version"
,
"bootstrap"
]
_SETUPTOOLS_VERSION
=
"2.0.2"
_PIP_VERSION
=
"1.5
rc4
"
_PIP_VERSION
=
"1.5"
# pip currently requires ssl support, so we try to provide a nicer
# error message when that is missing (http://bugs.python.org/issue19744)
...
...
@@ -102,11 +100,7 @@ def bootstrap(*, root=None, upgrade=False, user=False,
additional_paths
.
append
(
os
.
path
.
join
(
tmpdir
,
wheel_name
))
# Construct the arguments to be passed to the pip command
args
=
[
"install"
,
"--no-index"
,
"--find-links"
,
tmpdir
,
# Temporary until pip 1.5 is final
"--pre"
,
]
args
=
[
"install"
,
"--no-index"
,
"--find-links"
,
tmpdir
]
if
root
:
args
+=
[
"--root"
,
root
]
if
upgrade
:
...
...
Lib/ensurepip/_bundled/pip-1.5
rc4
-py2.py3-none-any.whl
→
Lib/ensurepip/_bundled/pip-1.5-py2.py3-none-any.whl
Dosyayı görüntüle @
f7f58f8d
This diff was suppressed by a .gitattributes entry.
Lib/test/test_ensurepip.py
Dosyayı görüntüle @
f7f58f8d
...
...
@@ -52,7 +52,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"
--pre"
,
"
setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -67,7 +67,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"--
pre"
,
"--
root"
,
"/foo/bar/"
,
unittest
.
mock
.
ANY
,
"--root"
,
"/foo/bar/"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
...
...
@@ -80,7 +80,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"--
pre"
,
"--
user"
,
"setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"--user"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -92,7 +92,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"--
pre"
,
"--
upgrade"
,
"setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"--upgrade"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -104,7 +104,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"-
-pre"
,
"-
v"
,
"setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"-v"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -116,7 +116,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"-
-pre"
,
"-
vv"
,
"setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"-vv"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -128,7 +128,7 @@ class TestBootstrap(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"-
-pre"
,
"-
vvv"
,
"setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"-vvv"
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
@@ -286,7 +286,7 @@ class TestBootstrappingMainFunction(EnsurepipMixin, unittest.TestCase):
self
.
run_pip
.
assert_called_once_with
(
[
"install"
,
"--no-index"
,
"--find-links"
,
unittest
.
mock
.
ANY
,
"
--pre"
,
"
setuptools"
,
"pip"
,
unittest
.
mock
.
ANY
,
"setuptools"
,
"pip"
,
],
unittest
.
mock
.
ANY
,
)
...
...
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