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

3545 commits

Author SHA1 Message Date
Cory Benfield
06ea5fc05d Create pyversion_tuple 2015-03-15 15:32:47 +00:00
Cory Benfield
a792ad3a7a Expect urllib3 platform warnings. 2015-03-15 14:56:08 +00:00
Cory Benfield
91183b5cf8 Upgrade requests to 2.6.0.
Also brings urllib3 to 43b5b2b452e4344374de7d08ececcca495079b8d
2015-03-15 12:08:47 +00:00
Paul Moore
5a32a4d34a Merge pull request #2525 from msabramo/test_freeze_mercurial_clone_remove_dep_on_bitbucket
test_freeze_mercurial_clone: no dep on bitbucket
2015-03-12 11:03:42 +00:00
Paul Moore
3ba9132b11 Merge pull request #2524 from msabramo/create_test_package_svn_path_to_url
_create_test_package use path_to_url for svn; makes test_freeze_svn work on Windows
2015-03-12 11:02:29 +00:00
Marc Abramowitz
415fca8bf7 test_freeze_mercurial_clone: no dep on bitbucket 2015-03-11 22:29:58 -07:00
Marc Abramowitz
5622755753 _create_test_package use path_to_url for svn
because `path_to_url` is smarter than the ad-hoc code I hacked together.
In particular, it works on Windows, whereas my code didn't. This
prevents the following error on Windows:

    Script result: svn import c:\users\admini~1\appdata\local\temp\pytest-27\test_freeze_svn0\workspace\scratch\version_pkg file://c:\users\admini~1\appdata\local\temp\pytest-27\test_freeze_svn0\workspace\scratch\pip-test-package-repo\trunk -m Initial import of pip-test-package
      return code: 1
    -- stderr: --------------------
    svn: E170000: Illegal repository URL 'file://c:%5cusers%5cadmini~1%5cappdata%5clocal%5ctemp%5cpytest-27%5ctest_freeze_svn0%5cworkspace%5cscratch%5cpip-test-package-repo%5ctrunk'
2015-03-11 19:02:19 -07:00
Matt Iversen
554303b26f Merge pull request #2514 from msabramo/test_freeze_remove_dep_on_PyPI
test_freeze: Don't depend on PyPI for two initools installs
2015-03-12 11:13:10 +11:00
Paul Moore
ffc5acf257 Merge pull request #2522 from msabramo/pip_vcs_add_logging
Do logging of VCS registration/determination
2015-03-11 22:57:23 +00:00
Paul Moore
c38291e05a Merge pull request #2515 from msabramo/test_freeze_remove_dep_on_launchpad
Make test_freeze_bazaar_clone not depend on bazaar.launchpad.net
2015-03-11 22:57:01 +00:00
Marc Abramowitz
7f5566fea4 Make test_freeze_bazaar_clone not depend on bazaar.launchpad.net 2015-03-11 15:07:35 -07:00
Marc Abramowitz
029c64541a Do logging of VCS registration/determination
Useful for debugging issues (like non-determinism that occurs if a
directory has both a .git and .svn directory for example).
2015-03-11 14:18:48 -07:00
Paul Moore
80106081de Merge pull request #2512 from pfmoore/remove_find_command
Remove find_command - let subprocess.Popen search PATH for the VCS comma...
2015-03-11 20:32:44 +00:00
Paul Moore
1969568b0d Merge pull request #2517 from msabramo/test_freeze_svn_remove_dep_on_bitbucket
test_freeze_svn: No dep on bitbucket
2015-03-11 20:29:37 +00:00
Paul Moore
5def2668bd Merge pull request #2516 from msabramo/test_freeze_remove_dep_on_github
test_freeze_git_clone: No dep on github.com
2015-03-11 20:29:08 +00:00
Paul Moore
6ac0ce368e Merge pull request #2500 from msabramo/add_test_tilde
Add test_finder.test_tilde unit test
2015-03-11 18:13:09 +00:00
Marc Abramowitz
1141e6cdc4 test_freeze_git_clone: No dep on github.com 2015-03-11 10:30:17 -07:00
Marc Abramowitz
f4ee579304 test_freeze_svn: No dep on bitbucket
Instead of using local_checkout, which downloads a 204 KB dump file from
http://bitbucket.org/hltbra/pip-initools-dump/raw/8b55c908a320/INITools_modified.dump,
use `svnadmin create` and `svn import` to create an svn repo on the fly.
2015-03-11 10:26:35 -07:00
Marc Abramowitz
886f38e806 Add test_finder.test_tilde unit test
Adds a `test_tilde` test to augment @pfmoore's work in
https://github.com/pypa/pip/pull/2455 ("Normalize paths starting with ~
in find-links")

This would've caught the missing import problem we had
(https://github.com/pfmoore/pip/pull/1).
2015-03-11 09:34:10 -07:00
Paul Moore
584b2d0f82 Remove find_command - let subprocess.Popen search PATH for the VCS command to run 2015-03-11 11:37:39 +00:00
Marc Abramowitz
43baad52a0 test_freeze: Don't depend on PyPI
by adding tests/data/packages/INITools-0.2.tar.gz so tests can get file
locally instead of from PyPI.
2015-03-10 17:02:05 -07:00
Donald Stufft
e5b1d4fded Merge pull request #2480 from romuald/patch-1
Display distribution name in assertion error
2015-03-09 12:41:45 -04:00
Romuald Brunet
8106522f64 Add explicit message in assertion error 2015-03-09 13:49:05 +01:00
Paul Moore
98df8386e8 Merge pull request #2455 from pfmoore/normalize_findlinks
Normalize paths starting with ~ in find-links
2015-03-07 10:59:50 +00:00
Paul Moore
eaac5804eb Merge pull request #1 from msabramo/pr2455_tweak_1
pip/index.py: Add import of normalize_path
2015-03-07 10:30:36 +00:00
Marc Abramowitz
2c7bc73bd4 pip/index.py: Add import of normalize_path 2015-03-06 17:57:26 -08:00
Donald Stufft
8f69e31ee7 Merge pull request #2280 from xavfernandez/url_to_link
Replace InstallRequirement.url attribute by a link attribute
2015-03-06 18:04:38 -05:00
Xavier Fernandez
c52bc3e858 add missing test of is_wheel False evaluation 2015-03-06 23:46:44 +01:00
Donald Stufft
5657013565 Merge pull request #2495 from msabramo/InstallRequirement_add_repr
Add __repr__ to InstallRequirement
2015-03-06 11:37:23 -05:00
Marc Abramowitz
8689ae4b51 Add __repr__ to InstallRequirement
This makes it easier to inspect with pdb.

Instead of:

    (Pdb++) req_to_install
    <pip.req.req_install.InstallRequirement object at 0x10459f7d0>

we get the much friendlier:

    (Pdb++) req_to_install
    <InstallRequirement object: wheel==0.24.0 in /Users/marca/python/virtualenvs/pip/lib/python2.7/site-packages>
2015-03-06 07:58:34 -08:00
Donald Stufft
7fbde56a68 Merge pull request #2490 from msabramo/install_less_output_changelog
CHANGES.txt: Add note about PR 2487 to 6.1.0
2015-03-05 21:54:38 -05:00
Marc Abramowitz
0d02b8344f CHANGES.txt: Add note about PR 2487 to 6.1.0 2015-03-05 18:27:48 -08:00
Donald Stufft
f893abc216 Merge pull request #2487 from msabramo/install_less_output_on_success_and_failure
install: Less output on success; once on failure
2015-03-05 20:15:36 -05:00
Marc Abramowitz
c1d21e35a3 install: Less output on success; once on failure
This fixes 2 aspects of `pip install output`:

1. When `pip install` succeeds, it's still printing a lot of output from
   the package's setup.py. The average consumer of Python packages, when
   they do `pip install lxml`, probably doesn't care to see a bunch of
   output about:

   - copying files to a `build` directory
   - installing and running Cython
   - compiling C code

   This is noise to most when the `pip install` succeeds. It's useful to
   see all the output when the install fails, which is the subject of #2
   below. On success, the output is now very clean with 5 short lines:

       $ pip install lxml
       Collecting lxml
         Using cached lxml-3.4.2.tar.gz
       Installing collected packages: lxml
         Running setup.py install for lxml
       Successfully installed lxml-3.4.2

2. When there's an error from `pip install`, it's annoying to have to
   scroll through 2 different copies of the failure output (especially when
   one is filtered and one is unfiltered so one might have stuff that the
   other doesn't). This makes it not print the filtered version so that
   there is just the unfiltered version and nothing is repeated.

       $ pip install ~/dev/git-repos/lxml
       Processing /Users/marca/dev/git-repos/lxml
       Installing collected packages: lxml
         Running setup.py install for lxml
           Complete output from command ...
           cc -c /var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/xmlCheckVersion4tBaVV.c -o var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/xmlCheckVersion4tBaVV.o
           /var/folders/gw/w0clrs515zx9x_55zgtpv4mm0000gp/T/xmlCheckVersion4tBaVV.c:1:10: fatal error: 'libxml/xmlversion.h' file not found
           #include "libxml/xmlversion.h"
                    ^
           1 error generated.
           ----------------------------------------
           Command "/Users/marca/python/virtualenvs/pip/bin/python -c ...

   None of the lines above are repeated.
2015-03-05 16:49:02 -08:00
Donald Stufft
89917c923a Merge pull request #2469 from Gillingham/update-to-requests-2.5.3
Upgrade requests to 2.5.3
2015-03-05 18:32:16 -05:00
Donald Stufft
540bc21835 Merge pull request #2451 from xavfernandez/uninstall_order
Reset uninstall order as before c509c5c4ab
2015-03-05 18:21:54 -05:00
Donald Stufft
f09efba574 Merge pull request #2486 from dstufft/pin-flake8
Pin flake8 to 2.3.0
2015-03-05 17:44:51 -05:00
Donald Stufft
e324b27b61 Pin flake8 to 2.3.0 2015-03-05 17:04:50 -05:00
Donald Stufft
7d17f312de Merge pull request #2484 from josePhoenix/install-user-option-explained
Fixes #2483: pip install --user option un(der)documented
2015-03-05 16:57:06 -05:00
Donald Stufft
c3576328a3 Merge pull request #2482 from msabramo/eliminate_blank_lines_from_setup_py_failure_output
Eliminate blank lines from setup.py failure output
2015-03-05 15:33:07 -05:00
Joseph Long
176d0c5fee Fixes #2483: pip install --user option un(der)documented 2015-03-05 13:39:14 -05:00
Marc Abramowitz
3f6722c7f6 Eliminate blank lines from setup.py failure output
Fixes a long-time annoyance that setup.py failure output has a blank
line after every line -- e.g.:

    $ pip wheel ~/dev/git-repos/lxml
    Processing /Users/marca/dev/git-repos/lxml
      ...
      /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/libxml2 -Isrc/lxml/includes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/lxml/lxml.etree.c -o build/temp.macosx-10.6-intel-2.7/src/lxml/lxml.etree.o -w -flat_namespace

      In file included from src/lxml/lxml.etree.c:314:

      src/lxml/includes/etree_defs.h:14:10: fatal error: 'libxml/xmlversion.h' file not found

      #include "libxml/xmlversion.h"

               ^

      1 error generated.

      error: command '/usr/bin/clang' failed with exit status 1
      ...
2015-03-05 09:53:35 -08:00
Romuald Brunet
98f57da736 Display distribution name in assertion error
When specs of distribution aren't correct, display the faulty distribution in for easier debugging
2015-03-05 13:56:24 +01:00
Xavier Fernandez
3fcf5972bc add is_wheel method to Link class 2015-03-05 11:04:41 +01:00
Xavier Fernandez
e8e2566279 replace InstallRequirement.url by a link attribute 2015-03-05 11:01:28 +01:00
Paul Moore
4d5eff4781 Merge pull request #2476 from pfmoore/list_outdated_type
pip list --outdated shows package type for latest version
2015-03-05 09:35:06 +00:00
Paul Moore
e3cc4656f6 pip list --outdated shows package type for latest version 2015-03-04 14:02:06 +00:00
Donald Stufft
ad0a129a18 Merge pull request #2465 from sigmavirus24/restrict-vendor-alias
Restrict VendorAliases to vendored packages
2015-03-02 15:17:48 -05:00
Donald Stufft
13df607899 Merge pull request #2463 from xavfernandez/quiet_compile
wheel installs: do not log empty lines
2015-03-02 15:16:38 -05:00
Donald Stufft
7ef169b37b Merge pull request #2464 from pjdelport/bugfix/unhide-cursor-on-sigint
Run the progress bar's cleanup code after keyboard interruptions.
2015-03-02 15:15:26 -05:00