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

717 commits

Author SHA1 Message Date
Pradyun Gedam
d4217f0cc3
Merge pull request #6129 from asottile/dead
delete some dead code
2019-02-24 22:08:16 +05:30
Anthony Sottile
2c53b709cd Remove hidden
last reference removed in 8447f39fe1
2019-02-20 11:51:24 -08:00
Miro Hrončok
75c2201d5a Mark 3 tests as network tests
________________ test_constraints_local_editable_install_pep518 ________________
    ...
    ----------------------------- Captured stdout call -----------------------------
    Script result: python -m pip download setuptools wheel -d /tmp/pytest-of-mockbuild/pytest-0/test_constraints_local_editabl0/data/packages
      return code: 1
    -- stderr: --------------------
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb160>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb0b8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb4e0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb6d8>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fba7fdeb860>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
      Could not find a version that satisfies the requirement setuptools (from versions: )
    No matching distribution found for setuptools

    _____________ test_pep517_wheels_are_not_confused_with_other_files _____________
    ...
    -- stdout: --------------------
    Processing /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/data/src/withpyproject
      Installing build dependencies: started
      Installing build dependencies: finished with status 'error'
      Complete output from command /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/workspace/venv/bin/python /builddir/build/BUILDROOT/python-pip-19.0.2-1.fc30.x86_64/usr/lib/python3.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pytest-of-mockbuild/pytest-0/test_pep517_wheels_are_not_con0/workspace/tmp/pip-build-env-3un7dqu3/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel:
      Collecting setuptools
        Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5a8898>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9588>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9470>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9278>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fb7cf5b9208>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/setuptools/
        Could not find a version that satisfies the requirement setuptools (from versions: )
      No matching distribution found for setuptools

    ________________________ test_upgrade_argparse_shadowed ________________________
    ...
    ----------------------------- Captured stdout call -----------------------------
    Script result: python -m pip install argparse==1.3
      return code: 1
    -- stderr: --------------------
      Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db240>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db358>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db400>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6db518>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7ff07d6c7710>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/argparse/
      Could not find a version that satisfies the requirement argparse==1.3 (from versions: )
    No matching distribution found for argparse==1.3
2019-02-13 13:01:04 +01:00
Jelmer Vernooij
e4ce22f0ef
Add tests for export with revision in the URL. 2019-02-08 16:52:30 +00:00
Nick Coghlan
682cff7230 Fix #6163: Default to setuptools.build_meta:__legacy__
The main setuptools PEP 517 backend is intended for
explicit usage in `pyproject.toml`, when the project
authors can ensure that their `setup.py` runs without
that directory being implicitly on `sys.path`.

For implicit usage, setuptools now offers a separate
legacy backend that more closely mimics direct
execution of the `setup.py` script.
2019-02-06 20:57:57 +10:00
Pradyun Gedam
51086b3718
Don't add wheels when checking if pip gets confused when building wheels
setuptools expects only one wheel file to be present in dist/
2019-02-05 08:35:01 +05:30
Pradyun Gedam
6463ffe195
Add failing tests for the behaviour to fix 2019-02-05 08:34:25 +05:30
Jelmer Vernooij
bb385e2dbb
Make sure that bzr is available when running under Travis. 2019-01-27 02:35:10 +00:00
Chris Jerdonek
d619aba150 Provide a better error message for a pyproject.toml editable install.
The message looks like this:

  File "setup.py" not found. Directory cannot be installed in editable
  mode: <absolute-dir-path>
  (A "pyproject.toml" file was found, but editable mode currently
  requires a setup.py based build.)
2019-01-26 07:00:22 -08:00
Pradyun Gedam
e55fcea956
Add tests for the bug 2019-01-23 09:48:04 +05:30
Chris Jerdonek
9d00420c16 Use the requested log level when handling broken stdout pipe. 2019-01-21 12:45:59 -08:00
Chris Jerdonek
eef02fd666 Unskip / get the end-to-end tests working for Windows. 2019-01-20 15:49:49 -08:00
Chris Jerdonek
e6d0127985 Add failing tests. 2019-01-20 15:49:49 -08:00
Jelmer Vernooij
eb7d4b2178
Bazaar: Export directly from the remote branch.
This significantly improves performance, since it allows the remote
server to directly stream a tarball that just contains the requested
revision rather than the full repository contents.
2019-01-20 17:46:31 +00:00
Pradyun Gedam
47d7f2b92e
Merge pull request #6123 from xavfernandez/deprecate34
Deprecate Python 3.4
2019-01-13 12:46:43 +05:30
Xavier Fernandez
5e573df69c Add deprecate_python fixture to easily deprecate python versions
pip usually emits a warning and tests have to be adapted
2019-01-12 21:50:40 +01:00
Chris Jerdonek
4dc8710654
Tweak freeze comment when no version control detected. (#6128) 2019-01-12 12:44:45 -08:00
Chris Jerdonek
2a6d282984
Merge pull request #6122 from cjerdonek/make-get-src-requirement-class-method
Make VersionControl.get_src_requirement() a class method
2019-01-09 20:54:16 -08:00
Xavier Fernandez
477147091e
Merge pull request #6116 from peterlisak/bug-fix-outdated-not-required
pip list --not-required --outdated should list only outdated packages…
2019-01-09 22:15:53 +01:00
Chris Jerdonek
8a771d027d Make get_remote_url() a class method. 2019-01-09 01:24:16 -08:00
Chris Jerdonek
00ae3f594d Make VersionControl.run_command() a class method. 2019-01-09 01:24:16 -08:00
Peter Lisák
1a87e577d0 Add comments 2019-01-07 17:10:08 +01:00
Pradyun Gedam
8ff8e1fa9e
Merge pull request #6060 from pradyunsg/remove/dependency-links
Remove dependency links support
2019-01-07 08:49:13 +05:30
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
Pradyun Gedam
7222cb8fdb
Remove --process-dependency-links and related support code 2019-01-02 17:27:06 +05:30
Chris Jerdonek
61bb651bf1 Remove outdated test_git_works_with_editable_non_origin_repo().
This test has been replaced by test_freeze_editable_git_with_no_remote()
in test_freeze.py, with an updated and different test expectation.
2018-12-21 01:19:56 -08:00
Chris Jerdonek
526ac40e63 Fix freeze to handle Git repos with no remote. 2018-12-21 01:10:06 -08:00
Chris Jerdonek
1764fbbdab Add failing tests. 2018-12-21 00:21:04 -08:00
Chris Jerdonek
9693bbec5a Add failing test. 2018-12-16 02:08:27 -08:00
Chris Jerdonek
cc9f03dea9 Rename get_branch() to get_current_branch(). 2018-12-16 02:08:27 -08:00
Chris Jerdonek
36266b44b3
Merge pull request #6006 from cjerdonek/clean-up-some-git-test-code
Clean up some git test code.
2018-12-05 14:26:46 -08:00
Paul Moore
087d8254a7
Merge pull request #5410 from wtolson/manylinux2010
Manylinux2010
2018-11-22 11:07:49 +00:00
Benoit Pierre
da9caa4a2c Fix test failures on Windows. 2018-11-12 15:46:52 -05:00
Benoit Pierre
3f01334964 Add test capturing expectation. Ref #4106. 2018-11-12 13:10:39 -05:00
Chris Jerdonek
6f1d0d2a73 Remove unneeded @pytest.mark.network in test_vcs_git.py. 2018-11-12 09:49:05 -08:00
Chris Jerdonek
57314fb19c Use fixtures instead of TempDirectory in test_vcs_git.py. 2018-11-12 09:49:05 -08:00
Chris Jerdonek
6e823fbc89 Add _git_commit() to tests.lib. 2018-11-12 09:49:00 -08:00
Chris Jerdonek
4b0d8a8eb6 Move a hard-coded relative path out of tests/lib. 2018-11-11 22:16:42 -08:00
Paul Moore
4ca38e0c38 Merge with master 2018-11-11 13:49:35 +00:00
Florian Rathgeber
6278c6c371 Decorate tests using SVN with pytest.mark.svn (#5944) 2018-11-10 17:13:20 +05:30
Chris Jerdonek
2dbd34724a Test Git.get_remote_url(). 2018-11-10 01:35:22 -08:00
Chris Jerdonek
3803ce3cb0
Merge pull request #5905 from cjerdonek/issue-5031-freeze-non-vcs-editable
Address #5031: freeze non-vcs editable installs as editable
2018-11-05 14:21:42 -08:00
Benoit Pierre
817ef1a4cb add a couple of additional PEP 517 tests 2018-10-29 23:38:56 +01:00
Benoit Pierre
689f97c4ed fix failing tests 2018-10-29 23:33:21 +01:00
Paul Moore
f10be259ce PEP 517 tests 2018-10-29 23:33:21 +01:00
Paul Moore
c0ed4381a6 Fix for test_install_no_binary_disables_building_wheels 2018-10-29 23:32:13 +01:00
Paul Moore
a82b7ce5e7 Fix test_pep518_with_user_pip which was getting errors due to irrelevant changes in setuptools output 2018-10-29 23:32:13 +01:00
Paul Moore
ab3e21635a Add a news file 2018-10-29 23:32:13 +01:00
Paul Moore
48e9cb693f Address test failures 2018-10-29 23:32:13 +01:00
Paul Moore
4de2915113 Update required setuptools version for PEP 517 2018-10-29 23:32:03 +01:00
Benoit Pierre
744b8cf96e improve build environment
- check build requirements for conflicts
- better isolation (ignore system site packages)
- support 2 prefixes: a "normal" one, and an "overlay" one
  (with higher priority over "normal")
2018-10-29 23:17:51 +01:00
Pradyun Gedam
b47b2fa8e6
Merge pull request #5841 from benoit-pierre/fix_python_src/pip
fix support for invoking pip using `python src/pip ...`
2018-10-28 12:35:53 +00:00
Chris Jerdonek
afdfb7b210 Include package name in a freeze warning if package is not installed. 2018-10-27 06:50:15 -07:00
László Kiss Kollár
94d9dbef3b Display install instructions for pre-releases
Add a message to the output of `search` on installing pre-release
versions to avoid confusion when attempting to install without `--pre`.
2018-10-26 13:17:01 +01:00
Pradyun Gedam
51819cc3d8
Merge pull request #5886 from benoit-pierre/rework_tests_virtualenv_with_support_for_venv
Rework tests virtualenv, also adding support for using venv
2018-10-23 13:32:22 +05:30
Xavier Fernandez
3b8c076c1f
Merge pull request #5842 from takluyver/i5839
Don't crash on invalid requirements in installed packages
2018-10-22 17:22:04 +02:00
Chris Jerdonek
5e47e85b83 Add a failing test. 2018-10-22 01:57:42 -07:00
Benoit Pierre
a4209aa0fb tests: add support for using venv for the virtual environment
Add a new testsuite option `--use-venv` to enable the use of `venv`
for creating a test virtual environment. The option is opt-in because
creating a `venv` environment does not work right when running under a
`virtualenv`; which is why `tox-venv` must be used in combination with
tox.
2018-10-21 21:43:32 +02: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
Benoit Pierre
83b879b1ec Improve PEP 518 build isolation (#5824)
Handle .pth files, so namespace packages are correctly supported under Python 3.2 and earlier, and more.
2018-10-16 12:04:28 +05:30
Thomas Kluyver
b61e83b0a3 OK, 79 characters 2018-10-11 17:18:13 +01:00
Thomas Kluyver
2480bc31f1 Fix linter issues 2018-10-11 16:52:37 +01:00
Thomas Kluyver
a8cc72d895 Add test for 'pip check' with broken metadata 2018-10-11 16:14:34 +01:00
Benoit Pierre
0a58159571 drop workaround for Python<=2.5 2018-10-07 14:26:34 +02:00
Benoit Pierre
464b2f30a8 fix support for invoking pip using python src/pip ...
Ensure the subprocess call to pip for installing the PEP 518
build dependencies is using the same version of pip.
2018-10-02 12:15:03 +02:00
Pradyun Gedam
392cb09b50
Merge pull request #5723 from cjerdonek/vcs-add-git-get-branch
Fix the "new install" case of issue #2037
2018-09-18 19:59:59 +05:30
Laurie Opperman
10911fe881 Fix error when autocompleting after flag
When running autocomplete after any command-line option with unspecified
'metavar' attribute, a traceback for an 'AttributeError' would be
displayed. This is fixed for first checking if 'metavar' was defined.
Fixes #5751
2018-09-17 21:56:46 +10:00
Jon Dufresne
8136b410f7 Correct capitalization of PyPI
As spelled on https://pypi.org/.
2018-09-16 15:30:52 -07:00
Bernhard M. Wiedemann
f4bda78815 Sort list of RECORD entries
Without sorting, the 'installed' hash had entries in random order
that caused output to differ for every run.

See https://reproducible-builds.org/ for why this matters.

Sorting all entries to make testing easier.
2018-09-11 13:51:33 +02:00
Chris Jerdonek
0d817939c3 Fix tests on Python 3.4 (GROUP=2). 2018-08-21 13:35:29 -07:00
Pradyun Gedam
a5a07fe61c
Move InstallRequirement.from_line to constructors module 2018-08-21 20:37:40 +05:30
Chris Jerdonek
b11bf9e978 Change get_revision_sha() to return is_branch. 2018-08-21 04:00:35 -07:00
Chris Jerdonek
8d6f7b56fa Add Git.get_branch(). 2018-08-21 04:00:35 -07:00
Chris Jerdonek
007dbf3ea6 Add two failing tests. 2018-08-21 04:00:30 -07:00
Chris Jerdonek
f97baf9300 Add a test of installing from a repo with a non-master default branch. 2018-08-19 17:15:45 -07:00
Pradyun Gedam
1073b66b11
Merge pull request #5718 from cjerdonek/dry-up-with-install-version-pkg
DRY up test_install_vcs_git.py with _install_version_pkg()
2018-08-20 05:24:27 +05:30
Chris Jerdonek
1067c3abc6 DRY up test_install_vcs_git.py with _install_version_pkg(). 2018-08-19 12:17:10 -07:00
Chris Jerdonek
40555250c6 Remove unneeded @pytest.mark.network's inside test_install_vcs_git.py. 2018-08-19 03:36:14 -07:00
Chris Jerdonek
b39bbba5e3 Address more review comments by @pradyunsg. 2018-08-19 01:03:26 -07:00
Chris Jerdonek
54b81e3a5c Put more of the URL pattern into _checkout_into_temp().
This addresses a review comment by @pradyunsg.
2018-08-19 00:30:33 -07:00
Chris Jerdonek
749c898a41 DRY up test_install_vcs_git.py with _checkout_into_temp(). 2018-08-18 23:37:46 -07:00
Chris Jerdonek
b798e328aa DRY up test_install_vcs_git.py with _make_version_pkg_url(). 2018-08-18 20:53:15 -07:00
Chris Jerdonek
4e8cde753d Rename tests/functional/test_install_vcs.py to test_install_vcs_git.py. 2018-08-16 22:14:59 -07:00
Pradyun Gedam
7ab40252e6
Merge pull request #5623 from cjerdonek/vcs-fix-install-git-ref
Fix #5624: installing a Git ref for installs other than the first
2018-08-17 09:20:48 +05:30
Pradyun Gedam
20127bfe98
Merge pull request #5404 from sixninetynine/feature/platforms_for_target
Open up plat/abi/impl options to `install --target`
2018-08-12 22:09:01 +05:30
Paul Moore
78144e264a
Merge pull request #5692 from pfmoore/pep517
Refactorings and work in preparation for PEP 517
2018-08-11 08:35:36 +01:00
Chris Jerdonek
63684d7e4d Add failing test. 2018-08-07 07:47:53 -07:00
Loren Carvalho
cddcb1407f Open up plat/abi/impl options to install --target
* Move dist restriction options to be re-usable (between install/download)
* Make dist restriction options usable in `install` (exclusively with --target)
* Add a check_supported_wheels bool to RequiriementSet for non-resolved (full path) dependencies
2018-08-05 16:13:20 -05:00
Chris Jerdonek
48b55eb95e Combine tests/functional/test_vcs.py with other test modules. 2018-08-02 13:28:16 -07:00
Chris Jerdonek
f115d1fa2d Combine tests/functional/test_install_vcs_git.py with other test modules. 2018-08-02 13:16:23 -07:00
Paul Moore
4e018d76e2 Check for assumed requirements once the build environment is created 2018-08-02 20:08:04 +01:00
Paul Moore
8cdf6564fd Stop trying to lazy-load pyproject.toml, it isn't worth it. 2018-08-02 20:07:52 +01:00
Paul Moore
5503b89c6b Fix some test failures 2018-08-01 16:45:08 +01:00
Paul Moore
873bae7b44 Initial tests for PEP 517 backend calls 2018-08-01 16:15:11 +01:00
Paul Moore
dcc90c0e49 Fix test that expected a specific error message 2018-07-31 16:21:19 +01:00
Pradyun Gedam
b13cee6388
Merge branch 'master' into refactor/pip-cli-subpackage 2018-07-30 09:52:18 +05:30
Pradyun Gedam
1694a5f1bf
Move status_codes to pip._internal.cli 2018-07-30 09:43:53 +05:30
Pradyun Gedam
21d9825efd
Rename basecommand -> base_command 2018-07-30 09:32:47 +05:30
Pradyun Gedam
4fc697847a
Update imports for the moved compat module 2018-07-29 18:32:20 +05:30
Pradyun Gedam
8d45e0e647
Move basecommand to pip._internal.cli 2018-07-29 18:26:28 +05:30