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

164 commits

Author SHA1 Message Date
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
2298e4ce53 Fix #1657 - Explicitly close the requests session 2014-07-03 12:50:59 -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
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
Marcus Smith
fd933a93dd improve method for getting home scheme purelib 2013-04-18 22:38:56 -07:00
Marcus Smith
6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07:00
Marcus Smith
00fa9bea96 merge with develop 2013-03-15 23:46:46 -07:00
Marcus Smith
e4b5d3d75e update docs and help for new pre-release logic 2013-03-11 21:56:36 -07:00
Donald Stufft
4d5c5f8f97 Only install stable releases by default
* Adds the --pre flag to pip install to specify that you wish
  to install pre-releases
* If the version spec contains any pre-releases then continue to
  install pre-releases
2013-03-09 10:27:19 -05:00
Jannis Leidel
8a4458bf56 Fixed a whole bunch of cosmetic problems, mostly to adhere to PEP8. 2013-02-16 19:02:41 +01:00
Jannis Leidel
7db3d03e1a Moved the command description into the command class docstring to follow Python best practices. 2013-02-16 19:00:29 +01:00
Marcus Smith
cabd1d5f80 merge with pypa/pip/develop 2013-02-02 22:40:30 -08:00
Marcus Smith
68d983d69a update docs with new build dir 2013-01-25 23:08:29 -08:00
Marcus Smith
ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08:00
Marcus Smith
c2b9d9fa60 have list and install commands share the index options 2012-12-15 20:26:21 -08:00
Georgi Valkov
b26cdee1e6 move command options before general options
Add a new base parser class 'CustomOptionParser' that provides the
'insert_option_group(idx, *, **)' method for inserting an option group
at a specific position.
2012-12-12 15:06:05 +02:00
Georgi Valkov
b34feacbf9 add the Command.gen_opts option group
Note that commands still have to add the option group to the parser
once they populate it with options (self.parser.add_option_group).
2012-12-10 03:22:28 +02:00
Georgi Valkov
2c09666c31 split install options into 'Command Options' and 'Package Index Options' 2012-12-10 03:14:39 +02:00
Marcus Smith
53bbdf58cd merge with pypa/pip:develop 2012-11-28 20:28:57 -08:00
Marcus Smith
9c271baafe distutils scheme util for wheel installs; --user/--target support for wheels 2012-11-14 16:53:22 -08:00
Georgi Valkov
46a21751b8 add the base_parser argument to all Command instances 2012-11-10 15:34:53 +02:00
Georgi Valkov
7427eca00b remove global command instances
Rework the way commands are defined, loaded and ran in pip:

 - Commands are instantiated on demand in pip.main().

 - A command 'registry' - mapping of command names to command classes in
   pip.commands.__init__.

 - Remove deferred command module loading.
2012-11-10 15:30:16 +02:00
Marcus Smith
7ece6f4e77 add --no-deps option to "pip wheel" 2012-10-27 21:21:35 -07:00
Daniel Holth
ed0c2391da allow pip wheel --use-wheel ... 2012-10-27 16:55:04 -04:00
Marcus Smith
4bfc92ddba 'pip wheel' 2012-10-16 15:57:10 -07:00
hetmankp
061954f29d Added --root command line option, works the same as for distutils 2012-10-08 14:49:30 +11:00
Daniel Holth
aa5b33dbf4 experimental support for installing wheel archives 2012-10-01 22:50:24 -07:00
Jannis Leidel
1525a63b57 Added a get_prog util to correctly show the name of the program when using python -m pip.
Also show the full path in the missing command error message.
2012-09-01 20:36:31 +02:00
Marcus Smith
5a1c6093b6 pypy home scheme fix 2012-08-04 18:48:16 -07:00
Marcus Smith
0aadda7f16 usersite installs should ignore version conflicts with site 2012-06-10 18:16:48 -07:00
Marcus Smith
2e1959abfb don't allow --user installs in no-global virtualenvs 2012-06-05 20:01:35 -07:00
Kamal Bin Mustafa
93cd6b1620 add --egg option to opt out --single-version-externally-managed 2012-05-20 11:18:36 +08:00
Stavros Korokithakis
d8babe79f2 --target-dir implies --ignore-installed. 2012-02-07 09:13:02 +02:00
Carl Meyer
ec5d336254 Fix shutil.move and test. 2012-02-03 12:37:53 -07:00
Stavros Korokithakis
eb03ec0dc1 Remove temporary directory, reduce option parameters. 2012-02-03 13:22:51 +02:00
Stavros Korokithakis
176d3a2663 Add target directory option. 2012-02-03 05:23:07 +02:00
Qiangning Hong
fa773cdec6 clean up temporary source code 2012-02-01 14:25:06 +08:00
Carl Meyer
9f547d0e3d Merge pull request #340 from iguananaut/fix-install-defaults
Display correct defaults for pip install --help
2011-10-22 23:03:21 -07:00
Carl Meyer
cdec82b5e6 Merge branch 'fix-issue-49' into develop 2011-10-22 23:50:19 -06:00
Craig Kerstiens
b99427d94e Allowing empty requirements.txt to be specified as valid dependency list by stopping to raise an InstallationError if the requirements set is empty. Closes #345. 2011-09-13 16:25:20 +02:00
Erik Bray
1ecda0db16 Fix --upgrade to leave already up-to-date packages alone. Add --force-reinstall to force reinstallation even of up-to-date packages, as was the prior behavior. 2011-08-24 14:07:16 -04:00
Erik Bray
981b0f8a4c Display correct defaults (incorporating defaults from pip.conf) for src_dir and build_dir in pip install --help output 2011-08-22 13:38:46 -04:00
Paul Nasrat
2860dc7d41 Fix whitespace, etc for pep8 compliance
Reran tests after changes on 2.4, 2.6, 3.2 all pass.

=====================================================
================== Running pep8 =====================

Searching for pep8
Reading http://pypi.python.org/simple/pep8/
Reading http://github.com/cburroughs/pep8.py/tree/master
Reading http://github.com/jcrocholl/pep8
Best match: pep8 0.6.1
Processing pep8-0.6.1-py2.6.egg
pep8 0.6.1 is already the active version in easy-install.pth
Installing pep8 script to /Users/pnasrat/Development/pip/pip_virtualenv/bin

Using /Users/pnasrat/Development/pip/pip_virtualenv/lib/python2.6/site-packages/pep8-0.6.1-py2.6.egg
Processing dependencies for pep8
Finished processing dependencies for pep8

==================== Ended pep8 =====================
=====================================================
2011-05-04 08:44:02 +01:00
Jannis Leidel
d921b1dc55 Also bail in the uninstall command, if no requirement is given. 2010-08-31 14:51:15 +02:00
Jannis Leidel
2f44bcd392 Fixed issue #151 -- When running the install command, bail early if no requirement is given. 2010-08-31 03:01:03 +02:00
Carl Meyer
2249c100b1 nicer error for --user on pre-2.6 Pythons 2010-08-19 12:59:10 -04:00
Carl Meyer
285ff9eed6 fix missing InstallationError import 2010-08-19 12:58:48 -04:00
Ronny Pfannschmidt
8606eaff95 implement and test early error-out on setuptools for install --user --editable 2010-08-19 17:40:21 +02:00
Ronny Pfannschmidt
1e76e5abcc merge "--user alias" to main 2010-08-19 16:24:34 +02:00
Ronny Pfannschmidt
2103c4ffcd add a --user alias for --install-opt=--user 2010-08-18 23:59:33 +02:00
Jannis Leidel
e80c387a26 Added support for mirrors as defined in PEP 381. This feature is disabled by default and will query the DNS entry of the main mirror index URL to get a list of mirrors. Optinally can be passed a list of mirrors instead. 2010-08-16 01:46:23 +02:00