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

111 commits

Author SHA1 Message Date
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 b0b05737a9 Merge pull request #1787 from qwcode/wheel_editables
build wheels for dependencies of editables
2014-05-09 15:00:50 -07: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
Donald Stufft f79ca70c66 Remove the bundle functionality from pip 2014-05-08 16:09:23 -04:00
Marcus Smith 12034176a1 build wheels for dependencies of editables 2014-05-03 10:12:57 -07: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
Donald Stufft c8d9368e71 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	pip/__init__.py
2014-02-21 07:18:52 -05:00
Donald Stufft 313b8d9f7d Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-21 07:10:46 -05:00
Marcus Smith 1a0e8fad4c log deprecation for --build when value is different than default 2014-02-20 22:37:35 -08:00
Marcus Smith a3f6ec7b5f can't log deprecation for --build, since it's set always 2014-02-20 22:22:25 -08:00
Donald Stufft 751eec65f3 Merge branch 'master' into develop
Conflicts:
	CHANGES.txt
	docs/configuration.rst
	docs/cookbook.rst
	docs/reference/pip.rst
	docs/usage.rst
	pip/__init__.py
	pip/commands/install.py
	pip/commands/wheel.py
	pip/req.py
	pip/wheel.py
	tests/unit/test_wheel.py
2014-02-20 20:33:59 -05:00
Donald Stufft 3435cf36eb Merge branch '1.5.X'
Conflicts:
	CHANGES.txt
2014-02-20 19:36:56 -05:00
Marcus Smith c6356c855f deprecate --build and --no-clean 2014-02-16 12:30:49 -08:00
Marcus Smith 9e39d9d8ca pip docs refactor 2014-02-11 22:13:03 -08:00
Marcus Smith 96bfe8b0f9 pip docs refactor 2014-02-11 21:55:43 -08: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 5b1c5f45c6 use Logger.deprecated for deprecation warnings 2014-01-10 20:59:24 -08:00
Marcus Smith 4afe71fe47 consistent deprecation messages 2014-01-09 20:28:28 -08:00
Marcus Smith 48f8c0a18e deprecate --no-install and --no-download 2013-11-24 18:21:00 -08:00
Donald Stufft 7ec49dc2fb Enable --[no-]compile which will compile or not compile pyc files
* Enables compilation for Wheel files
* Adds an easy command line for distutils/setuptools compilation
  options
2013-11-21 23:19:15 -05:00
Marcus Smith 6c2d08611d add warning to --egg option, see https://github.com/pypa/pip/issues/1320 2013-11-15 16:41:38 -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
Donald Stufft 3b3cdda31d Pass our created session into RequirementSet 2013-09-24 23:32:03 -04:00
Donald Stufft ff2854a855 Use requests instead of urllib2 2013-09-24 23:32:03 -04:00
Marcus Smith 15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00
Lincoln de Sousa 9584608aac Cmds {install,wheel} should return proper error code
The `pip` executable was returning a successful status code (`0`) when
trying to install new packages with existing previous build directories.
2013-08-25 19:42:25 -04:00
Donald Stufft 5d2b6b3be0 Merge pull request #1109 from dstufft/better-warning-output
Colorize Log Output
2013-08-07 21:05:30 -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 0773d49b3c Use the new Log.deprecated to log the messages about mirrors 2013-08-04 23:48:45 -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 ef4953d578 return upon PreviousBuildDir 2013-07-24 02:02:08 -07:00
Donald Stufft 1aff8f53df Default to disallowing external and insecurely hosted files 2013-07-14 12:52:32 -04:00
Donald Stufft 8cef363327 --pre flag should affect the finder and not the requirements
Storing the --pre flag on the finder enables easily being able
to have it affect all package discoveries made with that finder.
The previous method of passing it into the InstallRequirement
meant that only top level dependencies were controlled by
--pre
2013-07-11 12:28:15 -04:00
Marcus Smith 81639adbdf revert distribute skip in py3 (commit fe09baa1a2) 2013-06-19 17:08:32 -07:00
Marcus Smith ff1a79381a test changes due to virtualenv not using distribute 2013-06-13 22:43:26 -07:00
Marcus Smith 72f0ec9419 wheel is also supported now with setuptools>=0.7.2 2013-06-13 22:04:05 -07: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 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 fe09baa1a2 don't install or build wheels for distribute in python3 2013-05-16 19:53:48 -07:00
Marcus Smith 2c14940a6f deal with pre-existing build dirs 2013-04-20 11:24:43 -07:00
Marcus Smith acc917269a Merge pull request #903 from qwcode/home_lib
improve method for getting home scheme purelib
2013-04-19 18:38:12 -07:00
Erik M. Bray 8e2c64ca4f 'irregardless', if it's a word at all, means the opposite of how it's meant here. 2013-04-19 17:30:56 -04:00