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

6992 commits

Author SHA1 Message Date
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
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
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
Pi Delport
5f3c56e188 Fix some typos 2019-03-12 21:54:18 +01: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
Chris Jerdonek
632896d70b Move make_vcs_requirement_url() to vcs/__init__.py. 2019-03-01 11:06:24 -08:00
Chris Jerdonek
f4f447ccb8 Move get_src_requirement() before the __init__ method. 2019-03-01 11:01:25 -08:00
Chris Jerdonek
fdbfde03e1 Implement get_src_requirement() in the VersionControl base class. 2019-03-01 11:01:25 -08:00
Daniele Esposti
729404d4c5 Redact the password from the extra index URL in log messages (#6295) 2019-03-01 04:21:45 -08:00
Chris Jerdonek
1fdd7e26c5
Merge pull request #6139 from jelmer/bazaar-export-perf
Bazaar: Export directly from the remote branch.
2019-03-01 01:36:02 -08:00
Paul Moore
0d36e8c719
Merge pull request #6308 from jakirkham/rm_xtra_dot_docs
Remove extra `.` in docs
2019-02-28 19:14:33 +00:00
jakirkham
9360648b34
Remove extra . 2019-02-28 13:10:24 -05:00
Pradyun Gedam
df80be3591
Merge pull request #6303 from cjerdonek/issue-5749-no-cache-dir
Whether to build wheels is no longer affected by --no-cache-dir.
2019-02-28 14:49:40 +05:30
Chris Jerdonek
a2ed253788 Whether to build wheels is no longer affected by --no-cache-dir. 2019-02-27 20:38:09 -08:00
Chris Jerdonek
8e531be255 Refactor out build_wheels(), and test. 2019-02-27 20:36:25 -08:00
Paul Moore
c9df690f3b
Merge pull request #6305 from pfmoore/pep517_build_options
Reject --build-options for PEP 517 builds
2019-02-27 22:03:11 +00:00
Paul Moore
8b7c23d05c Make flake8 shut up 2019-02-27 18:04:50 +00:00
Paul Moore
91ab257aa2 Add a news fragment 2019-02-27 17:53:23 +00:00
Paul Moore
1528d50902 Stupid typo 2019-02-27 17:50:42 +00:00
Paul Moore
9921442d1f Reject --build-options for PEP 517 builds 2019-02-27 17:40:52 +00:00
Chris Jerdonek
62cfaf0fc7
Merge pull request #6299 from cjerdonek/prefix-warn-messages
Prefix warning and error log messages
2019-02-27 04:55:05 -08:00
Chris Jerdonek
8d78ff0fce Prefix warning and error log messages. 2019-02-27 03:22:26 -08:00
Pradyun Gedam
c2661efe19
Merge pull request #6300 from pradyunsg/docs/dev-docs-flake8-revision
Remove note about flake8 noqa comments
2019-02-26 11:12:27 +05:30
Pradyun Gedam
45d16ac83e
Remove note about flake8 noqa comments 2019-02-25 22:10:00 +05:30
Chris Jerdonek
821247dc36
Merge pull request #6273 from cjerdonek/issue-5499-detect-ci-for-user-agent
Fix #5499: Include in pip's User-Agent whether it looks like pip is in CI
2019-02-24 14:24:55 -08:00
Chris Jerdonek
b88239918b
Merge pull request #6290 from cjerdonek/add-format-command
Add format_command_args().
2019-02-24 13:23:51 -08:00
Jon Dufresne
5779f55bd4 Replace six.next() with builtin next()
The builtin has been available since Python 2.6. Makes the code slightly
more forward compatible by removing an unnecessary use of six.
2019-02-24 22:04:16 +01:00
Xavier Fernandez
c286c55d51 Tweak tests & url_to_path after review 2019-02-24 21:40:25 +01:00
Benoit Pierre
61baf5fe80 improve handling of file URIs 2019-02-24 21:40:25 +01:00
Pradyun Gedam
54c0538583
Merge pull request #6294 from atugushev/patch-1
Use link.is_artifact property instead of scheme checking
2019-02-24 22:43:06 +05:30
Pradyun Gedam
d4217f0cc3
Merge pull request #6129 from asottile/dead
delete some dead code
2019-02-24 22:08:16 +05:30
Pradyun Gedam
94a06ead43
Merge pull request #6263 from hroncok/mark_network
Mark 3 tests as network tests
2019-02-24 22:07:49 +05:30
Albert Tugushev
f0f31998d5 Use is_artifact prop instead of scheme checking 2019-02-23 11:55:37 +03:00
Pradyun Gedam
04f1e70427
Merge pull request #6282 from mkurnikov/update-flake8-to-3.7.6
Update flake8 to 3.7.6
2019-02-22 21:56:28 +05:30
Maxim Kurnikov
c4dfdbe265 remove unused imports 2019-02-22 14:18:46 +03:00
Maxim Kurnikov
7977443556 remove unused exc variable 2019-02-22 14:17:49 +03:00