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

49 commits

Author SHA1 Message Date
Pradyun Gedam
0983d0da6c
Update failing tests for pytest changes 2018-06-14 16:37:10 +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
Min RK
b734d6e30d test trailing-newline uninstall behavior 2017-11-05 16:49:58 +01:00
Pradyun S. Gedam
8222d788f6
Switch pip uninstall behaviour to be idempotent
pip uninstall no longer aborts if a package is not installed; instead
it prints a warning that the package is not installed and it is
skipping the uninstallation of it for this reason.
2017-11-03 22:28:24 +05:30
Benoit Pierre
961737ab98 Fix integration tests on Windows (#4769) 2017-10-06 20:51:42 +01:00
Donald Stufft
95bcf8c5f6 Move all internal APIs to pip._internal 2017-08-31 14:53:00 -04:00
Pradyun S. Gedam
9923c1ad7e Sort imports and minor Flake8 changes (#4520)
* Run isort on the codebase

Command: isort --recursive --skip __main__.py --skip _vendor -o pip._vendor -sd THIRDPARTY -m 5 -p pip -p tests ./pip ./tests

* 📰
2017-06-13 14:17:00 +02:00
Pradyun S. Gedam
1832569530 Sort all imports 2017-05-16 15:47:47 +05:30
Donald Stufft
6b54145783 Deprecate support for Python 3.3 2017-03-22 19:22:56 -04:00
Donald Stufft
2f7007ca0a Merge pull request #4351 from dstufft/remove-10
Officially bump to 10.0 and remove deprecated items.
2017-03-20 14:45:02 -04:00
Alex Gaynor
3e527f2fbf Fixed some pytest warnings in the tests 2017-03-20 11:45:29 -04:00
Donald Stufft
fabb73971e Remove the ability to uninstall distutils installed projects 2017-03-20 10:49:57 -04:00
Donald Stufft
0b1f521059 Switch the default for pip list to the columns format 2017-03-20 10:49:56 -04:00
Donald Stufft
bb48371714 Removed the deprecated `--egg` flag 2017-03-19 20:31:23 -04:00
Xavier Fernandez
5b7060a20d Deprecate the _strip_postfix function (#4174)
It only happens for editable-non-file URLs and is an undocumented
behavior.
2017-02-13 10:02:20 +01:00
Francesco Montesano
d64b871d97 Allow pip install with entrypoint names with colons (#3901) 2016-11-19 00:27:16 +01:00
Xavier Fernandez
c96f850b17 Merge pull request #3904 from minrk/egg-link-priority
don't assume egg-link corresponds to dist to uninstall
2016-10-29 14:39:50 +02:00
Donald Stufft
403e398330 Deprecate --egg (#3956) 2016-09-07 16:43:58 -04:00
Min RK
b8f31ac522 test uninstall after both install and -e
this used to fail with SETUPTOOLS_SYS_PATH_TECHNIQUE=raw
2016-08-26 14:40:01 +02: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
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
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
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
Stéphane Bidoul
52556056c4 fix a test that was relying on incorrect non-detection of an editable pkg 2015-12-04 14:40:24 +01:00
Donald Stufft
6afc718307 Remove items slated for removal in pip 8.0 2015-09-03 10:55:11 -04:00
Donald Stufft
a88bc0de73 Send log messages >= logging.WARNING to stderr 2015-04-06 23:11:16 -04:00
Xavier Fernandez
0cf2a49d98 Reset uninstall order as before c509c5c4ab
In the case of develop install where we have an egg-info directory and
an egg-link, make sure we uninstall it in the develop_egg_link if case.

Fix #2456
2015-02-25 14:11:50 +01:00
Xavier Fernandez
d926c9e3b8 fix uninstall for distutils installed packages
fix #2384
2015-01-31 00:10:28 +01:00
Matej Stuchlik
c5024dc851 Mark tests requiring Internet access 2015-01-15 00:53:15 +01:00
Donald Stufft
6f64d3e6e2 Implement PEP 440 2014-12-13 13:50:21 -05:00
Donald Stufft
5f0692b40a Fix for latest setuptools 2014-12-13 12:38:55 -05:00
Donald Stufft
767d11e49c Switch to using the stdlib logger instead of pip.log 2014-09-10 09:36:09 -04:00
Marcus Smith
04b3dc8eb8 pep8 fixes 2014-04-25 14:42:14 -07:00
Marcus Smith
ebe2465635 merge 1.5.X to empty_dirs_develop 2014-04-25 14:08:40 -07:00
Marcus Smith
b274b85f96 don't install empty dirs during wheel installs 2014-04-21 23:07:25 -07:00
Matthew Iversen
699bd996ec Fix pep8 2014-04-21 12:15:36 +10:00
Guy Rozendorn
d326d60724 speeding up test_uninstall_editable_with_source_outside_venv by using pip-test-package instead of virtualenv
before:
1 passed, 12 deselected in 218.41 seconds

after:
1 passed, 12 deselected in 3.42 seconds
2014-04-21 12:14:39 +10:00
Donald Stufft
95035fc5c4 Turn on everything in flake8
flake8 ignores some errors by default, these ignored by defaults
change sometimes. This will make things stabler by selecting
everything.
2014-02-24 16:52:23 -05:00
Donald Stufft
9f027337a8 Use Flake8 on the test of pip's Python files 2014-01-28 19:47:58 -05:00
Marcus Smith
a7c522da97 fix references to req methods/classes after refactor 2014-01-12 10:05:11 -08:00
Marcus Smith
40e731045d allow stderr output from git clone for these 2 tests 2013-11-20 13:57:09 -08:00
Donald Stufft
487925ea3f Isolate the tests from the shared data directory 2013-08-27 06:49:35 -04:00
Donald Stufft
d9c8452d78 Work around race conditions in the code 2013-08-27 06:47:26 -04:00
Donald Stufft
f9a3b97b41 Explicitly pass around a directory for tests.lib.local_repos 2013-08-27 06:47:25 -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_uninstall.py (Browse further)