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

3815 commits

Author SHA1 Message Date
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
Donald Stufft 086e698eae Merge pull request #2584 from msabramo/tests_ignore_DoctestTextfile
Ignore DoctestTextfile when collecting
2015-04-07 14:56:42 -04:00
Donald Stufft 93ce6e5e90 Merge pull request #2653 from dstufft/ensure-dir
Create ensure_dir helper.
2015-04-07 09:10:31 -04:00
Robert Collins 12e719db78 Create ensure_dir helper.
We had a very widely used pattern which can be factored out for a mild
saving in LOC, and a gain in clarity.
2015-04-07 08:55:52 -04:00
Donald Stufft 1f9c3fed93 Merge pull request #2652 from dstufft/reduce-duplication
Reduce duplicate code in wheel and install commands.
2015-04-07 08:47:50 -04:00
Donald Stufft f41fee6a21 Reduce duplicate code in wheel and install commands.
(cherry picked from commit 9ed1dd75fc1d2c7a747066a90cd897db441319e0)
2015-04-07 08:36:14 -04:00
Donald Stufft 3f515f77dd Merge pull request #2651 from dstufft/fix-virtualenv-repr
Fix VirtualEnvironment repr for Python2.6.
2015-04-07 08:11:43 -04:00
Robert Collins 0692704c89 Fix VirtualEnvironment repr for Python2.6.
(cherry picked from commit b424e40d375851beea683f7dcdbe5134216a09b0)
2015-04-07 08:00:49 -04:00
Donald Stufft 5fdc76f370 Remove a broken import 2015-04-07 07:18:43 -04:00
Donald Stufft 92a15cd28b Remove the temporary shim 2015-04-07 07:16:06 -04:00
Donald Stufft d12060bd45 Merge branch 'master' into develop 2015-04-07 07:15:44 -04:00
Donald Stufft 701a80f451 Update the get-pip.py script with 6.1.1 2015-04-07 07:00:57 -04:00
Donald Stufft 573ddd44e5 bump version to 6.1.1 2015-04-07 06:35:59 -04:00
Donald Stufft cf31e40105 Merge branch 'release/6.1.1' 2015-04-07 06:35:36 -04:00
Donald Stufft 66c1d3bb6a Add a small shim for InstallRequirement.url 2015-04-07 06:27:36 -04:00
Donald Stufft 368294be59 Revert #2636 - It caused issues when stdlib things were dependencies 2015-04-07 06:23:26 -04:00
Donald Stufft 3175c418db bump version to 6.1.1.dev0 2015-04-07 06:23:26 -04:00
Donald Stufft 7113e434a6 Merge pull request #2629 from xavfernandez/index_cleanup
Index cleanup
2015-04-07 06:10:40 -04:00
Donald Stufft 1d58e09588 Merge pull request #2645 from techtonik/patch-3
pip_install.rst: Fix backslashes in Windows path
2015-04-07 05:39:31 -04:00
Xavier Fernandez e84cf4e490 Update changelog 2015-04-07 11:39:20 +02:00