Chris Hunt
9886e8dea1
Assert that we aren't using most of "move_to_correct_build_directory"
...
Since self._ideal_build_dir is only either None or a string, we must
have always been returning from this function.
This goes back to pip 10.0.0, so this code has been dead for some time.
2019-11-26 18:39:19 -05:00
Christopher Hunt
5ba702894a
Remove old workaround for Debian Python patch ( #7401 )
2019-11-26 11:58:46 +08:00
Xavier Fernandez
db1a2754bb
Fix logging of cached response
...
Cached responses often (always ?) provide a length meaning they were
never logged as such.
2019-11-25 23:15:00 +01:00
Paul Moore
4f6a965f14
Merge pull request #7394 from takluyver/i6599
...
Fix building packages with backend-path in pyproject.toml
2019-11-25 21:40:33 +00:00
Xavier Fernandez
95576102c5
Tweak format_size utility function to include a space ( #7399 )
2019-11-25 22:09:10 +01:00
Albert Tugushev
83a9a12f96
Cache pre-commit in GitHib Actions ( #7400 )
...
See https://pre-commit.com/#github-actions-example
2019-11-25 22:02:53 +01:00
Xavier Fernandez
8114003e62
Add basic tests for format_size
2019-11-25 14:53:23 +01:00
Christopher Hunt
b3aced9617
Merge pull request #7395 from chrahunt/tests/fix-setuptools-unexpected-warning
...
Ignore WARNING emitted by setuptools during test
2019-11-24 07:36:46 +08:00
Chris Hunt
8d38b37052
Ignore WARNING emitted by setuptools during test
2019-11-23 16:17:35 -05:00
Thomas Kluyver
59550aaec3
Add an integration test of installing a project with a local PEP 517 backend
2019-11-23 18:45:09 +00:00
Thomas Kluyver
400cf8d71e
Add a test combining local PEP 517 backend with external dependency
2019-11-23 16:57:24 +00:00
Thomas Kluyver
edc525add9
Remove leftover debugging code
2019-11-23 16:53:01 +00:00
Thomas Kluyver
81f6ba3fc1
Default None instead of []
2019-11-23 16:52:24 +00:00
Thomas Kluyver
da0ff0db76
Capital S in BuildSystemDetails
2019-11-23 16:46:40 +00:00
Thomas Kluyver
6f55872bf3
Convert tuple return type to a named tuple
2019-11-23 15:29:30 +00:00
Thomas Kluyver
dd7b1ee5c3
Fix building packages with backend-path in pyproject.toml
...
Closes gh-6599
2019-11-23 14:38:27 +00:00
Christopher Hunt
3ff2513537
Merge pull request #7384 from chrahunt/refactor/cleanup-prepare-3
...
Cleanup operations.prepare more
2019-11-22 20:52:33 +08:00
Christopher Hunt
81f05720b2
Merge pull request #7374 from chrahunt/maint/use-server-fixture-not-internet
...
Use server fixture for network test
2019-11-22 08:32:47 +08:00
Chris Hunt
59f22068d4
Move Downloader construction to RequirementPreparer.__init__
...
Just one step away from pulling this out of operations.prepare
altogether.
2019-11-21 19:11:46 -05:00
Chris Hunt
3c8be92c32
Move Downloader out of unpack_url
...
This simplifies the work done in the operations.prepare helper functions
and also opens up the door to remove session and progress_bar from
RequirementPreparer itself.
2019-11-21 19:11:46 -05:00
Chris Hunt
19806574e5
Move Downloader out of unpack_http_url
...
Reduces scope of session and progress_bar.
2019-11-21 19:11:46 -05:00
Chris Hunt
4be0a5445a
Move Downloader up out of _download_http_url
...
Reduces exposure of session and progress_bar.
2019-11-21 19:11:46 -05:00
Chris Hunt
3ce317890e
Introduce Downloader for progress-showing downloads
2019-11-21 19:05:42 -05:00
Chris Hunt
e4d2d34fe1
Represent download as its own type
...
This abstraction will let us hide details about the actual downloading
and display of progress from most of operations.prepare.
2019-11-21 19:04:28 -05:00
Pradyun Gedam
a25bdab31a
Improve a NEWS fragment ( #7389 )
2019-11-21 12:01:47 +05:30
Pradyun Gedam
46c20698c6
Improve a NEWS fragment
2019-11-21 11:04:32 +05:30
Keith Maxwell
b7a4b022d6
Better document the requirements file format ( #7386 )
...
Change the documentation for the requirements file format so that it
matches the implementation [0]. Also change the order of the options in
the implementation so that the documentation reads better.
Before this change the documentation included an incomplete list of
supported options.
This change adds the missing options and changes the order to match, so
that the two locations are easier to keep in sync. After this change the
list in the documentation matches SUPPORTED_OPTIONS in
src/pip/_internal/req/req_file.py
[0]: https://github.com/pypa/pip/blob/master/src/pip/_internal/req/req_file.py#L60
2019-11-20 12:45:21 +08:00
Chris Hunt
e706af20fe
Simplify writing file chunks
...
A plain loop is easier to follow than chained generators consumed by
a helper function, and reduces the number of objects being passed around
just to download a file.
2019-11-19 17:06:18 -05:00
Chris Hunt
dca556fdaa
Check hashes after download is complete
...
Instead of computing hashes on-the-fly we do it after fully downloading
the file. This step will let us move hash checking to a higher-level
function without introducing a lot of complexity.
2019-11-19 17:06:18 -05:00
Christopher Hunt
9ae2e6440d
Merge pull request #7365 from chrahunt/refactor/cleanup-prepare-2
...
Cleanup operations.prepare download functions
2019-11-20 06:05:25 +08:00
Christopher Hunt
1b4c0866ab
Remove untyped defs ( #7382 )
2019-11-19 11:46:26 +08:00
Christopher Hunt
e5a350951f
Merge pull request #7370 from chrahunt/refactor/cleanup-get-supported-2
...
Factor platform getter functions out of get_supported
2019-11-19 09:18:34 +08:00
Chris Hunt
2af6112751
Cleanup pep425tags version handling
2019-11-18 19:31:46 -05:00
Chris Hunt
49549fcd69
Move manylinux arch backfilling into separate function
2019-11-18 19:29:30 -05:00
Chris Hunt
83babc7629
Move mac arch calculation to separate function
2019-11-18 19:29:30 -05:00
Christopher Hunt
b802331fd2
Simplify abi3 usage in pep425tags ( #7367 )
...
abi3 refers to the CPython stable ABI, so we should only ensure it
applies in that particular case.
This simplifies the logic in get_platforms() and makes us more
compatible with the behavior of packaging.tags, which only includes abi3
for cpython_tags() and only the literal "abi3".
2019-11-19 08:24:04 +08:00
Aakanksha Agrawal
a3bcaa4ea0
Explain how to get source code in getting started ( #7197 )
2019-11-18 09:46:19 +08:00
Swat009
844fcc1cc5
Updated info about pip support for url_req portion of PEP508 ( #6768 )
2019-11-18 09:45:35 +08:00
Christopher Hunt
717f6c90ae
setup.py: Simplify version extraction ( #6004 )
...
* setup.py: Simplify version extraction
This removes `re` dependency
* Create 6004.removal
* Keep read() function according to review
* Rename news item to .trivial per review
* Remove extra escapes
2019-11-18 09:43:59 +08:00
Yeray Diaz Diaz
ffe0e27c2b
Update link to peer review PDF ( #7360 )
2019-11-18 09:42:55 +08:00
Chris Hunt
2b6ed33f4c
Remove extra escapes
2019-11-17 20:08:56 -05:00
Chris Hunt
1daa8b2fd9
Add mock server wrapper and replace network calls in a test
2019-11-17 17:36:36 -05:00
Chris Hunt
bf7ad4a2a1
Remove unnecessary wrapping of tests
...
The cited issue https://bugs.python.org/issue3210 is fixed in all the
versions of Python that we test against.
2019-11-17 16:12:17 -05:00
Chris Hunt
31f49023bd
Add mock_server documentation
2019-11-17 16:12:17 -05:00
Christopher Hunt
db4da4737c
Merge pull request #7359 from torsava/master
...
Mark 6 tests as network tests
2019-11-18 04:15:03 +08:00
Christopher Hunt
2f85d5a34c
Merge pull request #7373 from Cactusmachete/redact-pass
...
Redact passwords from index-url during download
2019-11-18 00:48:10 +08:00
Ahilya
5051c74d5e
Redact passwords from index-url during download
...
Made changes in _download_url so that it relies on
redact_auth_from_url from misc to redact passwords.
Closes https://github.com/pypa/pip/issues/6783
2019-11-17 20:54:32 +05:30
Christopher Hunt
4447cb0fae
Merge pull request #7355 from chrahunt/refactor/remove-unnecessary-tag
...
Remove interpreter-specific major version tag
2019-11-17 07:27:36 +08:00
Chris Hunt
09b19dbbb8
Move actual session.get call into separate function
...
By moving this call (and its long explanation) to a separate function,
diffs for later refactoring will be easier to review.
2019-11-16 12:37:47 -05:00
Chris Hunt
a9997127b9
Don't pass explicit step size to progress indicator
...
Now the place we construct the progress indicator doesn't need to know
about our strategy for consuming the response, freeing us to extract the
chunk iterator construction into the caller.
2019-11-16 12:37:47 -05:00