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

1342 commits

Author SHA1 Message Date
Donald Stufft 487925ea3f Isolate the tests from the shared data directory 2013-08-27 06:49:35 -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 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
Marcus Smith 9b4b651cc6 we'll assume '_' means '-' for versions from wheel filenames 2013-08-21 23:30:15 -07: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 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
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
Jorge Niedbalski abf27b5bd2 [tests] added test for subdirectory editable options 2013-07-24 12:25:35 -03: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
Marcus Smith 3b0eb9136a fix regexp for windows paths 2013-07-11 21:36:46 -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
Marcus Smith 3e460e6946 test merge fixes 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
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 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
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
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