Robert Collins
0e57ebc008
Make adding options be just function calls.
...
The .make is just sugar for 'call a function' that gets in the way of
just having functions.
2015-04-17 15:04:25 +12:00
Donald Stufft
a761f01800
Merge pull request #2685 from dstufft/upgrade-packaging
...
Upgrade packaging to 15.1
2015-04-14 22:12:58 -04:00
Donald Stufft
fca917354b
Upgrade packaging to 15.1
2015-04-14 20:32:22 -04:00
Donald Stufft
d043e4bcce
Merge pull request #2618 from rbtcollins/issue-2140
...
Issue #2140 : Build wheels during pip install
2015-04-13 10:12:48 -04:00
Robert Collins
08acb6670d
Issue #2140 : Build wheels automatically
...
Building wheels before installing elminates a cause of broken environments -
where install fails after we've already installed one or more packages.
If a package fails to wheel, we run setup.py install as normally.
2015-04-13 18:33:07 +12: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
Robert Collins
786ff8c607
Break out version extraction for reuse.
...
This is needed for determining the wheel-cachability of a requirement.
2015-04-13 18:33:07 +12:00
Marcus Smith
b5762ca9b5
update changelog for #2537
2015-04-12 17:14:23 -07:00
Marcus Smith
27c869b362
Merge pull request #2648 from techtonik/patch-3
...
README.rst add pypa-dev
2015-04-12 15:40:11 -07:00
Paul Moore
3b4373cb19
Merge pull request #2537 from gvalkov/reqfileopts
...
Add --install-options and --global-options to the requirements file parser.
2015-04-12 23:23:57 +01:00
Marcus Smith
331524259b
fix join_lines test
2015-04-13 00:07:15 +02:00
Marcus Smith
9f88946a38
remove comment about setuppyargs test package
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
12eab18bde
functional test for --install-option in a requirements file
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
Marcus Smith
351d809df6
remove the functional test. for this change, we can achieve as much confidence with unit tests that confirm what args are passed
2015-04-13 00:07:15 +02:00
Georgi Valkov
0da51b14d7
Remove misleading test cases and improve docs
2015-04-12 23:52:49 +02:00
Georgi Valkov
29f0c75c63
Do not shlex.split() and flatten value of global|install_options
2015-04-12 23:52:49 +02:00
Georgi Valkov
5a57325761
Fix pep8 compatibility
2015-04-12 23:52:49 +02:00
Georgi Valkov
1c0021b268
Add an --install|global-option functional test
2015-04-12 23:52:49 +02:00
Georgi Valkov
832c050ca4
Fix pep8 compatibility
2015-04-12 23:52:49 +02:00
Georgi Valkov
fbffb09ae7
Python 2/3 compatibiltiy fix
2015-04-12 23:52:49 +02:00
Georgi Valkov
00dc7559e0
Revert back to using options=None and fix loose ends
2015-04-12 23:52:49 +02:00
Georgi Valkov
7e1bcf5b85
Remove evil trailing comma
2015-04-12 23:52:49 +02:00
Georgi Valkov
0ab7a7bbb5
Use optparse and pip.cmdoptions for parsing requirement-line options
2015-04-12 23:52:49 +02:00
Georgi Valkov
4a70730617
Replace all occurrences of install|global-options with install|global-option
2015-04-12 23:52:49 +02:00
Georgi Valkov
d6e21b9d76
Use options={} instead of options=None.
2015-04-12 23:52:49 +02:00
Georgi Valkov
b014668b30
Add --install-options and --global-options to the requirements file parser
...
This allows lines such as the following to exist in requirements files:
INITools==0.2 --install-options="--prefix=/opt"
virtualenv>=1 --global-options="--no-user-cfg"
In addition, the requirements file parser was overhauled with simplicity
and clarity in mind.
2015-04-12 23:52:49 +02:00
Donald Stufft
c6e149f67b
Merge pull request #2665 from rbtcollins/broken-out
...
Fix only-download use in req_set.
2015-04-09 19:43:05 -04:00
Donald Stufft
92ea0851ec
Merge pull request #2659 from xavfernandez/check_markers
...
Always check environment markers
2015-04-09 18:40:09 -04:00
Robert Collins
ed511fac9c
Fix only-download use in req_set.
...
only_download means 'mark the extracted tree for automatic deletion'.
is_download in req_set indicates we're downloading to a user specified
directory - and has nothing to do with deleting the extracted tree.
The actual thing we want to use to control that is the removed
--no-install parameter.
Additionally for wheels we only want to mark the unpacked tree for
deletion when we're downloading the wheel (rather than installing it)
as otherwise the marker looks like part of the wheel.
2015-04-09 21:33:39 +12:00
Donald Stufft
f61fb6a178
Merge pull request #2664 from rbtcollins/broken-out
...
Add a docstring for RequirementSet.
2015-04-08 23:55:43 -04:00
Robert Collins
4387cad9f6
Add a docstring for RequirementSet.
2015-04-09 15:38:36 +12:00
Donald Stufft
6acf366e66
Merge pull request #2663 from rbtcollins/broken-out
...
Add functional test that we can install non-wheelable sdists.
2015-04-08 23:01:01 -04:00
Robert Collins
35ec67ab08
Add functional test that we can install non-wheelable sdists.
...
This is a preventative against breaking this as we add automatic
wheelisation.
2015-04-09 14:09:27 +12:00
Donald Stufft
5b76aa580e
Merge pull request #2662 from rbtcollins/broken-out
...
Fix req.__all__.
2015-04-08 22:06:37 -04:00
Robert Collins
13d4594025
Fix req.__all__.
2015-04-09 13:21:59 +12:00
Donald Stufft
87ab2a003e
Merge pull request #2661 from rbtcollins/broken-out
...
Rationalise wheel_dir usage.
2015-04-08 21:18:08 -04:00
Xavier Fernandez
4d475468c1
Drop the now useless comment
2015-04-08 00:16:02 +02:00
Robert Collins
fd33cd3ddf
Rationalise wheel_dir usage.
...
We we normalising it right before making it, after passing it
RequirementSet, which means RequirementSet also had to normalise it.
And then we passed it to WheelBuilder which as a result had to
normalise it too.
Instead, pass it as-is to RequirementSet, have that normalise it, and
then pull it back out in WheelBuilder.
2015-04-08 09:40:05 +12:00
Xavier Fernandez
a947c29903
Always check environment markers
...
Fixes #2658
2015-04-07 22:42:17 +02:00
Donald Stufft
0c9af4cad9
Merge pull request #2656 from msabramo/move_InstallationCandidate_to_pip_index
...
Move InstallationCandidate to pip.index
2015-04-07 15:27:18 -04:00
Marc Abramowitz
0684a9f478
Move InstallationCandidate to pip.index
...
Move InstallationCandidate from `pip.req.req_requirement` to
`pip.index`, the one place where it's used.
2015-04-07 11:56:57 -07:00