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

251 commits

Author SHA1 Message Date
Donald Stufft 7113e434a6 Merge pull request #2629 from xavfernandez/index_cleanup
Index cleanup
2015-04-07 06:10:40 -04:00
Xavier Fernandez a1451b192d add expand_dir arg to _sort_locations 2015-04-07 10:59:14 +02:00
Xavier Fernandez d8609a5890 Log all skipped link the same way 2015-04-07 10:41:03 +02:00
Donald Stufft 7288475118 We no longer need to handle a static build directory 2015-04-07 04:20:51 -04:00
Donald Stufft b7309c6bcc Remove the items deprecated for removal in 7.0 2015-04-07 04:20:51 -04:00
Donald Stufft a510b2229e Reverts #2493 - Upgrades will again contact the index 2015-04-04 14:21:40 -04:00
Xavier Fernandez 1683f2caf6 PackageFinder._find_all_versions only needs the project_name 2015-03-27 17:38:50 +01:00
Xavier Fernandez 8bff8b5411 PackageFinder._get_index_urls_locations only needs req_name
and InstallRequirement does not need its url_name property anymore
2015-03-27 17:31:05 +01:00
Marcus Smith 39ae3c3459 Merge pull request #2552 from takluyver/uninstall-symlinks
Don't follow symlinks when uninstalling files
2015-03-22 08:36:10 -07:00
Thomas Kluyver b5d84a0dba Fix monkeypatching of is_local() 2015-03-20 16:18:43 -07:00
Thomas Kluyver 94c63a78c1 Fix pep8 in tests again 2015-03-20 16:18:33 -07:00
Thomas Kluyver 068dfd7bd9 Simplify tests using pytest fixtures 2015-03-20 16:09:34 -07:00
Marc Abramowitz d02cb6de43 Speed up _filter_install function
This speeds up the _filter_install function that is used to filter the
output of `python setup.py install` when installing packages. It does
this by using a single regex which is pre-compiled and thus avoiding a
`for` loop over 15 different regexes.

Before:

    $ python
    Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import timeit
    >>> timeit.timeit("""_filter_install("if we've already set distribute as a conflict to setuptools blah blah blah blah")""", setup='from pip.req.req_install import InstallRequirement; ir = InstallRequirement("foo", None, None); _filter_install = ir._filter_install')
    21.220640897750854

After:

    $ python
    Python 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import timeit
    >>> timeit.timeit("""_filter_install("if we've already set distribute as a conflict to setuptools blah blah blah blah")""", setup='from pip.req.req_install import InstallRequirement; ir = InstallRequirement("foo", None, None); _filter_install = ir._filter_install')
    0.9454500675201416
2015-03-19 19:27:19 -07:00
Thomas Kluyver 7034545111 Make pep8 linter happy 2015-03-19 09:35:53 -07:00
Thomas Kluyver 7982ecc1e8 Make pep8 a bit happier
Still not very happy
2015-03-18 17:45:53 -07:00
Thomas Kluyver 9f66f31d42 Add tests for UninstallPathSet 2015-03-18 17:37:24 -07:00
Thomas Kluyver e1989f0d1a Add test for normalize_path()
And call abspath() when not following symlinks
2015-03-18 16:02:30 -07:00
Donald Stufft 34073df838 Merge pull request #2493 from msabramo/issue-770-redux
Fix for #770: pip install -U shouldn't look at pypi if not needed
2015-03-17 07:26:34 -04:00
Marc Abramowitz 94fcd18ed4 Fix for #770: pip install -U shouldn't look at pypi if not needed
If an exact version is specified for install, and that version is
already installed, then there is no point going to pypi as no install
is needed.

Adds a test called
`test_upgrade_no_look_at_pypi_if_exact_version_installed`.

This is a rework of PR #771, because that PR is old and has merge
conflicts that were easier to fix by applying the changes manually.
2015-03-16 22:30:13 -07:00
Donald Stufft 598d5bad29 Merge pull request #2547 from pypa/revert-2513-ssh_and_commit_support
Revert "#2414: parse SSH repositories url with a commit hash"
2015-03-16 17:38:45 -04:00
Marc Abramowitz d04850659c Make get_dist handle egg_info_path w/ slash at end
Without this, I was getting:

    $ pip install -U 'sentry[lol]'
    ...
      UnknownExtra: Unknown 7.4.1 has no such extra feature 'lol'

With this, I get:

    $ pip install -U 'sentry[lol]'
    ...
      UnknownExtra: sentry 7.4.1 has no such extra feature 'lol'
2015-03-16 11:48:41 -07:00
Donald Stufft fca91e1aff Revert "#2414: parse SSH repositories url with a commit hash" 2015-03-16 13:57:41 -04:00
Donald Stufft cc7d178712 Fix tests 2015-03-16 08:44:02 -04:00
Donald Stufft 0de8e98708 Merge pull request #2496 from msabramo/test_req_add_tests
Add test_{str,repr} to tests/unit/test_req.py
2015-03-16 07:57:28 -04:00
Donald Stufft 06473be631 Merge pull request #2513 from Eyepea/ssh_and_commit_support
#2414: parse SSH repositories url with a commit hash
2015-03-16 07:35:36 -04:00
Xavier Fernandez 2038c1af10 add intermediary tests for finder priorities
- test finder._find_all_versions results
- replace dead test with gmpy and dead c.pypi.python.org mirror
  by pip on pypi/warehouse
2015-03-15 12:07:06 +01:00
Xavier Fernandez 9d0fcf7ef5 rename to _get_index_urls_locations and fix docstring 2015-03-15 12:07:06 +01:00
Xavier Fernandez 7db5cdc7f9 add some tests on find_requirement parts 2015-03-15 12:07:06 +01:00
Marc Abramowitz 16a7c81bcf Break long lines to make pep8 happy 2015-03-12 04:04:09 -07:00
Ludovic Gasc (GMLudo) 10f70849fd Add unit tests for Git SSH parsing + remove a bug with explicit SSH URLs 2015-03-11 23:47:01 +01: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
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
Xavier Fernandez c52bc3e858 add missing test of is_wheel False evaluation 2015-03-06 23:46:44 +01:00
Marc Abramowitz 90a7edfcca Add test_{str,repr} to tests/unit/test_req.py
Corrects my failure to include a test with
https://github.com/pypa/pip/pull/2495
2015-03-06 08:56:24 -08: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
Donald Stufft 0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Paul Moore 18748b3de6 Make pip.utils.rmtree retry in case antivirus etc holds a directory 2015-02-04 20:34:24 +00:00
Donald Stufft 7bfeb3a527 Merge pull request #2354 from sYnfo/master
Mark tests requiring Internet access
2015-01-15 06:58:50 -05:00
Matej Stuchlik c5024dc851 Mark tests requiring Internet access 2015-01-15 00:53:15 +01:00
Richard Jones 919554ce63 don't try to load the state file if it does not exist 2015-01-06 16:11:00 +11:00
Donald Stufft 86205b1fac Merge pull request #2311 from dstufft/fix-windows-more
Remove some other places we called os.geteuid()
(cherry picked from commit 40ef6da47a)
2015-01-03 04:02:22 -05:00
Donald Stufft adb7a3c83f Remove some other places we called os.geteuid() 2015-01-03 03:35:38 -05:00
Donald Stufft 45f0a12e8a Merge pull request #2303 from dstufft/ensure-directory-exists
Ensure that the directory exists when we create the user cache dir
(cherry picked from commit d89f3eaa20)
2015-01-03 01:11:02 -05:00
Donald Stufft 841ebe4bfe Merge pull request #2288 from xavfernandez/fix_dependency_links_log
fix finder debug log for dependency links
(cherry picked from commit 6531a2db3e)
2015-01-03 01:00:17 -05:00
Donald Stufft 77270b868b Ensure that the directory exists when we create the user cache dir 2015-01-02 23:38:53 -05:00
Xavier Fernandez bd2a789578 fix finder debug log for dependency links
fixes #2282
2014-12-30 14:41:55 +01:00
Donald Stufft 5f414a69c6 Don't return cached output for InstallRequirement().installed_version 2014-12-23 07:39:13 -05:00
Donald Stufft 8d3de97d34 Adjust tests to compensate for --trusted-hosts 2014-12-20 18:03:38 -05:00