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

355 commits

Author SHA1 Message Date
Xavier Fernandez
3417fac05e Merge pull request #3898 from xavfernandez/check_if_exists_editable
Make pip install -e uninstall existing versions
2016-08-18 17:07:46 +02:00
Xavier Fernandez
5bd3367644 Merge pull request #3760 from patricklaw/pl.pip-install-additional-options
Pl.pip install additional options
2016-08-12 10:27:57 +02:00
Paul Moore
84c969669c Merge pull request #3724 from yamt/norm-path
Normalize file URLs
2016-08-09 18:23:56 +01:00
Xavier Fernandez
65a82a2eb0 Always check_if_exists for editable
But only when pip has collected the editable package's metadata.

closes #1548
2016-08-05 22:42:22 +02:00
Xavier Fernandez
73fc56e613 Merge branch 'pr/1552' into check_if_exists_editable 2016-08-05 22:11:13 +02:00
Xavier Fernandez
2badb05d19 Fix test_download_wheel
Use local path instead of bitbucket
2016-07-31 22:33:03 +02:00
Bruno Oliveira
c73abf81db Avoid importing TestFailure at the top level
This will make pytest-3.0 emit a warning:

cannot collect test class 'TestFailure' because it has a __init__ constructor
2016-07-28 21:36:45 -03:00
Paul Moore
c7e5f52c96 Merge pull request #3858 from cdosborn/master
Make pip show less verbose
2016-07-27 09:47:47 +01:00
Connor Osborn
ce868f9742 Increase pip show test coverage 2016-07-26 18:59:22 -07:00
Connor Osborn
357123fcf4 Fix existing tests for pip show with --verbose 2016-07-26 18:59:22 -07:00
Patrick Lawson
bbe99ce62d Add --implementation and --abi parameters to `pip download`.
Add thorough tests, usage documentation, and handle some merge issues.
2016-07-21 13:01:52 -05:00
Mathew Jennings
9a4be9b281 Add --platform and --python-version to pip download.
With the --platform option, a user can download wheels with
a different platform than that of the local machine running the command.

With the --python-version option, a user can
download wheels that are explicitly compatible with a specific
Python interpreter version.

This functionality is meant for utilities that gather dependencies
and prepare distributions for other platforms.
2016-07-21 13:01:52 -05:00
Pradyun S. Gedam
8b4ebc1ee5 Improve UX and tests of check command
This should really be 3 atomic commits but I'm short on time.

- Prints a message on clean environment
- Marked tests as network based
- Added helper that matches lines irrespective of order.
2016-06-26 19:53:38 +05:30
Paul Moore
d7444b784a Merge pull request #3750 from msabramo/check_command_rebase_develop
Add a `pip check` command.
2016-06-25 16:54:52 +01:00
Pradyun
e04941bba2 Update http urls to use https instead (#3808) 2016-06-22 14:06:28 -04:00
Jakub Wilk
6dc28c1b31 Fix typos 2016-06-10 21:29:43 +02:00
Donald Stufft
c4b30a460a Merge branch 'develop' 2016-05-26 07:02:32 -04:00
Calvin Smith
46b682221b Support multiple --requirement files in pip freeze (#3703) 2016-05-26 06:45:46 -04:00
Jivan Amara
36de76f0a5 Strip authentication from SVN url prior to passing it into svn (#3697) 2016-05-26 06:43:26 -04:00
Stéphane Bidoul (ACSONE)
4d1b798465 Allow creating wheels for editable packages (#3695) 2016-05-26 06:41:01 -04:00
Andy Kluger
e445dba634 Fix crash when calling pip freeze with invalid requirement installed (#3704) 2016-05-26 06:36:16 -04:00
Stéphane Bidoul (ACSONE)
ce76f2d3e6 Give priority to git remote named origin in pip freeze (#3708) 2016-05-21 08:12:37 -04:00
Xavier Fernandez
91afd80a39 Fix a bunch of other tests
Add a --no-index to avoid network calls
2016-05-19 15:31:46 +02:00
Xavier Fernandez
1e8b6c2fe7 Improve tests
Demote "Ignoring indexes" log to DEBUG to enable stdout JSON parsing
2016-05-19 15:31:46 +02:00
Xavier Fernandez
5bbc73d145 Add --format option to pip list
with legacy, columns, freeze and json formats
2016-05-19 15:31:46 +02:00
Douglas Thor
6dcd9dac2e Added --columns, --no-columns option to pip list. Fixes #3651 (#3654) 2016-05-12 13:13:48 -04:00
Ian Wienand
ec08a590d8 Root logger should use debug level for "--log" (#3586)
We want the root logger to output debug level logs when we have
specified "--log".  The log-file handler then sends this to our file,
and the other handlers (console) filter out at their appropriate
level.

This restores the intended behaviour of "--log" argument, which is
supposed to output verbose logs to a file always.

A test-case is added

Closes: #3351
2016-05-10 19:05:42 -04:00
burrows
3c11bb4de9 Give markers chance to remove incompat wheel links
`pip install -r reqs.txt` was failing when the requirements file includes
an unsupported wheel, regardless of whether it is conditionally removed
by a marker. This patch fixes that issue.

Additionally, this patch makes pip check local file wheels for
compatibility. Previously, a requirements file could include a path
to a valid wheel for any platform and pip would happily install it.
2016-04-07 13:00:03 -04:00
YAMAMOTO Takashi
742b9258d2 Normalize file URLs
It seems pip distinguishes paths with .. or extra / for constraints.
For example, the following directories are considered different.

    /path/to/dir
    /path/to//dir
    /path/to/dir/subdir/..

It can lead "Could not satisfy constraints for 'xxxx':
installation from path or url cannot be constrained to a version"
error, whose cause is not obvious to users. [1]

This commit tries to normalize the given directory name to avoid
the error.

[1] https://bugs.launchpad.net/devstack/+bug/1542545
2016-03-22 21:17:55 +09:00
Xavier Fernandez
09233da9d7 Hide the line if installer is unknown 2016-03-04 16:10:59 +01:00
Xavier Fernandez
dc533f8469 show: add PEP376 INSTALLER information
closes #3517
2016-03-04 13:55:39 +01:00
Xavier Fernandez
a0d6210905 pip.show: always show classifiers 2016-03-04 11:12:34 +01:00
Xavier Fernandez
dc1e89d854 Add --classifiers option to pip show 2016-03-04 11:12:11 +01:00
Donald Stufft
a1e308d847 Merge pull request #3458 from xavfernandez/freeze_all
Add --all option to pip freeze
2016-03-03 07:23:32 -05:00
Xavier Fernandez
5055d05a9a Fix always true assertion 2016-03-03 10:32:06 +01:00
Xavier Fernandez
01cd191402 Merge pull request #3505 from njsmith/fix-verbose-subprocess-output
Fix display of subprocess output when --verbose is given
2016-02-24 22:42:23 +01:00
Nathaniel J. Smith
113394250e Fix display of subprocess output when --verbose is given
Closes #3486
2016-02-23 15:13:55 -08:00
Xavier Fernandez
2956a3ef41 Add --all option to pip freeze
In order to include pip/setuptools/wheel in the freeze output
Closes #1610
2016-02-17 13:29:32 +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
Buck Golemon
584d96bfe9 add tests 2016-02-08 15:29:25 -08:00
Buck Golemon
9dabcffc80 we should expect that --no-use-wheel is deprecated 2016-02-08 11:27:17 -08:00
Stéphane Bidoul
1d759b3afa Allow installing modules from a vcs subdirectory in non-editable mode 2016-02-08 16:42:54 +01:00
Francesco Montesano
ab9c66e77d no need for expect_stderr 2016-02-02 13:50:46 +01:00
Francesco Montesano
a5a9c2191d test uninstall of entry points with colons in name 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
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
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
3f77110899 Fix tests 2016-01-21 12:34:59 -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