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

7289 commits

Author SHA1 Message Date
Chris Jerdonek
9eab3526a8 Improve error message formatting when a subprocess command errors out. 2019-06-27 03:05:06 -07:00
Chris Jerdonek
fc46a18563
Merge pull request #6647 from cjerdonek/issue-6633-yanked-releases
Add support for "yanked" files (PEP 592)
2019-06-27 00:52:11 -07:00
Ian Wienand
0dbab23df9 Add SHA256 hash of .whl as info output (#5908)
* Add SHA256 hash of .whl as info output

Currently I'm trying to debug some issues with what appear to be
corrupt wheels.  It would be very useful to see what pip thought the
state of things was as it wrote the wheel output; if a final corrupt
distributed file is then different to what pip has saved in its build
logs, you know the problem is somewhere after pip but before
distribution.

Currently we get a log of the initial creation, then the stamp when it
gets moved in the final output location, e.g.:

 creating '/tmp/pip-wheel-71CpBe/foo-1.2.3-py2.py3-none-any.whl
 ...
 Stored in directory: /opt/wheel/workspace

A lot happens in between this, so my suggestion is we add the final
output file and it's hash before the "Stored in directory:", e.g. you
now see:

 Building wheels for collected packages: simple
   Running setup.py bdist_wheel for simple: started
   Running setup.py bdist_wheel for simple: finished with status 'done'
   Finished: simple-3.0-py3-none-any.whl sha256=39005a57a6327972575072af82e11d0817439fe6a069381f6f2a123a8c0bf1cf
   Stored in directory: /tmp/pytest-of-iwienand/pytest-18/test_pip_wheel_success0/workspace/scratch
 Successfully built simple

Despite the hash being fairly important for things like
--require-hashes, AFAICS the final hash is not put in the logs at all
currently, so I think this is generically helpful.

* Reword wheel hash details output

This rewords the output to be more like the form of the preceding
messages.  Additionally the size is added, since we have calculated it
anyway.  The output will now look like:

 Collecting simple==3.0
 Building wheels for collected packages: simple
   Building wheel for simple (setup.py): started
   Building wheel for simple (setup.py): finished with status 'done'
   Created wheel for simple: filename=simple-3.0-py3-none-any.whl size=1138 sha256=2a980a802c9d38a24d29aded2dc2df2b080e58370902e5fdf950090ff67aec10
   Stored in directory: /tmp/pytest-of-iwienand/pytest-0/test_pip_wheel_success0/workspace/scratch
 Successfully built simple
2019-06-26 02:44:43 -07:00
Chris Jerdonek
a447be4785 Update PackageFinder to support "yanked" files (PEP 592). 2019-06-26 02:32:40 -07:00
Chris Jerdonek
8666bb1a5d Start parsing the "data-yanked" attribute. 2019-06-25 03:34:42 -07:00
Chris Jerdonek
fdde0b483e Add Link.yanked_reason. 2019-06-25 03:34:38 -07:00
Tim Gates
abfe7c004d Bugfix/typo comparision (#6644)
* Fix type `comparision` with `comparison`.
2019-06-25 07:47:06 +02:00
Xavier Fernandez
1638b06627 models.link: use named attribute 2019-06-24 14:24:23 +02:00
Chris Jerdonek
bfa976f3f1
Merge pull request #6635 from cjerdonek/link-parsed-attribute
Parse the url when creating a Link object
2019-06-23 22:39:14 -07:00
Chris Jerdonek
36430e2a43
Merge pull request #6639 from sbidoul/imp_looks_like_hash-sbi
Be stricter in identiying git commit hashes
2019-06-23 08:49:11 -07:00
Stéphane Bidoul (ACSONE)
28fa08688c Be stricter in identiying git commit hashes 2019-06-23 12:00:57 +02:00
Chris Jerdonek
0ed518f0dc Fix an edge case where Link.filename can leak auth information. 2019-06-22 16:44:13 -07:00
Chris Jerdonek
b6077c5227 Move the existing Link tests to test_link.py. 2019-06-22 16:44:13 -07:00
Chris Jerdonek
0e741ef9bf Parse the url when creating a Link object. 2019-06-22 16:44:07 -07:00
Pradyun Gedam
a9f8a76a98
Simplify InstallRequirement.get_dist() (#6632) 2019-06-22 22:32:10 +05:30
Chris Jerdonek
abe36d58da Simplify InstallRequirement.get_dist(). 2019-06-21 17:58:46 -07:00
Chris Jerdonek
a38a0eacd4
Merge pull request #6631 from cjerdonek/finder-search-scope
Change PackageFinder.create() to accept a SearchScope
2019-06-21 17:05:36 -07:00
Chris Jerdonek
cab7316e2b Change PackageFinder.create() to accept a SearchScope object. 2019-06-21 14:41:49 -07:00
Chris Jerdonek
761b2064f4 Remove models/search_scope.py's dependency on download.py. 2019-06-21 14:41:45 -07:00
Chris Jerdonek
c3c61b5c51
Merge pull request #6624 from cjerdonek/add-search-scope
Add SearchScope class for --find-links and --index-url related options
2019-06-21 07:30:55 -07:00
Chris Jerdonek
7d08bb37a5 Add SearchScope class. 2019-06-18 00:47:10 -07:00
Christopher Hunt
26cdedd618 Add milliseconds to --log entry timestamps. (#6621)
Resolves #6587.
2019-06-17 14:50:41 -07:00
Pradyun Gedam
2e67cd17fb
Merge pull request #6620 from pradyunsg/slightly-improve-load_pyproject_toml
Slightly improve load_pyproject_toml()
2019-06-17 09:19:18 +05:30
Chris Jerdonek
6ac468e4fd
Merge pull request #6613 from cjerdonek/requirements-file-error
Improve the error message for invalid requirements files in certain situations
2019-06-16 20:09:24 -07:00
Pradyun Gedam
d5891784d1
Reduce indentation 2019-06-16 22:57:32 +05:30
Pradyun Gedam
b1b097a307
pep517_data -> pyproject_toml_data 2019-06-16 22:57:07 +05:30
Pradyun Gedam
9c5eafc1c9
Simplify assignment of InstallRequirement.use_pep517 2019-06-16 22:56:40 +05:30
Pradyun Gedam
82284073e7
Simplify was_installed_by_pip() (#6616)
This uses `get_installer()` to reduce code duplication.
2019-06-16 21:25:53 +05:30
Pradyun Gedam
bc731c7219
Improve clarification on installation order (#6619) 2019-06-16 21:19:29 +05:30
Pradyun Gedam
f196814b71
Soften language in note for Installation Order 2019-06-16 19:34:19 +05:30
Pradyun Gedam
3c17e280f5
Add another colon to make it ReST directive 2019-06-16 18:27:00 +05:30
Pradyun Gedam
61c4b6159c
Add a disclaimer to the "Installation Order" section (#6604) 2019-06-16 17:43:28 +05:30
Pradyun Gedam
12bfa93f0f
Merge pull request #6618 from pradyunsg/refactor/rename-distribution-methods
Refactor/Rename distribution methods
2019-06-16 13:19:30 +05:30
Pradyun Gedam
021851d088
Merge pull request #6617 from pradyunsg/bump-version-for-development
Bump version for development
2019-06-16 13:06:30 +05:30
Pradyun Gedam
a0670a9c98
Rename AbstractDistribution.prep_for_dist()
Use a better name prepare_distribution_metadata()
2019-06-16 05:29:00 +05:30
Pradyun Gedam
7908973c07
Rename AbstractDistribution.dist()
Use a more descriptive name get_pkg_resources_distribution()
2019-06-16 05:28:55 +05:30
Pradyun Gedam
534a102564
Rename make_abstract_dist
Use a more descriptive name make_distribution_for_install_requirement()
2019-06-16 05:23:16 +05:30
johnthagen
d25e7410d0 Fix Subversion class method definition order (#6614)
* Fix Subversion class method definition order

* Move switch and update method to group with other instance methods.
Remove `svn info` from list of commands that need get_remote_call_args in docstring
2019-06-15 15:18:48 -07:00
DiegoCaraballo
2ffbf88bbc sorted imports 2019-06-15 19:06:34 -03:00
Pradyun Gedam
e6361bc00d
Bump version for development 2019-06-16 00:38:37 +05:30
DiegoCaraballo
3fbbcb8b6f The was_installed_by_pip function is modified 2019-06-15 15:36:21 -03:00
Chris Jerdonek
e5a730a89f Improve the error message when reading a bad requirements file. 2019-06-15 10:47:24 -07:00
Chris Jerdonek
4b6bb5da37
Merge pull request #6615 from johnthagen/svn-unit-test-reorg
Move Subversion arg unit tests from functional to unit test
2019-06-15 10:29:18 -07:00
Pradyun Gedam
dada009254
Merge pull request #6601 from pradyunsg/refactor/distributions
Introduce a "distributions" abstraction to hold the build logic
2019-06-15 22:31:51 +05:30
johnthagen
3407ccdeb6 Move Subversion arg unit tests from functional folder to unit test folder 2019-06-15 08:04:03 -04:00
Diego Caraballo
c0bdc8aad5 Add link to Development Documentation in CONTRIBUTING.md (#6610) 2019-06-15 14:42:16 +05:30
Chris Jerdonek
3f8df24875
Merge pull request #6600 from lkollar/consolidate-path-opt-parsing
Consolidate `--path` parsing into `cmdoptions.py`
2019-06-14 14:56:53 -07:00
Chris Jerdonek
28592c3cb7
Merge pull request #6603 from cjerdonek/issue-3799-trusted-host-requirements-txt
Fully support --trusted-host inside requirements files
2019-06-14 14:48:22 -07:00
Pradyun Gedam
ad68a85e45
Add TODOs to improve the names for Distribution's methods 2019-06-14 23:28:22 +05:30
Pradyun Gedam
6f1e2ce5bc
Add docstrings to Distribution classes 2019-06-14 23:28:21 +05:30