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

1992 commits

Author SHA1 Message Date
Xavier Fernandez
ceb79a6315 switch to tuple since stdlib_pkgs is a default value 2016-02-17 13:29:05 +01:00
Xavier Fernandez
67674e26d3 Directly store re.search 2016-02-17 13:29:05 +01:00
Xavier Fernandez
8233a83299 Merge pull request #3455 from bukzor/enable-warning-filters
enable python -W with respect to PipDeprecationWarning
2016-02-11 10:24:30 +01:00
Xavier Fernandez
496b7c1e64 Merge pull request #3466 from sbidoul/impl-3217-sbi
Allow installing modules from a vcs subdirectory in non-editable mode
2016-02-10 09:52:08 +01:00
Stéphane Bidoul
74e7b57cb5 reintroduce call to _build_req_from_url inadvertently removed in previous commit 2016-02-09 22:45:30 +01:00
Stéphane Bidoul
f3ca1b973f remove editable_options which is now obsolete code 2016-02-09 11:08:16 +01:00
Stéphane Bidoul
4ccfec0e80 make pip download work with vcs urls having the subdirectory option 2016-02-09 10:39:46 +01:00
Buck Golemon
584d96bfe9 add tests 2016-02-08 15:29:25 -08:00
Buck Golemon
2c46dc9b72 enable python -W with respect to PipDeprecationWarning 2016-02-08 11:27:17 -08:00
seanj
d7ee5a639f updated distlib to 0.2.2
This fixes an issue with tox/virtualenv/pip where the pip and wheel
shebang lines were wrapped with a quote " that prevents the command
from executing.

66e4805271/distlib/scripts.py (scripts.py-66)

I confirmed that with the updated distlib I was able to create a
virtualenv, and then install the updated `pip` into it.

```
virtualenv --no-wheel --no-pip --no-setuptools --python=jython jython.env
jython -c 'import sys, pip; sys.exit(pip.main(["install", "--ignore-installed"] + sys.argv[1:]))' pip
```

```
$ pip list
decorator (4.0.9)
ipython (4.1.1)
ipython-genutils (0.1.0)
path.py (8.1.2)
pexpect (4.0.1)
pickleshare (0.6)
pip (8.0.2)
ptyprocess (0.5.1)
py (1.4.31)
pytest (2.8.7)
requests (2.9.1)
setuptools (20.0)
simplegeneric (0.8.1)
simplejson (3.8.1)
six (1.10.0)
traitlets (4.1.0)
wheel (0.29.0)
```

Aside: The process for tracking and updating _vendor libs should be streamlined.
The Makefile blows away modified code, making it a manual process to update
vendored libs.
2016-02-08 10:27:00 -06:00
Stéphane Bidoul
3f4a796ff8 make pip wheel work with vcs urls having the subdirectory option 2016-02-08 16:42:57 +01:00
Stéphane Bidoul
1d759b3afa Allow installing modules from a vcs subdirectory in non-editable mode 2016-02-08 16:42:54 +01:00
Steve Kowalik
bb24797352 Update to packaging 16.1 2016-02-08 12:10:02 +11:00
Paul Moore
61f75c40ad Merge pull request #3448 from stonebig/patch-1
write only relative path in 'RECORD'
2016-02-07 08:31:49 +00:00
Xavier Fernandez
c18a38b338 Merge pull request #3453 from kennethreitz/master
exclude wheel from pip freeze
2016-02-06 21:47:54 +01:00
Kenneth Reitz
e5794e2bf8 exclude wheel from pip freeze 2016-02-04 18:43:10 -05:00
Jeremy Stanley
9597acdbba Case-insensitive match secure origin names
DNS is non-case-sensitive, so case mismatches between origin names
and any declared trusted hosts are also irrelevant.
2016-02-03 20:08:12 +00:00
stonebig
6716d906b3 simplify to assume Py2.6 and pypy 2016-02-02 22:00:45 +01:00
stonebig
64c5a11170 pep 8 2016-02-02 21:32:27 +01:00
stonebig
feb135011e pep 8 2016-02-02 21:22:17 +01:00
stonebig
8de0f2a31a write only relative path in 'RECORD'
RECORD now contains only relative path.
some bugs triggered by a bleeding edge usage of python may disappear a result (https://github.com/pypa/pip/issues/3433)
2016-02-02 21:09:21 +01:00
montefra
3c85765e67 Fix delimiter tuple 2016-02-02 13:52:09 +01:00
montefra
059481ca44 Use "=" as the sole delimiter when parsing the entry point dictionary 2016-02-02 13:50:46 +01:00
Nathaniel J. Smith
af675e7797 Make install --quiet really quiet
Commit 5bb989993 added some code for hiding/showing the cursor when
running on the terminal, but accidentally made it so that it always
printed the invisible control codes, even when not on a tty or when
--quiet was specified. This turns out to be surprisingly bad (e.g. it
breaks the official docker python builds). So, let's not do that.

Fixes gh-3418
2016-02-01 14:59:06 -08:00
Xavier Fernandez
48627ff97a Merge pull request #3412 from rygwdn/fix-freeze
pip freeze: handle new requirements options.
2016-01-31 23:15:07 +01:00
Donald Stufft
5a94590f0e Let ImportError while aliasing silently pass
This won't actually let the final error silently pass, since it
will mean that when pip attempts to import one of the aliased
modules we'll get the standard ImportError then instead of when
the aliasing attempts to happen.
2016-01-31 12:33:34 -05:00
Xavier Fernandez
24dc9b6361 Merge pull request #3372 from kaustavha/kaustavha/fix/double-reqs
fix(pip/req/req_set): Dont err on double reqs of the same spec
2016-01-25 23:48:22 +01:00
Donald Stufft
f8ebf7374f Bump for development 2016-01-21 18:51:01 -05:00
Donald Stufft
63d41a82af Bump version for release, update changelog 2016-01-21 18:48:12 -05:00
Donald Stufft
c77d4ab55e Stop trying to locate system trust stores
We started trying to locate the system trust stores, because
downstream was patching out our bundled copies anyways and it would
provide a smoother experience when people upgraded their pip inside
of their system.

However, if we just use OpenSSL's CAFile then we're broken on systems
like Debian which currently ship a broken CAFile configuration. If
we just use OpenSSL's CAPath then we're broken on systems like CentOS
and Fedora that currently are shipping a broken OpenSSL CAPath.

So basically, none of the major distributions seem to be capable of
shipping an OpenSSL that isn't broken, so we're going back to relying
on our own CA bundle exclusively.
2016-01-21 16:19:34 -05:00
Donald Stufft
7b71ae3b74 Bump for development 2016-01-21 14:44:30 -05:00
Donald Stufft
9b13df0ccb Bump versions for release 2016-01-21 14:33:33 -05:00
Donald Stufft
a2fdaefc97 Merge pull request #3389 from ianw/overwrite-distutils
Restore ability to uninstall distutils packages
2016-01-21 14:25:12 -05:00
Donald Stufft
ef3a780a4a Fix an unrelated thing that somehow never got tested before! 2016-01-21 10:12:20 -05:00
Donald Stufft
e32c9b5b08 Move the test for local items to earlier in uninstall process 2016-01-21 10:12:20 -05:00
Ryan Wooden
17fdbc8f8f pip freeze: handle new requirements options.
pip 8.0.0 added support for --pre, --trusted-host, and
--process-dependency-links to requirements files, but they were
not handled by freeze.
2016-01-21 10:55:43 -04:00
Donald Stufft
4938cb2b52 Deal with cross platform 2016-01-21 08:22:25 -05:00
Robert Collins
7b2fbb069a Stop erroring on installs of argparse and wsgiref. 2016-01-21 13:49:49 +13:00
Donald Stufft
c67e3ba987 Switch this from a RuntimeWarning to a logger.debug call 2016-01-20 10:58:40 -05:00
Donald Stufft
dde9702c08 Merge pull request #3397 from interrogator/develop
Fix OSX 10.11 release number splitting error
2016-01-20 10:15:30 -05:00
Donald Stufft
ad577befe1 Merge pull request #3398 from xavfernandez/pip_list_pre
pip list: reenable prereleases filter
2016-01-20 10:15:01 -05:00
Donald Stufft
851eae181b Merge branch 'master' into develop 2016-01-20 09:53:23 -05:00
Xavier Fernandez
171a107c34 pip list: reenable prereleases filter
according to --pre option

broken in 7fcf75bb61

closes #3385
2016-01-20 15:12:00 +01:00
daniel
36edd8d13a fix uninstall error 2016-01-20 15:02:25 +01:00
Donald Stufft
85fc78b558 Support CAPaths in addition to CAFiles 2016-01-20 07:32:19 -05:00
Xavier Fernandez
078083140b Merge pull request #2704 from rutsky/patch-2
fix typo: "maby"
2016-01-20 11:11:35 +01:00
kaustav haldar
fbfa7fbcfe fix(pip/req/req_set): If double requirements exist which have the same specs, dont raise a double requirement given error 2016-01-19 22:25:25 -08:00
Ian Wienand
35a3e8b7f5 Restore ability to uninstall distutils packages
This is a partial revert of 6afc718307
to restore the ability to overwrite distutils installed packages.

It is not elegant, but some projects (such as OpenStack's devstack)
rely on overwriting packages installed via the system package manager.
These packages can't be removed because they are dependencies for
parts of the base system, but many of the things devstack needs to run
requires later dependencies.  For historical reasons it's not easy to
fix this into a virtualenv, etc, all at once.

If distributions move to setuptools based packages, this problem might
fix itself.
2016-01-20 16:57:04 +11:00
Donald Stufft
1d189beea8 Bump version for development 2016-01-19 19:52:22 -05:00
Donald Stufft
6622f3cc52 Bump version to 8.0.0 for release 2016-01-19 19:36:29 -05:00
Donald Stufft
136b15f33e Merge pull request #3287 from sigmavirus24/bug/3282
Alias imports for vendored requests deps
2016-01-19 19:19:51 -05:00
Donald Stufft
8943ce44cb Merge pull request #3382 from dstufft/upgrade
Upgrade CacheControl to 0.11.6
2016-01-19 17:53:17 -05:00
Donald Stufft
0337e3399d Upgrade CacheControl to 0.11.6 2016-01-19 17:16:25 -05:00
Xavier Fernandez
18b5fc2c44 pip.wheel: change --wheel-dir default value
From <current working directory>/wheelhouse to <current working
directory> only to be consistent with pip download behavior.
2016-01-19 22:42:22 +01:00
Donald Stufft
1ae7707e96 Default to downloading to the current directory 2016-01-19 13:05:34 -05:00
Donald Stufft
3b3978b994 Merge pull request #3284 from ncoghlan/pep376-installer-file
Record pip in INSTALLER file
2016-01-19 10:41:08 -05:00
Donald Stufft
6f5e46fc54 Merge pull request #3376 from dstufft/more-policy
More bundling policy updates
2016-01-19 10:33:14 -05:00
Donald Stufft
54e2c81a7a Upgrade packaging to 16.0 2016-01-19 10:03:06 -05:00
Donald Stufft
0697d8bd3f Fix grammar 2016-01-19 08:52:29 -05:00
Donald Stufft
5e9617499d Clarify more in the policy 2016-01-19 08:52:21 -05:00
Donald Stufft
302875381a Update our policy on bundling 2016-01-19 07:32:10 -05:00
Donald Stufft
bcf61f4b40 Merge pull request #3374 from dstufft/close-file
Restore the close to this file object
2016-01-19 06:03:43 -05:00
Donald Stufft
60a728393c Merge pull request #3373 from dstufft/ssl-default
Use ssl.get_default_verify_paths() to get the system CABundle
2016-01-19 06:02:20 -05:00
Donald Stufft
2bde707063 Restore the close to this file object 2016-01-19 05:39:54 -05:00
Donald Stufft
d966eb9735 Use ssl.get_default_verify_paths() to get the system CABundle 2016-01-19 00:57:45 -05:00
Donald Stufft
d8d6fd0850 Merge pull request #3326 from xavfernandez/untar_timestamp
Make sure to keep the timestamp when untaring
2016-01-19 00:49:23 -05:00
Donald Stufft
a6e329fef4 Merge pull request #3371 from dstufft/upgrade
Upgrade colorama, ipaddress, lockfile, requests, and six
2016-01-18 23:51:12 -05:00
Donald Stufft
35feedebc1 Merge pull request #3324 from jsbarber/develop
Fix for issue #2834 with test
2016-01-18 23:21:09 -05:00
Donald Stufft
1a98cb8edf Upgrade html5lib to 1.0b8 2016-01-18 23:16:35 -05:00
Donald Stufft
38754585a1 Upgrade setuptools to 19.4 2016-01-18 23:16:35 -05:00
Donald Stufft
8ef42523cf Upgrade six to 1.10.0 2016-01-18 18:29:52 -05:00
Donald Stufft
c7214084a0 Upgrade requests to 2.9.1 2016-01-18 18:28:54 -05:00
Donald Stufft
857da63b7c Upgrade lockfile to 0.12.2 2016-01-18 18:26:22 -05:00
Donald Stufft
98b8106770 Upgrade ipaddress to 1.0.16 2016-01-18 18:24:50 -05:00
Donald Stufft
4f4d8a683b Upgrade colorama to 0.3.6 2016-01-18 18:23:50 -05:00
Donald Stufft
3ae13b2e35 Merge pull request #3312 from sbidoul/no-branch-in-egg-name-sbi
stop the addition of the branch name in the #egg=... fragment
2016-01-18 18:04:03 -05:00
Xavier Fernandez
b47c14405b Provide an alternative to os.path.samefile
For windows under python2
2016-01-17 22:40:46 +01:00
Xavier Fernandez
c9b48feea6 Fix test_relative_local_nested_req_files 2016-01-17 22:40:46 +01:00
Xavier Fernandez
fec74b29c0 Fix test_locations unit tests on windows 2016-01-17 22:40:46 +01:00
Xavier Fernandez
81ce0deca2 No need to sort the candidates, just find the best 2016-01-15 10:19:07 +01:00
Xavier Fernandez
e126033ad5 keep the compatible_versions list 2016-01-15 10:19:07 +01:00
Xavier Fernandez
d1136dda3e Add support for .xz files (with python >=3.3)
Closes #722
2016-01-14 22:39:45 +01:00
Donald Stufft
033fac5ee6 Allow all wheels from PyPI
It's unlikely that we're going to need any changes in pip itself
to support linux enabled wheels except for maybe a more specific
platform tag. If a more specific platform tag is needed then older
pip's won't install that anyways. This should allow experimentation
with some possible solutions to linux enabled wheels.
2016-01-14 13:54:31 -05:00
Stéphane Bidoul
b5db433163 remove unused arguments find_tags in vcs.get_src_requirement 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
4b79192c4a remove unused code 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
d362ada5a4 pep8 2016-01-14 19:04:04 +01:00
Stéphane Bidoul
6f790d1d80 stop the addition of the branch name in the #egg=... fragment 2016-01-14 19:04:02 +01:00
Xavier Fernandez
21fb8a28f0 Dont raise on #egg metadata mismatch, just warn
Since pip 7, via pip freeze, is producing such mismatching #egg
fragment, forbidding them in pip 8 would be too strongly
backward-incompatible.
It is a partial rollback of 1a012bb6.
2016-01-14 00:30:02 +01:00
Xavier Fernandez
99aa8f9b78 Merge pull request #3346 from dalito/fix_svn_issue_#1062
Fix for svn related bug #1062
2016-01-14 00:26:00 +01:00
David Linke
25a84f1a02 Avoid error with svn >= 1.7 which does no longer have an entries-file to read from (fixes #1062) 2016-01-07 23:22:10 +01:00
Xavier Fernandez
ac0bb3f444 Ignores invalid urls with warning
for non-existing paths or url without scheme

closes #2968
2016-01-07 23:08:37 +01:00
Jeff Barber
24a5cc6a42 Fix for issue #2834 with test 2016-01-03 17:38:36 -05:00
Xavier Fernandez
097e36ac27 simplify list --outdated command 2016-01-03 15:07:12 +01:00
Xavier Fernandez
e0904eb5d2 Rename _find_all_versions to find_all_candidates 2016-01-03 15:07:12 +01:00
Ville Skyttä
8e436d994d Let logging format messages on demand 2016-01-03 00:21:59 +02:00
Alex Gaynor
3ac8970199 conditional fix 2016-01-02 14:29:35 -05:00
Alex Gaynor
e9b8a4d83d by order of the high commisioner on software, Python 2.6 is extremely illegal 2016-01-02 14:11:20 -05:00
Alex Gaynor
e0961df48b Include the OpenSSL version in the user agent 2016-01-02 14:06:41 -05:00
Xavier Fernandez
85e143c23d content_type is not used 2016-01-02 18:59:31 +01:00
Xavier Fernandez
227572f757 Make sure to keep the timestamp when untaring
closes #3201
2016-01-02 17:08:24 +01:00