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

59 commits

Author SHA1 Message Date
Chris Jerdonek
d7709fa106 Assert that initools_dir doesn't already exist. 2019-09-21 02:31:32 -07:00
Christopher Hunt
b1bc41b2c3
Merge pull request #6914 from sbidoul/pip6892-sbi
uninstall: remove symlinks created by flit install --symlink
2019-09-17 21:14:28 -04:00
Chris Jerdonek
9a765b8cab Change local_checkout() to accept tmpdir. 2019-09-13 21:41:32 -07:00
Stéphane Bidoul (ACSONE)
04bc6d090d
Remove non standard function from Path class 2019-09-06 09:42:06 +02:00
Stéphane Bidoul (ACSONE)
f8d58256b7 Add failing test for symlink uninstall 2019-08-24 00:36:40 +02:00
Chris Hunt
0a6b3cedae Remove unnecessary expect_error. 2019-08-10 22:39:57 -04:00
Chris Hunt
39ac9ca351 Rename compatible functions in tests.lib.path.Path. 2019-07-02 18:48:44 -04:00
Florian Rathgeber
6278c6c371 Decorate tests using SVN with pytest.mark.svn (#5944) 2018-11-10 17:13:20 +05:30
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
a5a07fe61c
Move InstallRequirement.from_line to constructors module 2018-08-21 20:37:40 +05:30
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