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

7131 commits

Author SHA1 Message Date
Pradyun Gedam
98fc29b36f
Merge pull request #6376 from cjerdonek/fix-typo-enable-test
Fix typo / enable test: "est_link_..." -> "test_link_..."
2019-04-02 23:05:03 +05:30
Chris Jerdonek
f82d87a555 Enable test by fixing typo: "est_link_..." -> "test_link_..." 2019-04-02 05:39:11 -07:00
Quentin Pradet
dbce8216e7
Add news entry for progress 1.5 update 2019-04-01 17:50:49 +04:00
Quentin Pradet
015ceb1377
Remove helpers.py from progress vendor
Noticed by https://github.com/eli-schwartz
2019-04-01 17:50:49 +04:00
Quentin Pradet
c86460d1a4
Update progress to 1.5 2019-04-01 17:50:49 +04:00
Chih-Hsuan Yen
e4936da2e1
Fix handling of requests exceptions when dependencies are debundled 2019-04-01 14:56:08 +08:00
Chris Jerdonek
71f506e71e Require --no-use-pep517 if using editable mode with pyproject.toml. 2019-03-31 05:40:08 -07:00
Caleb Martinez
ac9010e87c Allow adding a custom string to pip's User-Agent via an environment variable (#5550) 2019-03-31 02:37:02 -07:00
Chris Jerdonek
f47d012970 Refactor install_backend_dependencies() out from prep_for_dist(). 2019-03-31 01:11:30 -07:00
Chris Jerdonek
2cdca64a39
Merge pull request #6365 from cjerdonek/pin-rerunfailures-plugin
Get CI working again: pin pytest-rerunfailures to < 7.0
2019-03-30 18:28:02 -07:00
Chris Jerdonek
4bf25b0aa0 Pin pytest-rerunfailures to < 7.0 in tests-requirements.txt. 2019-03-29 02:28:56 -07:00
Chris Jerdonek
de242d0ea9
Merge pull request #6351 from cjerdonek/tighten-test-stderr-checks
Tighten up the test suite's stderr checks
2019-03-26 22:18:56 -07:00
Chris Jerdonek
66ae68122f Disallow two more argument combinations, and test. 2019-03-26 20:34:23 -07:00
Chris Jerdonek
ac18393df7 Make expect_stderr mean the weaker allow_stderr_warning. 2019-03-26 20:34:23 -07:00
Chris Jerdonek
9efd2933ab Remove logic for SSLContext warning on old versions of Python. 2019-03-26 20:34:19 -07:00
Chris Jerdonek
5b9065cf5a Make deprecated_python cause allow_stderr_warning not expect_stderr. 2019-03-26 20:32:49 -07:00
Chris Jerdonek
e5353f27cd
Merge pull request #6356 from cjerdonek/vcs-class-methods-2
Make VersionControl methods into class methods (part 2)
2019-03-25 16:35:26 -07:00
Chris Jerdonek
e0505bb152 Prevent subprocess stdout and stderr from cluttering pip's stdout. 2019-03-25 00:21:20 -07:00
Chris Jerdonek
55f7a712aa
Merge pull request #6331 from cjerdonek/issue-6314-editable-with-pep517
Show a nice error if editable mode is attempted with a pyproject.toml source tree
2019-03-23 17:32:22 -07:00
Chris Jerdonek
1bb21fd3ff
Merge pull request #6093 from mkurnikov/req-types-finished
Finish types for pip._internal.req, set disallow_untyped_defs flag
2019-03-23 02:16:35 -07:00
Chris Jerdonek
352ac8144e Make compare_urls() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
a829362e6a Make fetch_new() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
36909437f3 Make update_submodules() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
7a4e8b34da Make get_current_branch() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
977d3f6f8c Make is_commit_id_equal() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
31d6a4f975 Make resolve_revision() a class method. 2019-03-22 00:04:55 -07:00
Chris Jerdonek
79b64739a9 Make get_revision_sha() a class method. 2019-03-22 00:04:50 -07:00
Alex Loosley
d245434c02 Fix #5889: AttributeError: 'NoneType' object has no attribute 'netloc' (#6336) 2019-03-20 16:59:24 +01:00
Chris Jerdonek
d3a5b58af9
Merge pull request #6342 from cjerdonek/test-subprocess-stderr
Allow finer-grained testing of subprocess stderr.
2019-03-20 06:19:36 -07:00
Chris Jerdonek
bb290e10f2 Address review comments, and add tests. 2019-03-20 02:08:37 -07:00
Chris Jerdonek
17abbca814
Merge pull request #6341 from cjerdonek/vcs-class-methods
Make more VersionControl methods class methods
2019-03-17 19:12:44 -07:00
Chris Jerdonek
22e4be1410 Address review comment: make two methods static. 2019-03-17 00:27:09 -07:00
Chris Jerdonek
2e98d3975f Allow finer-grained testing of subprocess stderr. 2019-03-16 04:16:37 -07:00
Chris Jerdonek
4c5d712057 Change RevOptions to accept a VersionControl subclass. 2019-03-16 01:46:32 -07:00
Chris Jerdonek
12e41eef8b Make VersionControl.get_base_rev_args() a class method. 2019-03-16 01:21:30 -07:00
Chris Jerdonek
e1e94530ad Make VersionControl.make_rev_args() a class method. 2019-03-16 01:15:48 -07:00
Chris Jerdonek
3ba489864b Make VersionControl.get_url_rev_and_auth() a class method. 2019-03-16 01:13:25 -07:00
Chris Jerdonek
67b384b8c7 Make VersionControl.get_netloc_and_auth() a class method. 2019-03-16 01:04:44 -07:00
Chih-Hsuan Yen
8ef3283fcf Ensure all pip._vendor.* modules are mapped to debundled correspondences (#6113)
With the original `vendored()` implementation and such an initialization sequence:

```
vendored("packaging")
vendored("packaging.version")
```

In `sys.modules`, `pip._vendor.packaging` is correctly connected to the debundled `packaging`, while `pip._vendor.packaging.version` is not, as the latter is `__import__`ed from the existing `pip._vendor.packaging` module. That results in the same issue as https://github.com/pypa/pip/issues/5429 - `pip._vendor.packaging.version.Version` and `packaging.version.Version` cannot be compared.

This patch attempts to fix this issue by skipping `__import__` from the vendored name. This is safe because `vendored()` is called only when `DEBUNDLED = True`, and vendored libraries are already deleted as per [debundling instructions](https://github.com/pypa/pip/blob/master/src/pip/_vendor/README.rst#debundling).
2019-03-15 10:26:35 +05:30
Chris Jerdonek
7f6edbd252
Merge pull request #6130 from cjerdonek/move-get-src-requirement-to-base-class
Move get_src_requirement() to the VersionControl base class
2019-03-14 15:22:54 -07:00
Chris Jerdonek
cc2d299f76 Error out if installing a pyproject.toml-style (PEP 517) project in editable mode. 2019-03-14 05:49:39 -07:00
Pi Delport
5f3c56e188 Fix some typos 2019-03-12 21:54:18 +01:00
Chris Jerdonek
f66c1f7639 Refactor out read_pyproject_toml() and resolve_pyproject_toml(). 2019-03-12 03:32:38 -07:00
Chris Jerdonek
1599d65d36
Merge pull request #6312 from cjerdonek/subprocess-tests-and-spinner-fixes
Test call_subprocess more thoroughly; fix spinner edge cases
2019-03-11 23:19:58 -07:00
Steve Dower
293c91ee8a Configuration files may now also be stored under sys.prefix (#6268)
* Rename kinds.VENV to kinds.SITE and site_config_files to global_config_files
* Add tests for config file options
* Deprecate --venv in pip config
2019-03-07 11:14:56 +05:30
Juanjo Bazán
61e5970fa4 Fix typo (extra parenthesis). (#6316) 2019-03-06 03:43:20 -08:00
Chris Jerdonek
fe793722b1 Fix a couple spinner edge cases. 2019-03-03 11:05:39 -08:00
Chris Jerdonek
ffefa91f2f Improve the call_subprocess() tests. 2019-03-03 10:54:03 -08:00
Chris Jerdonek
4589ed464e
Merge pull request #6311 from hroncok/i6054
Fix utils.encoding.auto_decode() LookupError  with invalid encodings
2019-03-01 12:56:17 -08:00
Miro Hrončok
d48475d008 Fix utils.encoding.auto_decode() LookupError with invalid encodings
utils.encoding.auto_decode() was broken when decoding Big Endian BOM
byte-strings on Little Endian or vice versa.

The TestEncoding.test_auto_decode_utf_16_le test was failing on Big Endian
systems, such as Fedora's s390x builders. A similar test, but with BE BOM
test_auto_decode_utf_16_be was added in order to reproduce this on a Little
Endian system (which is much easier to come by).

A regression test was added to check that all listed encodings in
utils.encoding.BOMS are valid.

Fixes https://github.com/pypa/pip/issues/6054
2019-03-01 20:16:18 +01:00