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

31 commits

Author SHA1 Message Date
Donald Stufft
09542477a9 Allow --allow-all-external inside of a requirements.txt 2015-05-22 17:51:35 -04:00
Donald Stufft
56d5076ee2 Hide setup.py output unless using -v 2015-05-20 21:27:12 -04:00
Matthew Trumbell
714a727571 Added tests for extras specifications as part of requirement parsing. Breaking tests are in preparation of a fix for #1236. 2015-05-14 11:21:51 -05:00
Marcus Smith
744b3bde3a doc strings for nested requirement file tests 2015-05-01 16:30:14 -07:00
Marcus Smith
5b6ba9cbcd pep8 fix 2015-05-01 16:15:52 -07:00
Marcus Smith
924215fab9 tests for nested requirements files 2015-05-01 16:04:20 -07:00
Marcus Smith
769782c477 pep8 fix 2015-04-24 22:37:29 -07:00
Marcus Smith
7c83f8d3cd 1) parse with defaults set as they are naturally (vs forcing to None)
and adjust the logic to match; the result is simpler.
2) Due to #1, we can remove some hairy "format_control" hacks
3) Due to #1, we have to relax the parsing and allow:
   - multiple options per line
   - any supported option on a line with a requirement (not just
     --install-option/--global-option, although they are the only
     options that are passed into a requirement)
2015-04-24 22:32:26 -07:00
Robert Collins
582af6e684 Issue #2677: Disable wheels for setup.py options.
Using --install-options, --build-options, --global-options changes
the way that setup.py behaves, and isn't honoured by the wheel code.
The new wheel autobuilding code made this very obvious - disable
the use of wheels when these options are supplied.
2015-04-24 16:14:48 +12:00
Robert Collins
6aec23cafe Issue #2675: Granular control over wheels/sdists
With wheel autobuilding in place a release blocker is some granular
way to opt-out of wheels for known-bad packages. This patch introduces
two new options: --no-binary and --only-binary to control what
archives we are willing to use on both a global and per-package basis.

This also closes #2084
2015-04-24 08:52:48 +12:00
Marcus Smith
b911339625 Merge remote-tracking branch 'pypa/develop' into refactor_req_file
Conflicts:
	pip/req/req_file.py
2015-04-23 02:21:01 -07:00
Marcus Smith
55e7bd3daa handle requirement specifiers with spaces, e.g. "pkg >= 1" 2015-04-23 01:31:48 -07:00
Robert Collins
ec46a3bac4 Replace wheel cache cache_dir with an object.
Wheel cache lookups become more complex when we wish to allow binary
blacklisting. Rather than passing more parameters around, replace
cache_root with wheel_cache, and create a wheel cache in all the
relevant command entry points.
2015-04-23 10:03:50 +12:00
Marcus Smith
5c4632f8b0 pep8 fixes 2015-04-18 13:24:44 -07:00
Marcus Smith
b590ab436b tests for: joining lines, skipping regex, and appending options 2015-04-18 12:32:30 -07:00
Marcus Smith
9c66633c29 - fixes to TestOptionVarants
- consistent use of the finder fixture
2015-04-18 11:59:17 -07:00
Marcus Smith
bed77a971a remove duplicate test 2015-04-18 11:56:17 -07:00
Marcus Smith
49e9ac1a86 tests for option variants 2015-04-18 11:53:14 -07:00
Marcus Smith
437871878b process_line tests for setting attributes on the finder, and the fixes for problems that were found 2015-04-18 11:42:06 -07:00
Marcus Smith
764e468f42 refactor the requirements file parsing
two major changes:

1) re-use the optparse options in pip.cmdoptions instead of maintaining
   a custom parser

2) as a result of #1, simplify the call stack
    from:  parse_requirements -> parse_content -> parse_line
      to:  parse_requirements -> process_line

beyond #1/#2, minor cosmetics and adjusting the tests to match
2015-04-16 22:10:46 -07:00
Robert Collins
4926409340 Issue #2563: Read cached wheels from ~/.cache/pip
This won't put wheels into that directory, but will read them if they
are there. --no-cache-dir will disable reading such wheels.
2015-04-13 18:33:07 +12:00
Marcus Smith
331524259b fix join_lines test 2015-04-13 00:07:15 +02:00
Marcus Smith
fc5c6e5026 tests for: isolated mode, default vcs, ignoring comments, setting the finder, joining lines, 2015-04-13 00:07:15 +02:00
Marcus Smith
480a6f4245 add tests for raising RequirementsFileParseError 2015-04-13 00:07:15 +02:00
Marcus Smith
81a41e49d8 pep8 fixes 2015-04-13 00:07:15 +02:00
Marcus Smith
9159a1db2a assert the order of the install/global options in the install call 2015-04-13 00:07:15 +02:00
Marcus Smith
1294c0d9a7 replace use of obscure '--one-two-3' option in test 2015-04-13 00:07:15 +02:00
Marcus Smith
90f17915be consolidate tests from test_req to test_req_file 2015-04-13 00:07:15 +02:00
Marcus Smith
6c747be598 move some tests from test_req to test_req_file 2015-04-13 00:07:15 +02:00
Marcus Smith
e26d67c4cf tests for pip.req.req_file 2015-04-13 00:07:15 +02:00
Marcus Smith
d051669149 create new test module for req_file.py and stub out the classes 2015-04-13 00:07:15 +02:00