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

947 commits

Author SHA1 Message Date
Donald Stufft 3ffa404d3e Merge pull request #1272 from dstufft/fix-pip-wheel
Make Wheel respect --root
2013-10-31 06:07:08 -07:00
Donald Stufft 00c11deb25 Ensure that --root continues to work with Wheels 2013-10-31 08:49:23 -04:00
Marcus Smith 588fb6f25e some extra logging and options tests 2013-10-30 18:16:30 -07:00
Donald Stufft 39b2aaf729 Fix the test which is still looking for the by typo 2013-10-30 08:19:10 -04:00
Donald Stufft 12ee7cc6d9 Do not respect dependency links by default 2013-10-27 18:34:46 -04:00
Donald Stufft 840db882de Remove the allow_all_unverified 2013-10-26 23:52:04 -04:00
Donald Stufft 616ce39061 Rename --allow-insecure to --allow-unverified 2013-10-26 23:47:57 -04:00
Paul Moore 00a324f91f Merge pull request #1254 from pfmoore/win-tests
Fix tests using virtualenv on Windows.
2013-10-26 08:22:56 -07:00
Marcus Smith c030ae26f3 fix wheel test to match current error message 2013-10-25 17:23:42 -07:00
Paul Moore ba97b0c030 Fix tests using virtualenv on Windows.
Do not hard code bin as the location of the executables, as this is not
correct on Windows.
2013-10-24 21:26:38 +01:00
Paul Moore 2902ce7985 Make the check for wheel support in setuptools test for DistInfoDistribution rather than check the version 2013-10-06 20:15:47 +01:00
Marcus Smith b2341831b9 merge fix due to 1.4.X still using nose 2013-10-05 22:18:20 -07:00
Marcus Smith 3c0072cc00 merge from 1.4.X 2013-10-05 21:49:41 -07:00
Paul Nasrat ad66052f05 Merge pull request #1215 from pnasrat/subdirectory-editable
Merge subdirectory editable feature
2013-10-05 19:13:10 -07:00
Paul Moore e1c5497b11 Python 2.7 io.StringIO is text-only, use backwardcompat 2013-10-05 17:41:52 +01:00
Paul Moore 137b8260ac Fix test_log on Python 3, StringIO module is no longer available 2013-10-04 15:58:09 +01:00
Marcus Smith f44952dc87 fake what version of setuptools is present to get past the setuptools requirement in travis 2013-10-01 22:45:32 -07:00
Marcus Smith 11a178fda2 1) If the wheel name != search_name, then return immediately. Not doing so,
exposes wheel link matching unnecessarily to Issue #1217.
2) If somehow the pip code is broken, and unsupported wheels are being
passed to the sorter, then atleast fail with a meaningful error.
2013-10-01 21:33:26 -07:00
Paul Nasrat a1bbab37d4 Fix deleted brack 2013-09-30 13:52:08 -04:00
Paul Nasrat 951ef7438c Merge remote-tracking branch 'niedbalski/develop' into subdirectory-editable
Conflicts:
	CHANGES.txt
	tests/functional/test_install_reqs.py
	tests/lib/__init__.py
	tests/unit/test_req.py

Additional work - refactored tests to new style.
2013-09-27 14:42:05 -04:00
Donald Stufft e8ca48a5f3 Skip the test, it can randomly fail until we have a test server 2013-09-26 15:42:03 -04:00
Donald Stufft 06b91a85d4 Merge pull request #1145 from dstufft/use-requests
Use requests instead of urllib2
2013-09-26 12:16:19 -07:00
Donald Stufft 20c52fdaf8 Update requests test for the new funcargs 2013-09-24 23:32:03 -04:00
Donald Stufft 92c40c3e06 Ensure that we successfully utilize requests timeout functionality 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 0eb29ef126 Fix problem where multiple .write() log consumers resulted
in extra line breaks.  Specifically, using --log resulted in logging
with extra line breaks.
2013-09-21 21:42:18 -07:00
Marcus Smith e4b1159e16 --log test when the command fails 2013-09-19 20:50:30 -07:00
Marcus Smith 5eafbb6dfc logging tests for --log and --log-file 2013-09-19 19:02:06 -07:00
Marcus Smith 0e5b28e4aa - consolidate the option tests into one test module
- replace the complex multi-assert tests with simpler ones
- add more tests to confirm our option precedence
2013-09-17 21:44:57 -07:00
Marcus Smith eed12b54c1 command parsing tests 2013-09-16 22:21:21 -07:00
Marcus Smith 15910f573e define options once, but don't globally instantiate 2013-09-16 22:21:15 -07:00
Marcus Smith d21d0e434e 1) have create_main_parser construct the parser description.
2) have `create_main_parser` mark the parser as the 'main' parser.
3) remove an extraneus block that's never called.  thanks @netspyer.
4) move 'create_main_parser` to __init__ to avoid circular or embedded imports.
2013-09-15 21:28:19 -07:00
Marcus Smith ed9e3f49a5 unit tests for pip.baseparser.ConfigOptionParser 2013-09-15 17:24:44 -07:00
Paul Nasrat 866ca4d475 Merge pull request #1188 from dstufft/parallelize-python32
Work around Python 3.2 import issues
2013-09-05 08:05:39 -07:00
Donald Stufft 6c36e77e16 Work around Python 3.2 import issues 2013-09-05 10:39:28 -04:00
Marcus Smith efaf0e7a53 remove unnecessary imports 2013-09-01 13:28:03 -07:00
Marcus Smith f6d242aeea merge from 1.4.X 2013-09-01 13:15:45 -07:00
Marcus Smith 1afdc665ae don't override distutils scripts location using pip's legacy logic 2013-08-31 15:28:44 -07:00
Donald Stufft 6a343fe460 Properly raise an error when it happens 2013-08-28 05:33:38 -04:00
Donald Stufft 3c733ca0f5 Fix the exclusion patterns
We need the docs directory for ``python setup.py``
2013-08-28 05:32:57 -04:00
Donald Stufft 37deb59853 shutil.ignore_patterns does not want trailing slashes
A trailing slash in a directory name is essentially a noop unless
the directory name itself contains a trailing slash.
2013-08-28 05:17:36 -04:00
Donald Stufft 2ab9d6bdfb Ignore the directories that tox creates 2013-08-28 05:05:07 -04:00
Donald Stufft 4516a34e1c Add an extra newline 2013-08-27 06:49:40 -04:00
Donald Stufft 3095571d8f Copy pip into the per test temporary location as well
Previously pip was always installed directly from the source tree
however this causes concurrency issues so it is now copied into
the temporary directory and installed from there.
2013-08-27 06:49:40 -04:00
Donald Stufft 86f5ebb4ca Work around a Python 3.2 bug with pytest and pytest-xdist 2013-08-27 06:49:40 -04:00
Donald Stufft 946465b395 The error message isn't always the same for this test 2013-08-27 06:49:40 -04:00
Donald Stufft 5fece08556 Hide assert_raises_regexp in the traceback 2013-08-27 06:49:40 -04:00
Donald Stufft 99f520dfa0 Instead of monkeypatching setuptools on Travis, just upgrade it 2013-08-27 06:49:40 -04:00
Donald Stufft fe60a1d5cf Use a constant for the source directory 2013-08-27 06:49:40 -04:00
Donald Stufft 1650d4166a Fix some missing find_links -> data.find_links switches 2013-08-27 06:49:40 -04:00
Donald Stufft 1bd8dd99f8 Determine the src directory automatically 2013-08-27 06:49:40 -04:00
Donald Stufft cb73080301 We already have the in development version installed in the venv 2013-08-27 06:49:37 -04:00
Donald Stufft 487925ea3f Isolate the tests from the shared data directory 2013-08-27 06:49:35 -04:00
Donald Stufft bacf3a0091 Wrap the test data in a helper that will copy to the tmpdir
This is needed because the various activities that exericsing the
tests do will cause files to change inside this data directory. If
we do not make it test specific then we run into concurrency issues.
2013-08-27 06:47:26 -04:00
Donald Stufft 9ed8c1acc7 Namespace the PipTestEnvironment inside the temporary directory 2013-08-27 06:47:26 -04:00
Donald Stufft 6b02bc7899 Use monkeypatch to force shutil to not use the fd functions 2013-08-27 06:47:26 -04:00
Donald Stufft d9c8452d78 Work around race conditions in the code 2013-08-27 06:47:26 -04:00
Donald Stufft c3f7a9cc3d Hide assert_all_changes from the traceback 2013-08-27 06:47:25 -04:00
Donald Stufft 9bb20bd485 Don't depend on relative file path for test data 2013-08-27 06:47:25 -04:00
Donald Stufft f9a3b97b41 Explicitly pass around a directory for tests.lib.local_repos 2013-08-27 06:47:25 -04:00
Donald Stufft 0c42245f21 Replace explicit calls to reset_env() with the script fixture 2013-08-27 06:47:23 -04:00
Donald Stufft f70b2a187c Use our classes from tests.lib.* in pytest fixtures 2013-08-27 06:41:55 -04:00
Donald Stufft 17cfdc5b62 Refactor tests.lib into classes that can be used to modify state 2013-08-27 06:41:55 -04:00
Donald Stufft bd127f8aba Shadow the built in tmpdir fixture to use our Path object
* Uses the same generation method as the built in tmpdir, simply
  returns a different object type.
2013-08-27 06:41:55 -04:00
Lincoln de Sousa d6582a251e 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.

Conflicts:
	tests/functional/test_install_cleanup.py
	tests/functional/test_wheel.py
2013-08-26 18:55:55 -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 1bc31ec02e Merge pull request #1157 from dstufft/refactor-tests-lib
Refactor tests.lib.* to simplify and remove global state
2013-08-22 01:52:03 -07:00
Donald Stufft 08247973b6 Fix the Python 3.3 issue, it only seems to happen on Travis 2013-08-22 04:19:58 -04:00
Donald Stufft 7975431d2d Don't set PYTHONDONTWRITEBYTECODE on setuptools 0.6.x 2013-08-22 03:52:23 -04:00
Donald Stufft daa50ff459 Don't write bytecode when running tests
Writing bytecode can mess up the detection of updated files and
directories
2013-08-22 02:44:21 -04:00
Marcus Smith 9b4b651cc6 we'll assume '_' means '-' for versions from wheel filenames 2013-08-21 23:30:15 -07:00
Donald Stufft 41bf2b8046 Revert "Use an explicit keyword"
This reverts commit 47faefcd8e.
2013-08-22 01:54:29 -04:00
Donald Stufft 555322b432 Note that things break horribly without a temp path 2013-08-22 01:51:14 -04:00
Donald Stufft 319a73cb0a Fix the comment to be accurate 2013-08-22 01:50:10 -04:00
Donald Stufft 47faefcd8e Use an explicit keyword 2013-08-22 01:48:58 -04:00
Donald Stufft 781fe907de We don't need to clear the virtualenv, it's a brand new directory 2013-08-22 01:44:45 -04:00
Donald Stufft 9894c8baac Refactor tests.lib
* Move virtualenv creation out of TestPipEnvironment
* Remove global state and force explicit use of TestPipEnvironment
  instances
* Remove "backup" virtualenv copying and instead create new
  virtual environments each time.
* Remove the monkeypatched "PyPICache" functionality
* Remove things that were not being used anymore and were dead
  weight
* Remove sitecustomize support which was primarily used to
  monkeypatch the "PyPICache" but was used in one or two other
  tests.
2013-08-21 22:40:16 -04:00
Donald Stufft 30934fede2 Refactor tests.lib.path a bit
* Add a .join() method for a more explicit joining than /
* Return values where possible
* Make glob an iterator
* Remove checks for versions of Python we don't support
* Add a write() function to make it simple to write some text
  into a file
* Add a touch() function to make it simple to ensure a file
  exists
2013-08-21 22:40:09 -04:00
Donald Stufft da0bc4b1d1 Switch to using py.test as the test runner instead of nose
* Better output with the bare asserts we use throughout the tests
* Function fixtures are pretty nice, especially as a way to
  start a background server or create an isolated virtualenv
2013-08-21 10:19:58 -04:00
Jorge Niedbalski d16281f141 Merge remote-tracking branch 'pip-orig/develop' into develop 2013-08-20 10:38:53 -03:00
Marcus Smith 1f989ff32e merge from 1.4.X 2013-08-19 21:23:39 -07:00
Marcus Smith 65007e3c65 when unpacking archives, don't preserve permissions except execution for regular files 2013-08-17 00:18:40 -07:00
Jorge Niedbalski R ebc40a16bf Merge from upstream project 2013-08-12 11:20:15 -07: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
Marcus Smith d3cbb3f606 fix up the bundle support 2013-08-07 00:13:47 -07:00
Marcus Smith 4b1f064eb3 Merge pull request #1113 from qwcode/fix_1106
let --download work with wheels
2013-08-06 16:11:13 -07:00
Marcus Smith 901b46cea5 switch test to working mirror 2013-08-05 21:35:07 -07:00
Marcus Smith 5fcf4ab6f4 let --download work with wheels 2013-08-05 21:27:41 -07:00
Donald Stufft e5c64f0878 Add some tests to ensure behavior 2013-08-05 01:55:28 -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 84480ac9b7 Merge pull request #1095 from qwcode/fix-1074
function in case of broken sysconfig. fix #1074
2013-07-27 21:09:19 -07:00
Marcus Smith f91fc2f4c9 use sysconfig from pep425tags and use mock's patch context mgr 2013-07-27 20:48:15 -07:00
Jannis Leidel b262aa3922 Merge pull request #1080 from qwcode/global_build_dir
fixes for #1078
2013-07-27 02:37:29 -07:00
Marcus Smith e298b32709 confirm wheel was used in setuptools/wheel upgrade test 2013-07-27 01:22:04 -07:00
Marcus Smith 3e8924a7ec setuptools upgrade tests 2013-07-27 00:58:56 -07:00
Jorge Niedbalski abf27b5bd2 [tests] added test for subdirectory editable options 2013-07-24 12:25:35 -03:00
Marcus Smith ef4953d578 return upon PreviousBuildDir 2013-07-24 02:02:08 -07: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
Daniel Holth 59e5368eac function in case of broken sysconfig. fix #1074 2013-07-23 20:18:26 -04:00
Donald Stufft 85cb4167c8 Merge pull request #1055 from pypa/default-externals-to-off
Default to disallowing external and insecurely hosted files
2013-07-14 11:07:53 -07:00
Donald Stufft dfe5a67f41 Fix tests with the new defaults 2013-07-14 13:26:33 -04:00
Paul Nasrat 76a74e549c Fix functional test. 2013-07-14 10:32:36 -04:00
Marcus Smith fe2a254c7e patch for our tests cache for windows/py2 2013-07-12 16:04:50 -07:00
Marcus Smith 3b0eb9136a fix regexp for windows paths 2013-07-11 21:36:46 -07:00
Marcus Smith 813ab9da2e user site fix for windows tests; was broke recently when the 2 TestPipEnvironment classes were consolidated into one 2013-07-09 23:55:23 -07:00
Daniel Holth 823cee17ef mock moved attribute 2013-06-30 23:44:51 -04:00
Daniel Holth 3ac1280cd2 wheel: test WHEEL "root_is_purelib" parser 2013-06-30 23:40:20 -04:00
Daniel Holth 3b9e90e42b wheel: add tags parameter to support_index_min also 2013-06-30 14:56:43 -04:00
Daniel Holth b6c2dc3b62 wheel: improve unit tests 2013-06-30 14:54:45 -04:00
Marcus Smith 231d84df0b wheel test for NotImplementedError being raised 2013-06-27 23:12:52 -07:00
Marcus Smith fae0c02b60 Merge pull request #1013 from qwcode/wheel_req
have 'pip wheel' only be satisfied with setuptools (DONT MERGE)
2013-06-27 18:23:11 -07:00
Marcus Smith 78a40129dd patch wheel unit tests to appear to be running with setuptools 2013-06-27 18:08:25 -07:00
Marcus Smith fb397cd1ec have "pip wheel" only be satisfied by setuptools 2013-06-27 00:20:28 -07:00
y-p 42102e9dea unpack_file should use flatten=False for .whl files GH1011 2013-06-26 22:02:27 +03:00
Jannis Leidel 3ea56eaecd Use PyPA's own test package instead of my personal repo (which I deleted due to move to Github). 2013-06-25 14:54:27 +02:00
Marcus Smith a4f178bf15 remove old test that mistakenly resurfaced during merging 2013-06-19 17:08:32 -07:00
Marcus Smith 3e460e6946 test merge fixes 2013-06-19 17:08:32 -07:00
Marcus Smith 81639adbdf revert distribute skip in py3 (commit fe09baa1a2) 2013-06-19 17:08:32 -07:00
Marcus Smith e0e19cc831 Merge pull request #1003 from qwcode/test_new_setuptools
support the new setuptools
2013-06-19 16:53:39 -07:00
Marcus Smith 31bc0833e5 make pip freeze test more flexible 2013-06-19 16:35:28 -07:00
Marcus Smith 40a22cccea remove unnecessary test dependency on MarkupSafe 2013-06-19 15:55:17 -07:00
david 267c79df2e Fix #982 by using the effective user id on unix systems instead of depending on
getpass.getuser(). This is required because on some systems 'LOGNAME'
is not updated by sudo.
Signed-off-by: david <db@d1b.org>
2013-06-15 13:17:45 +10:00
Marcus Smith bea1f6ca2f method call syntax error 2013-06-13 22:55: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 74d0246bcd Test the different variations of allow_insecure and allow_external 2013-06-07 10:43:52 -04:00
Marcus Smith 60f8da5c41 4 more wheel tests 2013-06-06 19:11:43 -07:00
Steven Myint f7bf72bc27 Fix spellings errors 2013-06-01 09:09:41 -07:00
Carl Meyer b3a791223c Cached or already-downloaded files with bad hashes are ignored. 2013-05-30 17:00:10 -06:00
Carl Meyer 388d1b53a7 Refactor unpack_http_url. 2013-05-30 16:59:57 -06:00
Carl Meyer f7e6fec08c Merge branch 'develop' into bugfix-git183-v2
* develop:
  add back in old tox.ini
  add back test lost in the restructure
  more functional/unit tests restructure
  break up tests dir into data, unit tests, and functional tests
2013-05-29 16:41:15 -06:00
Carl Meyer fa81a41d0b Combine Git get_tag_revs and get_branch_revs into single get_refs method. 2013-05-29 16:40:34 -06:00
Marcus Smith 890df0d25a add back test lost in the restructure 2013-05-29 13:41:13 -07:00
Marcus Smith 28298c413d more functional/unit tests restructure 2013-05-29 13:41:13 -07:00
Marcus Smith 2e2ce0f4e9 break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
Carl Meyer 92e0dbbf4c Use git show-ref instead of git branch for better future-proofness.
Based on original patch by Anrs Hu.
2013-05-29 14:03:26 -06:00
Marcus Smith 28234e29d5 'pip search' xmlrpc changes in response to pypi changes, http://mail.python.org/pipermail/distutils-sig/2013-May/020888.html 2013-05-28 20:34:25 -07:00
Marcus Smith 32ce7b878e install wheel from local packages in tests 2013-05-24 19:03:21 -07:00
Marcus Smith 558c200f37 single definition of find_links 2013-05-24 18:40:45 -07:00
Marcus Smith 6fd5e0eb7a --no-clean for 'pip wheel' 2013-05-24 17:11:15 -07:00
Marcus Smith 41fed83353 remove 'pip wheel --unpack-only' 2013-05-24 15:59:28 -07:00
Daniel Holth b604134cb0 include test installing headers 2013-05-23 23:07:12 -04:00
Marcus Smith 0994c1252d Merge pull request #937 from qwcode/ignore_reqs
don't install or build wheels for distribute in python 3
2013-05-16 20:47:06 -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 887922f6ba short test cache path segments to undercut windows path length 2013-05-15 19:54:29 -07:00
Marcus Smith c52d9d82ad remove old code from wheel test 2013-05-02 15:28:32 -07:00
Marcus Smith c721a735b5 wheel finder priority based on supported_tags order 2013-05-02 15:28:32 -07:00
Marcus Smith 5666620f7e PreviousBuildDirError test fix 2013-04-30 16:02:10 -07:00
Marcus Smith 3a1847cd53 PreviousBuildDirError logging and test fix 2013-04-30 15:30:15 -07:00
Marcus Smith 2c14940a6f deal with pre-existing build dirs 2013-04-20 11:24:43 -07:00
Donald Stufft 709a390043 Add a User Agent so that pip is identifiable in logs 2013-04-18 21:22:37 -04:00
Marcus Smith 6e2bfe8323 remove python 2.5 logic 2013-04-17 22:50:22 -07:00
Marcus Smith 7176cd2c95 Merge pull request #893 from qwcode/fast_tests
use "fast" test environment for setuptools and distribute
2013-04-15 22:58:17 -07:00
Marcus Smith 979412c1bb delete __pycache__ after sitecustomize updates 2013-04-15 22:34:27 -07:00
Marcus Smith 17de380278 more debugging for sitecustomize patch test 2013-04-15 21:32:51 -07:00
Marcus Smith 8505658fb7 better debugging for sitecustomize test 2013-04-14 13:20:58 -07:00
Marcus Smith e57028ae54 reset_env tests 2013-04-14 02:00:57 -07:00
Marcus Smith 6db29ee137 simplify sitecustomize tests 2013-04-14 00:09:45 -07:00
Hugo Lopes Tavares 2198b5d090 Fix window test failure. Fix issue #875 2013-04-13 12:11:45 -03:00
Marcus Smith d55fb203f4 use fast test environment for setuptools and distribute 2013-04-12 22:19:45 -07:00
Marcus Smith 35db0257c0 refactor remote requirements test 2013-04-12 21:40:30 -07:00
Marcus Smith 868f63bbf5 merge 1.3.X for proxy fix 2013-04-11 18:05:52 -07:00
Marcus Smith eb9bb7c88d switch to an unbroken bitbucket project for tests 2013-04-11 16:51:07 -07:00
Paul Nasrat 5256d573fd Merge pull request #874 from hltbra/remote-reqs-py3-pull-request
Fix issue #760: broken external requirements on Python 3
2013-04-07 07:36:39 -07:00
Marcus Smith f1fb4b4fda wheel requirement checks with tests 2013-04-05 14:21:11 -07:00
Hugo Lopes Tavares bf35ea6291 Change test_requirements:test_remote_reqs to use hltbra's gist
g2p's pull request for issue #760 requires changes on pip-test-package.
The gist was created to remove this dependency.
2013-03-29 13:14:26 -03:00
Hugo Lopes Tavares b5df6cb975 Change test to use set() comparison and add docstring
Using set because and os.listdir() does not guarantee ordering.
2013-03-28 14:57:54 -03:00
Gabriel 26fd6225e4 Decode downloaded contents.
Also add a test (the exact url depends on pulling a change to pip-test-package).
2013-03-28 18:32:45 +01:00
Hugo Lopes Tavares 1dcfb3f5dd Fix issue #32: pip crashes when server does not send content-type header
Thanks Kelsey Hightower for pointing what to change.
2013-03-27 22:28:21 -03:00
Marcus Smith 47edb6dc90 remove unnecessary markerlib installs in wheel tests 2013-03-26 22:56:14 -07:00
Marcus Smith b32e79d61a switch to an unbroken bitbucket project for tests 2013-03-21 16:58:21 -07:00
Marcus Smith 3e8cfc4ade windows wheel test fix 2013-03-20 22:34:07 -07:00
Marcus Smith 00fa9bea96 merge with develop 2013-03-15 23:46:46 -07:00
Marcus Smith 1ff6020130 deal with travis installing ssl backport by default 2013-03-12 16:24:38 -07:00
Marcus Smith 60b0401b0a fix proxy support 2013-03-12 14:20:23 -07:00
Marcus Smith 3f54248d05 pre-release test updates 2013-03-11 22:39:17 -07:00
Donald Stufft 4c244a49cf Test the Stable/Pre-release distinction in PackageFinder 2013-03-09 11:28:36 -05:00
Jannis Leidel 824a64cfab Revert "Test HTMLPage link filter by rel attribute."
This reverts commit 4dceb6ce87.
2013-03-08 00:09:01 +01:00
Jannis Leidel f0b6bbf953 Fixed a test that was broken by releasing 1.3. D'oh. 2013-03-07 23:14:18 +01:00
Marcus Smith 72812c52ff close socket upon CertificateError 2013-03-03 22:38:37 -08:00
Marcus Smith 184bab95e5 fix test to allow rc and .dev releases for pip 2013-02-21 21:34:30 -08:00
Marcus Smith cf3a5619b0 fix mirror url parsing and add tests 2013-02-19 11:49:19 -08:00
Marcus Smith 68d380c3ed fix in response to pypi redirecting http to https 2013-02-18 22:11:17 -08:00
Marcus Smith 4a4a141c21 from --allow-no-ssl to --insecure 2013-02-17 22:43:17 -08:00
Marcus Smith 559d77addc from --cert-path to --cert 2013-02-17 22:17:59 -08:00
Marcus Smith 22bf924b52 merge with develop 2013-02-16 14:17:22 -08:00
Jannis Leidel b5af67469f Fixed import error in test module. 2013-02-16 19:10:32 +01:00
Marcus Smith d0c3138fbf merge with develop 2013-02-15 17:11:17 -08:00
Marcus Smith 7c8470a5fb more local test packages 2013-02-15 17:02:23 -08:00
Marcus Smith 9b57f890b3 use local packages, not 'mock', which has invalid ssl download link 2013-02-15 17:00:59 -08:00
Marcus Smith ee44e13716 switch to a mirror in test to get full pass 2013-02-15 16:13:52 -08:00
Marcus Smith 61ed2b49eb simpler, local --root test 2013-02-13 19:17:28 -08:00
Marcus Smith f13f879d8a unable to get ssl backport to install on travis 2013-02-11 21:44:21 -08:00
Marcus Smith 8fc02eb47e py25 install tests with ssl backport 2013-02-10 22:00:57 -08:00
Marcus Smith 9cda4d663a --allow-no-ssl test fix 2013-02-10 01:47:08 -08:00
Marcus Smith 6dc3212d39 pypy ssl test fix 2013-02-08 22:47:20 -08:00
Marcus Smith d77380dae9 ssl cert tests 2013-02-07 22:23:37 -08:00
Marcus Smith d8fe463c94 tun py25 test logic and add assert_raises_regexp 2013-02-07 22:17:27 -08:00
Marcus Smith 193562bf0e more py25 test fixes 2013-02-07 00:36:18 -08:00
Marcus Smith 226768d5dd allow py25 tests to work without ssl 2013-02-06 23:52:45 -08:00
Marcus Smith 7fac01a66a misc test fixes 2013-02-06 22:30:08 -08:00
Marcus Smith 299eb7738a make test windows compatible 2013-02-03 00:05:38 -08:00
Marcus Smith db165f1dc6 have find_link path work for windows tests 2013-02-02 23:19:34 -08:00
Marcus Smith cabd1d5f80 merge with pypa/pip/develop 2013-02-02 22:40:30 -08:00
Marcus Smith 528d753414 test fix in response to change in error text 2013-01-30 21:30:58 -08:00
Marcus Smith 0353788661 skip specific unicode test on win/py3 2013-01-27 22:18:46 -08:00
Marcus Smith 459561351e windows and other misc test updates 2013-01-25 23:09:46 -08:00
David 7f1362412f Also un-patch the patched getpass.getuser method.
Signed-off-by: David <db@d1b.org>
2013-01-25 23:12:24 +11:00
David 8baeebae31 Provide a test to cover the changes to pip/locations.py regarding the use of
the_get_build_prefix method to create a user specific build_prefix directory.

Signed-off-by: David <db@d1b.org>
2013-01-25 23:12:24 +11:00
Marcus Smith 6b5fd90af9 windows test fixes 2013-01-22 20:52:35 -08:00
Marcus Smith ab9ea197bd improved docs and cli help 2013-01-18 13:25:15 -08:00
Marcus Smith 89a69a016a sort subcommand completion 2012-12-24 21:58:44 -08:00
Marcus Smith c49f7e0fb2 from '--editables' to --editable' and some minor formatting 2012-12-19 22:08:56 -08:00
Marcus Smith c525aacf6e --editables tests 2012-12-17 21:34:37 -08:00
Marcus Smith 2e081d8aed util.get_installed_distributions tests 2012-12-16 00:24:34 -08:00
Marcus Smith 7e9fb6f4ab compare using parsed versions; use get_installed_distributions wrapper; use the dist objects you already have 2012-12-15 20:56:29 -08:00
Rafael Caricio f328e52247 remove space. 2012-12-15 19:42:29 -08:00
Rafael Caricio c862877ccf Change tests to use mock instead of pytz. 2012-12-15 19:42:29 -08:00
Rafael Caricio 4d8a5de1bc Better way to test the uptodate flag in list command. 2012-12-15 19:42:29 -08:00
Rafael Caricio ddce14d437 Testing with a package that works in all python versions. 2012-12-15 19:42:29 -08:00
Rafael Caricio 0e423ddf77 Fix in import. 2012-12-15 19:42:28 -08:00
Rafael Caricio 570f85f1bb Make the tests safe. 2012-12-15 19:42:28 -08:00
Rafael Caricio 29972a1b3a Add the --uptodate flag in the list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio 1579654fdc Add test to the flag --local in list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio 5a02b6674e Basic behaviour of the list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio 0267e8a684 Modifies the outdated command to list command. 2012-12-15 19:42:28 -08:00
Rafael Caricio ff24b578ba Make the test pass. 2012-12-15 19:42:28 -08:00
Dmitry Gladkov 91106054ca add outdated pip command 2012-12-15 19:42:28 -08:00
Georgi Valkov 1502e8e67f test if 'pip <cmd> --<tab>' properly completes 2012-12-14 15:55:48 +02:00
Georgi Valkov 03a887711c factor out common test logic 2012-12-14 15:53:02 +02:00
Georgi Valkov 4c26d11a4c test if 'pip help <cmd>' == 'pip <cmd> --help' 2012-12-14 14:45:46 +02:00
Marcus Smith 3a8f69b4d0 Merge pull request #721 from gvalkov/rework-commands-v2
Rework command handling v2
2012-12-07 14:45:11 -08:00
Marcus Smith 53bbdf58cd merge with pypa/pip:develop 2012-11-28 20:28:57 -08:00
Marcus Smith 4c8ac16ec0 patch dist_in_site_packages for user_site tests 2012-11-19 09:38:20 -08:00
Marcus Smith 9c271baafe distutils scheme util for wheel installs; --user/--target support for wheels 2012-11-14 16:53:22 -08:00
Marcus Smith dc5e825d4e upper case url reqs should be recognized as same as other lower case forms 2012-11-13 21:29:58 -08:00
Georgi Valkov 2c64a1e160 replace global OptionParser and refactor main() 2012-11-10 15:37:15 +02:00
Georgi Valkov 46a21751b8 add the base_parser argument to all Command instances 2012-11-10 15:34:53 +02:00
Marcus Smith dff849ce27 existing install has priority over wheels 2012-11-03 22:10:58 -07:00
Marcus Smith 51ced03e57 test readme update 2012-11-03 21:31:02 -07:00
Paul Nasrat fad65326c8 Merge pull request #693 from hetmankp/develop
Added --root command line option to give functionality equivalent to distutils --root
2012-10-29 09:58:18 -07:00
Paul Moore 4b01b90df2 Give wheels priority over sdists when installing 2012-10-28 22:02:48 +00:00
Marcus Smith d1dc6993b2 pip wheel --unpack-only test fix 2012-10-25 13:37:26 -07:00
Marcus Smith be12f79ab4 merge pypa/develop 2012-10-25 12:51:07 -07:00
Paul Nasrat 32f0be7a96 Merge pull request #702 from qwcode/link_sort2
put back finder link priority (with tests)
2012-10-24 23:53:39 -07:00
Paul Nasrat f54f422e11 Merge pull request #677 from blaze33/develop
Explicitly ignore rel='download' links while looking for html pages.
2012-10-24 06:02:37 -07:00
Marcus Smith 403f8d53a5 --user installs work properly with --upgrade 2012-10-17 22:59:43 -07:00
Marcus Smith cdcdf459bc 'pip wheel' doesn't support py25 2012-10-16 16:39:56 -07:00