Chris Jerdonek
8074db86d6
Add failing test.
2019-01-23 19:24:34 -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
Ami Fischman
2a90808387
Prefix user_log (--log) entries with timestamp ( #6142 )
...
Why? Eases post-facto analysis of time spent in different phases of pip operation.
Historical note:
767d11e49c (diff-b670e3b192038c9ffe810c1a12c0c51fL219)
made it so that pip invocations emit zero timestamp information to the log
file. Prior to that each pip invocation's start time was written out (search
that commit's diff for [strftime]).
Result: https://gist.github.com/fischman/f570886219de5c64a3b695300195c70a
Resolves https://github.com/pypa/pip/issues/6141
2019-01-20 03:02:22 -08:00
Donald Stufft
5074327bcb
Merge pull request #6147 from dstufft/warn-on-27
...
Warn on Python 2.7
2019-01-19 21:53:09 -05:00
Chris Jerdonek
f982845aee
Merge pull request #6134 from cjerdonek/pip-no-use-pep517
...
Prevent the use of PIP_NO_USE_PEP517 to head off user confusion
2019-01-19 13:08:22 -08:00
Donald Stufft
a44579ca2d
Fix tests for deprecated Pythons
2019-01-19 15:01:33 -05:00
Jon Dufresne
a06d846a1d
Remove workaround for unsupported Pythons
...
subprocess.check_call() was added in Python 2.5.
https://docs.python.org/2/library/subprocess.html#subprocess.check_call
2019-01-15 19:44:05 -08:00
Chris Jerdonek
5fe3157917
Change the --no-cache-dir error to use raise_option_error().
2019-01-15 09:21:16 -08:00
Chris Jerdonek
c0cc004ca8
Raise an error if the user tries to use PIP_NO_USE_PEP517.
2019-01-15 09:21:12 -08: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
b268c67f84
Deprecate Python 3.4
2019-01-12 22:08:24 +01:00
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
6a882b6d91
Fix tests.
2019-01-09 01:52:24 -08: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
838984b372
Drop dependency links from test packages
2019-01-02 17:27:06 +05:30
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
Pradyun Gedam
5274d7544e
Remove workaround for #6057
2018-12-08 09:17:53 +05:30
Paul Moore
c5dc6aa784
Merge pull request #6029 from zooba/issue-3055
...
Fixes #3055 Uninstall causes paths to exceed MAX_PATH limit
2018-12-06 09:23:29 +00:00
Pradyun Gedam
3a8e21ddcf
Merge pull request #6058 from uranusjr/link-package-versions-cleanup-tests
...
Link package versions cleanup tests
2018-12-06 08:56:40 +05:30
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
Tzu-ping Chung
de7fdbb7a5
Convert multi-phase tests into fixtures
...
Also... make the tests actually pass.
2018-12-03 13:49:25 +08:00
Tzu-ping Chung
557e7d2739
Fix test case class name
...
So it is actually picked up correctly by Pytest.
2018-12-03 13:49:25 +08:00
Pradyun Gedam
f5ae9597c4
Disable Mercurial Tests on Travis
2018-12-02 16:45:53 +05:30
Pradyun Gedam
7a23cc8a18
Don't copy pip's non code files and folders in tests
2018-11-29 14:37:18 +05:30
Nick Coghlan
fdaef3fe9e
Minimise diff needed to make isort happy
2018-11-22 21:49:43 +10:00
Nick Coghlan
868e898942
Adjust imports in test failing isort check
2018-11-22 21:44:32 +10:00
Paul Moore
087d8254a7
Merge pull request #5410 from wtolson/manylinux2010
...
Manylinux2010
2018-11-22 11:07:49 +00:00
Steve Dower
9257d58e1c
Fix import ordering
2018-11-21 15:05:08 -08:00
Steve Dower
1948a7c378
Add compress_for_rename() test and preserve casing
2018-11-21 14:33:15 -08:00
Steve Dower
f4bdd28e25
Fix linting issues
2018-11-21 14:13:45 -08:00
Steve Dower
1bf93a78cb
Adds test for AdjacentTempDirectory._generate_names
2018-11-21 13:53:49 -08: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
9b8db0d160
Move _vcs_add() to before its first use.
2018-11-12 00:13:32 -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
8a4e2851d2
Merge pull request #5996 from cjerdonek/simplify-get-src-requirement
...
Change VersionControl.get_src_requirement() to accept the project name
2018-11-09 12:33:25 -08:00
Chris Jerdonek
fc1b1e4cf0
Merge pull request #5884 from cjerdonek/pip-no-cache-dir-var
...
Make PIP_NO_CACHE_DIR behave as it reads, and not crash pip
2018-11-08 14:19:48 -08:00
Chris Jerdonek
07900ed732
Change VersionControl.get_src_requirement() to accept the project name.
2018-11-08 04:24:05 -08:00
Chris Jerdonek
b94d719f39
Make PIP_NO_CACHE_DIR disable the cache also if given a "true" value.
2018-11-08 03:43:56 -08:00
Pradyun Gedam
28cfd7d0b7
Merge pull request #5923 from psinghsodhi/stopPrintSt
...
Don't print stacktrace due to invalid req
2018-11-08 13:01:56 +05:30
Pradyun Gedam
eeee9b81a2
Merge pull request #5916 from cjerdonek/remove-unneeded-commit-options
...
Simplify some git-commit calls in the test code.
2018-11-06 15:28:34 +05:30
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
Pradyun Gedam
2ed581c79f
Merge pull request #5968 from cjerdonek/dry-up-parse-credentials
...
Use split_auth_from_netloc() inside MultiDomainBasicAuth
2018-10-30 18:45:35 +00:00
Chris Jerdonek
5c93250fa9
Merge pull request #5875 from uranusjr/egg-info-canonical
...
Rewrite egg_info_matches with canonicalize_name
2018-10-30 01:30:40 -07:00
Chris Jerdonek
0ecc9f0aca
Add failing tests for redact_netloc().
2018-10-29 22:13:55 -07:00
Chris Jerdonek
a434431431
Use split_auth_from_netloc() inside MultiDomainBasicAuth().
2018-10-29 22:13:51 -07:00
Chris Jerdonek
b087f261fb
Add failing tests.
2018-10-29 22:12:47 -07: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
3c94d81f68
Support --python-tag for PEP 517 builds
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
Paul Moore
8fbf78d407
Phase 2 - generate metadata using PEP 517 hook
2018-10-29 23:28:23 +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
Tzu-ping Chung
033a47cbf2
More test cases
2018-10-29 15:48:43 +08: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
Prabhjyotsing Surjit Singh Sodhi
e34b19b02a
Don't print stacktrace due to invalid req
2018-10-26 12:03:31 -04:00
Chris Jerdonek
e75803774d
Simplify some git-commit calls in the test code.
2018-10-24 18:27:30 -07:00
Chris Jerdonek
951e0cba51
Fix #5868 : TypeError in move_wheel_files(). ( #5883 )
2018-10-24 09:19:58 -07:00
Pradyun Gedam
cc05433512
Merge pull request #5910 from cjerdonek/add-create-main-file
...
DRY up the test code that creates a module with a main() function.
2018-10-23 20:05:05 +05:30
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
Chris Jerdonek
ece4866086
DRY up the test code to create a module with a main() function.
2018-10-23 00:06:06 -07:00
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
Tzu-ping Chung
5d0a5761be
Add (invalid) edge case inputs to tests
2018-10-22 16:48:24 +08:00
Tzu-ping Chung
ad9cbf50ca
More robust egg-info/name match
...
The idea is to use regex to scan for character sequences that would
be canonicalized into a dash, and skip the equal amount of sequences
to the given canonical name.
2018-10-22 16:48:24 +08:00
Tzu-ping Chung
3368819156
Split, simplify, and fix egg_info_matches
2018-10-22 16:46:42 +08:00
Benoit Pierre
0b45fdad6c
tests: improve temporary directories cleanup
2018-10-21 21:43:32 +02: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
Jon Dufresne
2d545dd9c8
Prefer io.BytesIO over six; available on all supported Pythons
...
On all supported Pythons, the io.BytesIO is always a stream
implementation using an in-memory bytes buffer. Makes code slightly more
forward compatible by reducing use of the six module.
2018-10-19 13:52:58 +02:00
Chris Jerdonek
c72b752bf7
Improve TestUnpackArchives to also test the contents of the extracted files ( #5891 )
2018-10-19 03:58:51 -07:00
Tom Forbes
78371cc950
Redact basic authentication passwords from log messages ( #5773 )
...
Redact basic authentication passwords from URLs.
2018-10-19 02:06:10 -07: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
Chris Jerdonek
8dbbe165f8
Merge pull request #5838 from uranusjr/htmlpage-extract-breakdown-get-page
...
Refactor _get_html_page() to use exceptions for flow control
2018-10-11 12:27:17 -07:00
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
Tzu-ping Chung
fc53f711b9
More tests on successful scenarios, fix docstrings
2018-10-11 17:47:08 +08:00
Tzu-ping Chung
200f126584
Move HTML page tests to their own file, fix typos
2018-10-11 17:45:38 +08:00
Tzu-ping Chung
5441fc7289
Some tests for error and input correction
2018-10-11 17:45:38 +08:00
Felix Yan
f3d82aa741
Fix a typo in tests/lib/configuration_helpers.py ( #5858 )
2018-10-09 20:28:50 +05:30
Pradyun Gedam
35f0983639
Merge pull request #5863 from benoit-pierre/drop_py25_workaround
...
drop workaround for Python<=2.5
2018-10-09 14:34:49 +05:30
Xavier Fernandez
3832020a1f
Merge pull request #5483 from popravich/retry_fix
...
Handle RetryError in HTMLPage (fixes #5270 )
2018-10-08 23:12:34 +02:00
Benoit Pierre
0a58159571
drop workaround for Python<=2.5
2018-10-07 14:26:34 +02:00
Pradyun Gedam
c759504217
Merge pull request #5798 from pradyunsg/improve-configuration-handling
...
Improve configuration handling
2018-10-04 14:27:42 +05:30
Pradyun Gedam
3350cc4516
bodge: Allow both str and repr to be used for configuration file name
...
This is because Python 2's and Python 3's configparser treat the two
differently and we're reusing that message.
2018-10-03 20:23:40 +05:30
Alexey Popravka
290e3d592e
split test into two
2018-10-02 13:23:34 +03: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
Alexey Popravka
5295d8b0a6
test fix: setup logging level
2018-10-02 12:53:06 +03:00
Alexey Popravka
b36d91c2a6
add failing test for HTMLPage.get_page raising RetryError
2018-10-02 12:50:57 +03:00
Pradyun Gedam
34d5af662f
Merge branch 'master' into improve-configuration-handling
2018-09-30 23:04:55 +05:30
Pradyun Gedam
29b12fa80b
Fix test to exactly match output
2018-09-30 23:04:46 +05:30
Tzu-ping Chung
00c043d144
Add unit tests for egg_info_matches
2018-09-30 01:41:06 +08:00
Tzu-ping Chung
aa83222bf0
Rename base URL detection function
2018-09-28 16:52:57 +08:00
Tzu-ping Chung
40bf3688b4
Convert base_url property into local variable
...
This property is only used in HTMLPage.links, which is only called once
per instance in PackageFinder.find_all_candidates(). This would not
affect performance or behavior, but improves data locality.
The unit test of this property is and modified to test the underlying
function instead.
2018-09-28 14:56:52 +08:00
Chris Jerdonek
4afc1e3f69
Use *args in the test.
...
This incorporates a review suggestion of @pradyunsg.
2018-09-25 02:23:32 -07:00
Chris Jerdonek
520df5356f
Add misc.make_vcs_requirement_url().
2018-09-25 01:31:34 -07:00
Pradyun Gedam
6a18c24803
Show error messages when configuration-related errors occur
2018-09-20 11:18:22 +05:30
Pradyun Gedam
52cf26e5cb
Merge pull request #5709 from BoboTiG/fix-warnings
...
Fix several warnings
2018-09-18 22:25:00 +05:30
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
Pradyun Gedam
1e0247f078
Allow passing cache_dir as False to SelfCheckState
2018-09-06 00:43:59 +05:30
Nitesh Sharma
98966b91c7
update parametrize test and comment
2018-09-04 14:36:09 +05:30
Nitesh Sharma
82b25ffe6c
sort imports properly
2018-09-02 23:25:14 +05:30
Nitesh Sharma
a90c641868
Use equality operator for format_control instances
2018-09-02 23:14:47 +05:30
Nitesh Sharma
fd692f32ba
move format control to models and write parametrized test
2018-09-02 23:08:07 +05:30
Nitesh Sharma
c6bf7acc97
fix linting errors
2018-08-28 22:05:18 +05:30
Nitesh Sharma
b818b8324d
refactor format control and rename test functions
2018-08-28 21:45:40 +05:30
Nitesh Sharma
e10a613212
Refactoring: Move FormatControl to separate class
...
This moves FormatControl named tuple and it's all related
methods to separate class.
Closes https://github.com/pypa/pip/issues/5592
2018-08-28 21:12:42 +05:30
Pradyun Gedam
2b3609a37d
Merge pull request #5664 from cjerdonek/issue-5375-svn-ssh-auth
...
Fix #5375 : add editable install support for svn+ssh URLs with a username
2018-08-22 08:33:08 +05:30
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
Pradyun Gedam
69b494aa29
Move InstallRequirement.from_editable to a constructors module
2018-08-21 20:27:22 +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