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

3846 commits

Author SHA1 Message Date
Mark Kohler
ee0f460f02 Add setup_requires caveat to repeatability section. 2015-04-22 16:00:14 -07:00
Donald Stufft
83815df61e Merge pull request #2709 from rbtcollins/brokenout-4
Consolidate listification of _package_versions.
2015-04-22 15:23:28 -04:00
Robert Collins
e6cced6026 Consolidate listification of _package_versions.
All uses but one of _package_versions want a list, and the last one
is not special in terms of memory footprint: just return a list from
_package_versions.
2015-04-23 06:43:28 +12:00
Donald Stufft
eead4a3767 Merge pull request #2708 from rbtcollins/brokenout-3
Create a Search object.
2015-04-22 14:13:52 -04:00
Robert Collins
86b375c742 Create a Search object.
We currently recalculate safe_name on every archive we assess, and
with the upcoming per-package check for binary and source use we
either need to recalculate that too, or - as this patch does - hoist
this essentially static data out of the helper function innards into a
static data structure.
2015-04-22 07:42:41 +12:00
Marcus Smith
6cc0e28f1d Merge pull request #2707 from rbtcollins/brokenout-2
Cleanup now use_wheel is the default.
2015-04-20 19:44:51 -07:00
Marcus Smith
8092411615 Merge pull request #2706 from rbtcollins/broken-out
Remove spurious use_wheel use.
2015-04-20 19:41:57 -07:00
Robert Collins
62041d3ca8 Cleanup now use_wheel is the default.
There were a bunch of tests passing use_wheel unnecessarily, this
makes the change to remove use_wheel larger than it needs to be.
2015-04-20 20:12:03 +12:00
Robert Collins
0b54000dc6 Remove spurious use_wheel use.
We can use the same sort algorithm always, as long as we don't add
wheels to the collection we can't ever select them. We need to have
the same sort algorithm always since we're getting rid of use_wheel,
and being much more sophisticated.
2015-04-20 20:12:03 +12:00
Donald Stufft
0e1704ac85 Merge pull request #2693 from rbtcollins/optionmaker
Optionmaker
2015-04-16 23:22:55 -04:00
Robert Collins
787d374034 Remove OptionMaker
This class just existed to let us call something later, which is
exactly what partial does for trivial cases. Because of mutable
default parameters actual functions are needed sometimes, but
I think on balance its an improvement.
2015-04-17 15:04:25 +12:00
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