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

1645 commits

Author SHA1 Message Date
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
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
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
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
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
d9c8452d78 Work around race conditions in the code 2013-08-27 06:47:26 -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
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
7975431d2d Don't set PYTHONDONTWRITEBYTECODE on setuptools 0.6.x 2013-08-22 03:52:23 -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
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 R
ebc40a16bf Merge from upstream project 2013-08-12 11:20:15 -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
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
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
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
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
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
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
60f8da5c41 4 more wheel tests 2013-06-06 19:11:43 -07: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
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