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

42 commits

Author SHA1 Message Date
Xavier Fernandez 9725229888 Add --exclude option to pip freeze and pip list commands 2020-10-30 21:50:59 +01:00
Devesh Kumar Singh 528a193dda Fix incorrect comment in tests 2020-04-10 19:02:57 +05:30
Devesh Kumar Singh 2324ae422e Add unit tests for pip commands not using cwd 2020-04-05 23:17:03 +05:30
Devesh Kumar Singh feac595446 Don't use cwd in python -m pip command 2020-04-05 19:59:05 +05:30
Pradyun Gedam 8981895b5e
Skip all failing tests when using venv
Our isolation logic for venv isn't correct and that is causing these
tests to fail. The culprits for this are:

  tests/lib/venv.py::VirtualEnvironment.user_site_packages
  tests/lib/venv.py::VirtualEnvironment.sitecustomize

Both these together are supposed to create an environment to isolate the
tests. However, they were written for virtualenv and make assumptions
that are not true for environments created with venv. Until we can fix
VirtualEnvironment to properly isolate the test from the underlying test
environment when using venv, these tests will continue to fail.

This is blocking an important bugfix for users facing issues with since
pip is installing packages into `--user` when run in a venv, even when
`--user` isn't visible from that environment.

As a temporary band-aid for this problem, I'm skipping these tests to
unblock us from shipping the bugfix for the aforementioned issue.

The test isolation logic should be fixed to work for venv. Once such a
fix is made, this commit should be reverted.
2019-11-05 23:02:45 +05:30
Chris Hunt 0c4625b2ba Use another shared script in pip list tests 2019-10-30 02:16:23 -04:00
Chris Hunt 6cd9852626 Use shared script in pip list tests 2019-10-30 01:55:32 -04:00
Pradyun Gedam fc976bb32b
Utilize "pip_install_local" where possible 2019-07-29 14:27:28 +05:30
Chris Hunt 39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Laszlo Kiss-Kollar a240a98701 Add --path option to pip list
This makes `pip list` consistent with `pip freeze` which also supports
listing packages in arbitrary file paths.
2019-06-12 16:10:06 +02:00
Peter Lisák 1a87e577d0 Add comments 2019-01-07 17:10:08 +01:00
Peter Lisák 4f35981085 pip list --not-required --outdated should list only outdated packages that are not dependencies of installed packages 2019-01-06 10:05:44 +01:00
Benoit Pierre add3801163 tests: rework tests virtual environment
- cleanup virtualenv creation code
- ensure all testing virtual environments use a recent version
  of setuptools / wheel, making it easier to switch to custom
  versions of those, as well as reducing network accesses
- reduce size of testing virtual environment, slightly speeding
  up the testsuite
2018-10-18 23:28:37 +02:00
Pradyun Gedam 52782f0547
Remove the "legacy" format for 'pip list' 2018-06-21 21:19:17 +05:30
Pradyun Gedam e31d784b41
Rename a few tests to add the word "basic"
This essentially allows me to do an overall check general check by running the tests using pytest's `-k basic` syntax. Given that I like running tests often and that, in general, I make typos more often than changes that break core functionality, I think this will reduce cycle times for me.
2017-12-16 23:43:46 +05:30
Thomas Kluyver 20955812bf Merge branch 'master' into pep518 2017-05-19 11:04:32 +01:00
Pradyun S. Gedam 1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Thomas Kluyver 9c7ed29009 Fix some more tests which build packages from source 2017-05-13 23:47:17 +01:00
luojiebin d0c0cc9e80 Fixed issue #949 (#4414)
* Showed installers when list command runs with -vv option

* Added news entry

* Updated code to show both location and installer of a package when '-v' is used

* Removed installer from freeze format

* Moved get_installer function to pip.utils.packaging
2017-04-06 15:16:18 +02:00
Luo Jiebin 5394bc744f Added test for verbose option of list command 2017-04-02 19:00:50 +08:00
Donald Stufft 0b1f521059 Switch the default for pip list to the columns format 2017-03-20 10:49:56 -04:00
Atsushi Odagiri ee345ef37b add exclude-editable option to list command (#4016)
* added exclude-editable option to list command

* added include-editable option

* added functional test

* added changes
2017-01-31 13:06:47 +01:00
Donald Stufft 7f1c180e70 Correct the setting name in pip list format deprecation (#4069) 2016-11-03 18:36:56 -04:00
Donald Stufft 81a5bcf7cd Misc updates (#4056)
* Update AUTHORS.txt

* Remove --columns which has been superseded by --format=columns
2016-11-02 14:08:37 -04:00
nvdv 88d2bd8165 Rename --no-deps-only to --not-required. 2016-10-05 15:03:03 +03:00
nvdv bb896cb44c Add functional test for 'list --no-deps-only' option. 2016-09-30 15:07:10 +03:00
Jakub Wilk 6dc28c1b31 Fix typos 2016-06-10 21:29:43 +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
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
Xavier Fernandez 3f21828f75 Unify output of pip list & fix test 2015-11-29 17:37:45 +01:00
Xavier Fernandez 795798f3f0 Allow combination of pip list options
--editable with --outdated/--updtodate
closes #933
2015-11-29 17:37:45 +01:00
Donald Stufft a88bc0de73 Send log messages >= logging.WARNING to stderr 2015-04-06 23:11:16 -04:00
Paul Moore e3cc4656f6 pip list --outdated shows package type for latest version 2015-03-04 14:02:06 +00:00
Matej Stuchlik c5024dc851 Mark tests requiring Internet access 2015-01-15 00:53:15 +01:00
Paul Moore 3c2515805f Added functional tests 2014-10-15 21:57:11 +01:00
Donald Stufft 9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Donald Stufft 487925ea3f Isolate the tests from the shared data directory 2013-08-27 06:49:35 -04:00
Donald Stufft 0c42245f21 Replace explicit calls to reset_env() with the script fixture 2013-08-27 06:47:23 -04:00
Donald Stufft 9894c8baac Refactor tests.lib
* Move virtualenv creation out of TestPipEnvironment
* Remove global state and force explicit use of TestPipEnvironment
  instances
* Remove "backup" virtualenv copying and instead create new
  virtual environments each time.
* Remove the monkeypatched "PyPICache" functionality
* Remove things that were not being used anymore and were dead
  weight
* Remove sitecustomize support which was primarily used to
  monkeypatch the "PyPICache" but was used in one or two other
  tests.
2013-08-21 22:40:16 -04:00
Marcus Smith 2e2ce0f4e9 break up tests dir into data, unit tests, and functional tests 2013-05-29 13:41:12 -07:00
Renamed from tests/test_list.py (Browse further)