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

2141 commits

Author SHA1 Message Date
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
45dc936de0 Define a hash seed for stable dictionary/set order on Python 3.3+ 2013-08-27 06:47:26 -04:00
Donald Stufft
55353004b4 Remove configuration for pip mirrors 2013-08-27 06:47:26 -04:00
Donald Stufft
5827fd133c Use pytest-xdist to distribute the tests over multiple CPUs
* We've selected a concurrency number of 16 because that's how
many CPUs the multiprocessing library tells us a Travis box has.
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
Marcus Smith
d3b63817c1 merge from 1.4.X 2013-08-26 19:17:55 -07:00
Marcus Smith
ecec56975b Merge pull request #1162 from clarete/develop
Cmds {install,wheel} should return proper error code
2013-08-26 19:03:11 -07:00
Marcus Smith
2a6cf632e8 authors and changelog update 2013-08-26 19:00:24 -07: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
Marcus Smith
4a722c6eba Merge pull request #1158 from qwcode/fix_1150
we'll assume '_' means '-' in versions from wheel filenames
2013-08-21 23:57:18 -07: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
ff6cef6c0d Require the newest version of scripttest 2013-08-21 22:40:17 -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
ad0191f79a Merge pull request #1148 from dstufft/switch-to-pytest
Switch to using py.test as the test runner instead of nose
2013-08-21 17:41:51 -07: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
Paul Moore
810370cb1e Merge pull request #1151 from pfmoore/universal
Add the universal flag to setup.cfg to create version-independent wheels
2013-08-20 10:32:47 -07:00
Paul Moore
979e0f4823 Add the universal flag to setup.cfg to create version-independent wheels 2013-08-20 11:39:56 +01:00
Marcus Smith
1f989ff32e merge from 1.4.X 2013-08-19 21:23:39 -07:00
Marcus Smith
37f2d9dae6 add 1.4.2 section to changelog 2013-08-19 21:18:20 -07:00
Marcus Smith
d3997896aa Merge pull request #1146 from qwcode/fix_1133
tar/zip unpack changes
2013-08-19 16:52:26 -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
Donald Stufft
8edf1775f0 Update changelog with changes for 1.5 2013-08-17 00:37:19 -04:00
Donald Stufft
467b8b8be0 Grammar 2013-08-16 12:59:56 -04:00
Donald Stufft
aa4955883c Remove runon sentence 2013-08-16 12:59:04 -04:00
Donald Stufft
7f4eebd296 Add a heading to the vendor README 2013-08-16 12:57:34 -04:00
Donald Stufft
f0ec094de4 Expand upon the vendor README 2013-08-16 12:56:16 -04:00
Donald Stufft
7d85007e13 Include the CVE identifier for mirror deprecation 2013-08-16 12:23:01 -04:00
Jannis Leidel
c6b3f0624a Merge pull request #1121 from pypa/warn-on-insecure
Warn when using an insecure transport for index or find-links
2013-08-15 07:36:24 -07:00
Donald Stufft
3c61ba7040 Warn when using an insecure transport for index or find-links 2013-08-15 09:29:11 -04:00
Paul Nasrat
e62ee5545b Merge pull request #1124 from dpursehouse/cookbook-grammar-fixes
Minor grammatical fixes in the cookbook
2013-08-11 18:40:45 -07:00
David Pursehouse
77665b9254 Minor grammatical fixes in the cookbook 2013-08-09 15:24:05 +09:00