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

197 commits

Author SHA1 Message Date
Xavier Fernandez 39c24740d8 move critical warning to find_requirement
and away of _find_all_versions that will return an empty list
2015-03-15 12:07:06 +01:00
Xavier Fernandez a25bfa968c add minimal find_requirement docstring 2015-03-15 12:07:06 +01:00
Xavier Fernandez 7471ede36d no need to recheck what we have just inserted 2015-03-15 12:07:06 +01:00
Xavier Fernandez 897e18f004 add _find_all_versions 2015-03-15 12:07:06 +01:00
Xavier Fernandez df57e0221d rename found_versions to find_links_version
to better reflect its role
2015-03-15 12:07:06 +01:00
Xavier Fernandez 04e5d9fead Fix _link_package_versions docstring 2015-03-15 12:07:06 +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
Marc Abramowitz 2c7bc73bd4 pip/index.py: Add import of normalize_path 2015-03-06 17:57:26 -08:00
Xavier Fernandez 3fcf5972bc add is_wheel method to Link class 2015-03-05 11:04:41 +01:00
Paul Moore 2102cdb8ec Normalize paths starting with ~ in find-links 2015-02-24 16:38:07 +00:00
Donald Stufft 0bc8aa5622 Style fixes for the latest flake8 2015-02-24 07:46:10 -05:00
Donald Stufft 11824349d4 Decode Link().path before using it 2015-02-02 18:06:43 -05:00
Donald Stufft b329b266ec Remove a no longer needed warning due to the update of PEP 440 2015-01-03 01:14:36 -05:00
Xavier Fernandez bd2a789578 fix finder debug log for dependency links
fixes #2282
2014-12-30 14:41:55 +01:00
Donald Stufft b0e660fe91 An extra comma was causing certain debug messages to blow up 2014-12-29 12:53:45 -05:00
Marc Abramowitz 556dd7b1e1 Warn about > being an exclusive operator now.
E.g.: `pip install 'prettytable>0.7'` will no longer install
`prettytable==0.7.2`, because of PEP 440.

Hopefully prevents the kind of confusion see in
https://bitbucket.org/pypa/setuptools/issue/301/101-in-requirementparse-foo-10-results

    $ pip install 'prettytable>0.7'
    Collecting prettytable>0.7
      The behavior of the `>` version specifier has changed in PEP 440. `>` is now an exclusive operator, meaning that >0.7 does not match >0.7.*.
      Perhaps you want `>=` instead of `>`?
      Could not find a version that satisfies the requirement prettytable>0.7 (from versions: )
      No distributions matching the version for prettytable>0.7
2014-12-22 16:53:16 -05:00
Donald Stufft c6755faab6 Restore the list of versions on an error 2014-12-22 16:53:16 -05:00
Donald Stufft e40734743e Ensure that Link().filename returns an unquoted filename 2014-12-18 20:27:43 -05:00
Davidovich 186be8c084 Only check for UNC path if url is not the Inf singleton. 2014-12-18 10:51:58 -05:00
Davidovich 1689291381 Refactored PR to use url2pathname and pathname2url. 2014-12-18 10:51:57 -05:00
Donald Stufft 82948cd49f Merge pull request #2205 from dstufft/fix-pep440-versions
Expand our regex to support the new PEP 440 version characters
2014-12-18 00:57:04 -05:00
Marc Abramowitz 383de6d30e Display URL downloading from
instead of just filename when using index other than PyPI.

It's useful to distinguish between downloading from PyPI or from an
internal devpi server, for example. In the latter case, it is useful to
see the full URL, to know which index pip is downloading from.

E.g.:

Downloading from PyPI is unchanged:

    $ pip install --no-cache-dir --ignore-installed Jinja2
    ...
      Downloading Jinja2-2.7.3.tar.gz (378kB)

But downloading from a different server results in displaying the full
URL:

    $ pip install --no-cache-dir --ignore-installed -i http://mirror.picosecond.org/pypi/simple jinja2
    ...
      Downloading http://mirror.picosecond.org/pypi/packages/source/J/Jinja2/Jinja2-2.7.3.tar.gz (378kB)
2014-12-17 15:28:58 -08:00
Donald Stufft 6b2cb9914f Expand our regex to support the new PEP 440 version characters 2014-12-16 21:54:35 -05:00
Marc Abramowitz 954b818f24 Reduce duplication of 'pypi.python.org'
by creating a PyPI object

Before:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/cmdoptions.py
    195:    default='https://pypi.python.org/simple/',

    pip/commands/search.py
    33:            default='https://pypi.python.org/pypi',

    pip/index.py
    305:            if page is None and 'pypi.python.org' not in str(main_index_url):
    706:                        ).netloc.endswith("pypi.python.org")):

    pip/utils/outdated.py
    107:                "https://pypi.python.org/pypi/pip/json",

After:

    $ ag --ignore=_vendor 'pypi.python.org' pip
    pip/index.py
    77:PyPI = Index(url='https://pypi.python.org/', trusted=True)
2014-12-16 08:21:24 -08:00
Donald Stufft 7d0cdaa796 Merge pull request #2186 from msabramo/smarter_about_displaying_message_about_fallback_to_simple
Don't warn about /simple/ fallback for PyPI
2014-12-14 14:49:28 -05:00
Marc Abramowitz 731783029f Don't warn about /simple/ fallback for PyPI
and display a little more info about the index used.
2014-12-14 00:57:23 -08:00
Donald Stufft 6f64d3e6e2 Implement PEP 440 2014-12-13 13:50:21 -05:00
Donald Stufft 09d8897ba9 Merge pull request #2162 from dstufft/trusted-hosts
Deprecate accessing non secure origins by default
2014-12-10 17:56:35 -05:00
Donald Stufft ddb2f1b459 Deprecate accessing non secure origins by default
* Deprecates accessing non secure origins by default, the list of
  which is taken from Chrome.
* Adds a --trusted-host flag to enable users to mark a specific
  host as a secure origin regardless of what we think.
* Refactors the original warning to better indicate the intent
  and the new flag.
2014-12-10 16:35:54 -05:00
Marc Abramowitz 3054cbc0f7 Eliminate some uses of mutable default args
See: GH-2163
2014-12-10 08:17:54 -08:00
Donald Stufft 9f10a05982 Fix #1100 - Use html5lib to decode the HTML response 2014-12-02 15:37:33 -05:00
Donald Stufft 9751d3c14b Document the loss of ftp:// and remove some left over code from it 2014-11-20 08:44:31 -05:00
Donald Stufft 9086993548 Properly handle equality of Link objects with other objects 2014-11-20 07:53:27 -05:00
Donald Stufft 958e6bc02a Merge pull request #2055 from bukzor/buck-del-unused-functions
delete two unused functions
2014-09-25 23:10:40 -04:00
Donald Stufft f72a9042f9 Deprecate the fallback to /simple/ 2014-09-25 22:13:16 -04:00
Donald Stufft 9c70565707 Do not look for /simple/{name}/version/ URLs anymore 2014-09-25 22:12:28 -04:00
Buck Golemon 32557a6474 just the @cached_property bit 2014-09-22 10:45:14 -07:00
Buck Golemon 894dc94233 delete two unused functions 2014-09-19 16:27:16 -07:00
Donald Stufft 0e96b1af4b Switch versioning from X.Y.Z to X.Y dropping the leading 1 2014-09-17 22:05:31 -04:00
Donald Stufft ec91d8e421 Move from pip.compat.* to six.moves.* for urllib related stuff 2014-09-11 18:40:45 -04:00
Donald Stufft 767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Pawel Jasinski 6e1abb91aa detect windows when running under IronPython 2014-08-12 02:26:24 +02:00
Richard Jones 704f658c63 don't complain about localhost when checking security of index links
based entirely off of Guy Rozendorn's work in PR #1718
2014-08-11 14:21:02 +10:00
Donald Stufft 90688e82b1 Revert "Merge pull request #1519 from dstufft/remove-dependency-links"
This reverts commit da02f073da, reversing
changes made to 2ad8888901.

Conflicts:
	CHANGES.txt
	pip/commands/freeze.py
	pip/commands/list.py
	pip/commands/wheel.py
	pip/index.py
	pip/req/req_set.py
	pip/vcs/subversion.py
2014-08-01 16:50:08 -04:00
Donald Stufft e05a759b6e Fix #1101 - Properly handle a <base> without a href 2014-06-13 07:49:56 -04:00
Matthew Iversen dcb0ee0702 Move backwardcompat package to compat module 2014-05-14 13:10:06 +10:00
Donald Stufft 52ca02608e Use CacheControl instead of custom cache code
* Deprecates the --download-cache option & removes the download
  cache code.
* Removes the in memory page cache on the index
* Uses CacheControl to cache all cacheable HTTP requests to the
  filesystem.
  * Properly handles CacheControl headers for unconditional
    caching.
  * Will use ETag and Last-Modified headers to attempt to do a
    conditional HTTP request to speed up cache misses and turn
    them into cache hits.
  * Removes some concurrency unsafe code in the download cache
    accesses.
  * Uses a Cache-Control request header to limit the maximum
    length of time a cache is valid for.
* Adds pip.appdirs to handle platform specific application
  directories such as cache, config, data, etc.
2014-05-09 18:28:20 -04:00
Donald Stufft 9f56b79e8d Don't warn when installing externally hosted files
Users who opted to install externally hosted files were being warned
about the possiblility of the availability of those files would be
unreliable. However this has caused some contention and confusion
and at this point they've already decided to do it, so there's no
reason to tell them again.
2014-05-08 12:18:31 -04:00
Donald Stufft 69bf70676a Reword this warning to be clearer about what it means 2014-05-08 10:19:53 -04:00
Donald Stufft 7037443975 Require an already created session to be passed into APIs 2014-05-06 22:37:46 -04:00