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

55 commits

Author SHA1 Message Date
Robert Collins 0e57ebc008 Make adding options be just function calls.
The .make is just sugar for 'call a function' that gets in the way of
just having functions.
2015-04-17 15:04:25 +12:00
Donald Stufft b7309c6bcc Remove the items deprecated for removal in 7.0 2015-04-07 04:20:51 -04:00
Donald Stufft 4a6b32e558 Imply --disable-pip-version-check when --no-index is used 2014-12-23 19:16:08 -05:00
Donald Stufft 8d3de97d34 Adjust tests to compensate for --trusted-hosts 2014-12-20 18:03:38 -05:00
Donald Stufft a5f88d1815 Adjust the --trusted-host help option 2014-12-20 17:36:16 -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
Marc Abramowitz 954b818f24 Reduce duplication of 'pypi.python.org'
by creating a PyPI object

Before:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/cmdoptions.py
    195:    default='https://pypi.python.org/simple/',

    pip/commands/search.py
    33:            default='https://pypi.python.org/pypi',

    pip/index.py
    305:            if page is None and 'pypi.python.org' not in str(main_index_url):
    706:                        ).netloc.endswith("pypi.python.org")):

    pip/utils/outdated.py
    107:                "https://pypi.python.org/pypi/pip/json",

After:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/index.py
    77:PyPI = Index(url='https://pypi.python.org/', trusted=True)
2014-12-16 08:21:24 -08:00
Donald Stufft ddb2f1b459 Deprecate accessing non secure origins by default
* Deprecates accessing non secure origins by default, the list of
  which is taken from Chrome.
* Adds a --trusted-host flag to enable users to mark a specific
  host as a secure origin regardless of what we think.
* Refactors the original warning to better indicate the intent
  and the new flag.
2014-12-10 16:35:54 -05:00
Donald Stufft 15b2258769 Switch from 3 to 5 retries by default 2014-12-02 02:58:09 -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 01610be0d5 Use a secure randomized build directory when possible 2014-11-11 20:19:10 -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 767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Donald Stufft e7c08b04d6 Merge pull request #1815 from pcx/develop
update help to make Package Index Options' usage clearer, ref #1814
2014-08-30 14:50:41 -04:00
Donald Stufft 90688e82b1 Revert "Merge pull request #1519 from dstufft/remove-dependency-links"
This reverts commit da02f073da, reversing
changes made to 2ad8888901.

Conflicts:
	CHANGES.txt
	pip/commands/freeze.py
	pip/commands/list.py
	pip/commands/wheel.py
	pip/index.py
	pip/req/req_set.py
	pip/vcs/subversion.py
2014-08-01 16:50:08 -04:00
Donald Stufft 4a8173c4ed Fix #1680 - Use System SSL Certificates if Available 2014-06-12 23:10:00 -04:00
Phaneendra Chiruvella 25db84ad8c update help to make Package Index Options' usage clearer, ref #1814 2014-05-12 20:19:06 +05:30
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
Marcus Smith 52299a7fe7 pip wheel needs --src option if it's going support --editable for vcs reqs 2014-05-08 21:29:01 -07:00
Marcus Smith 12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07:00
Dan Savilonis 9a9d7acefe Add option --no-check-certificate to skip ssl cert verification 2014-04-24 01:46:33 -04:00
Bruno Renié 244b399f1f Fix #1424 -- add support for SSL client certificate 2014-03-07 13:41:15 +01:00
Donald Stufft c85150a500 Merge pull request #1444 from novel/retries
Introduce 'retry' option
2014-03-06 22:10:34 -05:00
Donald Stufft 95ac4c16f5 Remove dependency links support from pip 2014-02-25 18:39:40 -05:00
Donald Stufft 95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05: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
Marcus Smith eaa565fdaa unsuppress --log-file 2013-11-14 18:13:23 -08:00
Donald Stufft 787a9b11dd Enable Downloading Wheels by Default
* Switches the default in pip.index.PackageFinder to True
* Supresses --use-wheel
* Adds --no-use-wheel which prevents the use of Wheel
2013-11-07 12:29:14 -05:00
Donald Stufft 12ee7cc6d9 Do not respect dependency links by default 2013-10-27 18:34:46 -04:00
Donald Stufft 616ce39061 Rename --allow-insecure to --allow-unverified 2013-10-26 23:47:57 -04:00
Marcus Smith e272d9001f replace make_option_maker with OptionMaker class 2013-09-16 22:45:51 -07:00
Marcus Smith 15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00
Donald Stufft fcdee3c652 Merge branch 'master' into develop
Conflicts:
	.travis.yml
	CHANGES.txt
	pip/__init__.py
	tests/functional/test_install_index.py
2013-08-07 21:21:32 -04:00
Donald Stufft dc559473e2 Restore some functionality to --mirrors and issue a warning 2013-07-30 06:26:13 -04:00
Donald Stufft 3ef4ee4693 Remove direct support for PEP381 Mirrors
* PEP381 Mirroring support was never fully implemented leaving
  users of it trivially exploitable to a MITM or malicious mirror
  operator.
* 2 out of 6 of the mirrors have been removed from the pool and
  will never resolve.
* The remaining mirrors often fall behind
* The mirrors will likely never be available under HTTPS
* People who wish to use a mirror of PyPI can still do so by
  manually specifying a mirror url for --index-url or
  --extra-index-url which is more flexible, allowing for
  mirrors to be hosted under any domain.
2013-07-29 12:42:33 -04:00
Marcus Smith a3109c17c6 changing global build dir name; see https://github.com/pypa/pip/issues/1078#issuecomment-21469936 2013-07-24 01:25:59 -07:00
Donald Stufft 1aff8f53df Default to disallowing external and insecurely hosted files 2013-07-14 12:52:32 -04:00
Donald Stufft fb24b3eaaa Change --allow-external to work per project and add --allow-all-external 2013-06-07 10:43:52 -04:00
Donald Stufft d3638aa7a0 Change wording from "unsafe" to "insecure" 2013-06-07 10:43:52 -04:00
Donald Stufft 2731f06474 Default to allowing unsafe urls and allow disabling them via option 2013-06-07 10:43:52 -04:00
Donald Stufft cc46cdc8b3 Differentiate between safe and unsafe urls where possible
* Links and HTMLPages know if they are "trusted"
* File Links know if they are safe or not
* A "Safe" file Link comes from a trusted Link/HTMLPage and has
  a hash allowing verification of the download
* Adds a --allow-unsafe PACKAGE argument to allow unsafe files on
  a per package basis
* Optimizes scraping external sites by short circuiting if
  the current trust rules won't allow using it's files anyways
2013-06-07 10:43:52 -04:00
Donald Stufft 9ccd5f0bb3 In accordance with PEP438 default to allowing external urls
* After one release has been made allowing external urls, future
  releases will disallow by default
2013-06-07 10:42:55 -04:00
Donald Stufft 0e1da584f4 Differentiate between internal and external links where possible
* By default ignore external links
* Add the ``--allow-external`` flag that enables external links
  globally
* Fallback to allowing all links if we cannot determine the
  API version of the parsed page
* Inform the user of ``--allow-external`` if nothing was found
  to install
2013-06-07 10:42:55 -04:00
Marcus Smith 6fd5e0eb7a --no-clean for 'pip wheel' 2013-05-24 17:11:15 -07:00
Marcus Smith 494e1759d4 wheel doc updates 2013-03-17 19:58:32 -07:00
Marcus Smith 00fa9bea96 merge with develop 2013-03-15 23:46:46 -07:00
Marcus Smith 22bf924b52 merge with develop 2013-02-16 14:17:22 -08:00