1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
Commit graph

114 commits

Author SHA1 Message Date
Alex Gaynor
e799283156 fixed a few flake8 errors 2016-01-01 15:47:31 -05:00
Alex Gaynor
37abf47dce move where the deprecation is so its in pretty colors 2016-01-01 14:33:36 -05:00
Erik Rose
f38fc903f2 Obey --require-hashes option in requirements files.
Removed the mention of "package index options" in the docs, because they don't all fit that category anymore. Not even --no-binary and --only-binary do; they're "install options".
2015-10-21 16:02:47 -04:00
Mathew Jennings
417f79d8b8 Add pip download command and deprecate pip install --download.
`pip download` has the same functionality as `pip install --download`,
and the behavior of `pip install --download` is preserved with a deprecation
warning.  `pip install --download` will be removed in pip version 10.
2015-09-13 17:41:00 -04:00
Donald Stufft
6afc718307 Remove items slated for removal in pip 8.0 2015-09-03 10:55:11 -04:00
Xavier Fernandez
b0cc9da953 basecommand: use logging exc_info parameter 2015-07-16 21:21:41 +02:00
Xavier Fernandez
7cd1586d27 Check for new pip version after run call
If a pip install --update was performed, the version check should not
find anything. Closes #2829
2015-07-03 17:09:12 +02:00
Robert Collins
bb0b429a49 Issue #2731: Constraints files.
This adds constraints files. Like requirements files constraints files
control what version of a package is installed, but unlike
requirements files this doesn't itself choose to install the package.
This allows things that aren't explicitly desired to be constrained if
and only if they are installed.
2015-06-03 06:38:33 +12:00
Donald Stufft
3569a9b060 Remove the implicit debug log 2015-05-21 18:01:40 -04:00
Marcus Smith
7725cdbe2c - remove overlapping variables from populate_requirement_set
- warn about not specifying requirements, when they're not specified,
  not when the RequirementSet happens to turn up empty
2015-04-28 16:00:38 -07:00
Donald Stufft
33764609eb Merge pull request #2715 from citruspi/Error-Log-Level-Flag
Differentiate Between Quiet Flag Counts
2015-04-22 20:46:55 -04:00
Mihir Singh
04ac5270c3 Mapped three or more quiet flags to the critical log level 2015-04-22 18:38:45 -05:00
Mihir Singh
4b6bdf0210 Set the log level to ERROR when two or more quiet flags are passed
Fixes pypa/pip#2670
2015-04-22 17:56:34 -05:00
Robert Collins
ec46a3bac4 Replace wheel cache cache_dir with an object.
Wheel cache lookups become more complex when we wish to allow binary
blacklisting. Rather than passing more parameters around, replace
cache_root with wheel_cache, and create a wheel cache in all the
relevant command entry points.
2015-04-23 10:03:50 +12:00
Robert Collins
4926409340 Issue #2563: Read cached wheels from ~/.cache/pip
This won't put wheels into that directory, but will read them if they
are there. --no-cache-dir will disable reading such wheels.
2015-04-13 18:33:07 +12:00
Donald Stufft
f41fee6a21 Reduce duplicate code in wheel and install commands.
(cherry picked from commit 9ed1dd75fc1d2c7a747066a90cd897db441319e0)
2015-04-07 08:36:14 -04:00
Donald Stufft
a88bc0de73 Send log messages >= logging.WARNING to stderr 2015-04-06 23:11:16 -04:00
Donald Stufft
61123b770e Be explicit that -H is for sudo 2015-02-24 07:59:48 -05:00
Donald Stufft
0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Donald Stufft
adb7a3c83f Remove some other places we called os.geteuid() 2015-01-03 03:35:38 -05:00
Donald Stufft
4f40530493 Warn if the cache/log directory is not owned by the current user 2014-12-30 19:49:08 -05:00
Donald Stufft
4a6b32e558 Imply --disable-pip-version-check when --no-index is used 2014-12-23 19:16:08 -05:00
Donald Stufft
751cc45601 Use a smaller timeout by default on the pip version check 2014-12-23 19:10:53 -05:00
Donald Stufft
0adf6fabef Don't retry when attempting to check the pip version 2014-12-23 19:08:09 -05:00
Donald Stufft
a285747d3a Revert "Add option --no-check-certificate to skip ssl cert verification"
This reverts commit 9a9d7acefe.

Conflicts:
	pip/cmdoptions.py
2014-12-20 17:29:19 -05:00
Donald Stufft
d851bcf7d6 Use the --trusted-host argument to disable TLS verification as well 2014-12-20 17:27:11 -05:00
Donald Stufft
90b1179b76 Enable --isolated flag which will turn on an isolated mode for pip 2014-11-23 21:26:40 -05:00
Donald Stufft
c3df28c774 Fix for Python 3.x, Refactor, and small changes 2014-09-18 07:44:02 -04:00
Richard Jones
500a987ee4 Implement a pip self-check with to determine when it's out of date.
Initial work cribbed from PR 1214.
2014-09-18 17:31:57 +10:00
Donald Stufft
0e96b1af4b Switch versioning from X.Y.Z to X.Y dropping the leading 1 2014-09-17 22:05:31 -04:00
Donald Stufft
9b174aee79 Switch to using six.StringIO instead of pip.compat.StringIO 2014-09-11 15:25:23 -04:00
Donald Stufft
8e0ec8d293 Move appdirs from pip.appdirs to pip.utils.appdirs 2014-09-10 10:40:22 -04:00
Donald Stufft
767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Donald Stufft
800af158cd Merge pull request #2012 from remram44/unicode-log_v3
Fix attempt for unicode bug #1137 (v3)
2014-09-10 07:31:59 -04:00
Remi Rampin
9626970115 Fix for unicode in the log 2014-09-01 21:47:05 -04:00
Donald Stufft
9a23d4ed11 Fix --no-cache-dir 2014-08-31 16:01:01 -04:00
Daniel Holth
7c652cb07e improved ability to install into non-ASCII directories 2014-07-10 23:50:43 -04:00
Matthew Iversen
dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Donald Stufft
52ca02608e Use CacheControl instead of custom cache code
* Deprecates the --download-cache option & removes the download
  cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
  filesystem.
  * Properly handles CacheControl headers for unconditional
    caching.
  * Will use ETag and Last-Modified headers to attempt to do a
    conditional HTTP request to speed up cache misses and turn
    them into cache hits.
  * Removes some concurrency unsafe code in the download cache
    accesses.
  * Uses a Cache-Control request header to limit the maximum
    length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
  directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Dan Savilonis
9a9d7acefe Add option --no-check-certificate to skip ssl cert verification 2014-04-24 01:46:33 -04:00
Donald Stufft
5a76a47d3b Fix code to handle the latest flake8 2014-03-26 18:24:19 -04:00
Bruno Renié
244b399f1f Fix #1424 -- add support for SSL client certificate 2014-03-07 13:41:15 +01:00
Roman Bogorodskiy
f29dd1ad32 Introduce 'retry' option
Add a 'retry' option which allows to configure how many
retries pip should make before giving up on HTTP request.

When the retries count is specified by user, its value is
passed to HTTPAdapter from requests which handles all
the underlying operations.
2014-02-04 00:37:05 +04:00
Donald Stufft
2743768b7b Fix the style of the code base to better match pep8 2014-01-27 14:11:29 -05:00
Donald Stufft
30204be35b Remove uses of sys.exc_info()[1]
Using sys.exc_info()[1] is a hack that was used to use a shared
source approach to Python 3.x support that also included versions
of Python that didn't include the except ... as exc: construction.
Pip no longer supports any of these versions of Python so we can
remove it.
2014-01-27 08:02:10 -05:00
Donald Stufft
993a1bfa1b Refactor virtual env requirement to use the pip.locations func 2013-12-27 01:46:46 -05:00
Marcus Smith
4bfffbc589 better message for the failure log 2013-11-06 00:34:41 -08:00
Donald Stufft
ff2854a855 Use requests instead of urllib2 2013-09-24 23:32:03 -04:00
Marcus Smith
237a8ae577 --log file object getting closed prematurely (Issue #219) 2013-09-19 19:00:29 -07:00
Marcus Smith
15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00