Commit Graph

11092 Commits

Author SHA1 Message Date
Pradyun Gedam e1fded5780
Bump for release 2020-12-15 01:45:06 +00:00
Pradyun Gedam 08816b30b5
Update AUTHORS.txt 2020-12-15 01:45:05 +00:00
Pradyun Gedam cfa013b917
Merge pull request #9278 from gpiks/update_vendoring_packages
Update packaging to version 20.8
2020-12-14 20:10:25 +00:00
gpiks 6b2ccdd10d Update packaging to version 20.8
To account for Python 3.10, update the packaging version to 20.8.
2020-12-14 14:12:47 -05:00
Pradyun Gedam 94b89c98fe
Merge pull request #9269 from brainwane/docs-update-python-2-pip-20-3
Update docs to clarify that old resolver is default with Python 2
2020-12-14 14:11:02 +00:00
Sumana Harihareswara acc0cc9fe3
docs: Fix typo
Co-authored-by: Xavier Fernandez <xav.fernandez@gmail.com>
2020-12-14 06:46:14 -05:00
Sumana Harihareswara 8acf6d4a3c docs: Fix README for PyPI rendering
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-12-13 18:05:42 -05:00
Sumana Harihareswara df7a97f3bc docs: Fix small style issues.
Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-12-13 17:37:28 -05:00
Sumana Harihareswara c7591bf973
docs: Clarify that old resolver is default with Python 2
Partially addresses #9194.

Signed-off-by: Sumana Harihareswara <sh@changeset.nyc>
2020-12-13 17:25:59 -05:00
Pradyun Gedam 0f8f3d7295
Merge pull request #9264 from uranusjr/new-resolver-dont-abort-on-inconsistent-candidate
Skip candidate not providing valid metadata
2020-12-12 12:33:35 +00:00
Tzu-ping Chung d869e0cbfd Merge master 2020-12-12 18:49:14 +08:00
Tzu-ping Chung b2c04877fa Add comments explaining InstallationError handling 2020-12-12 18:47:37 +08:00
Pradyun Gedam 0aee48ff1f
Merge pull request #9265 from uranusjr/new-resolver-cache-installed-candidates
Cache AlreadyInstalledCandidate
2020-12-11 21:03:56 +00:00
Tzu-ping Chung 120105d3e8 Cache AlreadyInstalledCandidate
Since the "Requirement already satisfied" message is printed during
candidate preparation, instantiating the candidate multiple times result
in excessive logging during intensive backtracking. By caching the
already-installed candidates, each package is only prepared, and thus
only logged once.
2020-12-12 02:39:54 +08:00
Tzu-ping Chung d45541c8f3 Skip candidate not providing valid metadata
This is done by catching InstallationError from the underlying
distribution preparation logic. There are three cases to catch:

1. Candidates from indexes. These are simply ignored since we can
   potentially satisfy the requirement with other candidates.
2. Candidates from URLs with a dist name (PEP 508 or #egg=). A new
   UnsatisfiableRequirement class is introduced to represent this; it is
   like an ExplicitRequirement without an underlying candidate. As the
   name suggests, an instance of this can never be satisfied, and will
   cause eventual backtracking.
3. Candidates from URLs without a dist name. This is only possible for
   top-level user requirements, and no recourse is possible for them. So
   we error out eagerly.

The InstallationError raised during distribution preparation is cached
in the factory, like successfully prepared candidates, since we don't
want to repeatedly try to build a candidate if we already know it'd
fail. Plus pip's preparation logic also does not allow packages to be
built multiple times anyway.
2020-12-12 02:23:32 +08:00
Pradyun Gedam 27d8687144
Merge pull request #9249 from uranusjr/new-resolver-setuptools-last
Intentionally delay resolving setuptools
2020-12-09 12:06:00 +00:00
Tzu-ping Chung 5252383248 News entry for setuptools priority hack 2020-12-09 18:42:17 +08:00
Tzu-ping Chung 8bf159f4c7 Intentionally delay resolving setuptools 2020-12-09 12:04:37 +08:00
Pradyun Gedam 643217bc35
Merge pull request #9207 from NoahGorny/fix-redact-url-from-help 2020-12-08 12:56:00 +00:00
Pradyun Gedam 8de94b5740
Update news/9191.bugfix.rst 2020-12-08 12:55:52 +00:00
Pradyun Gedam 7c00e6f3fd
Merge pull request #9241 from uranusjr/new-resolver-constraint-affects-extra-entry
Use the project name to look up constraints
2020-12-08 12:52:03 +00:00
Pradyun Gedam 66b4a3d56e
Update news/9232.bugfix.rst 2020-12-08 12:51:24 +00:00
Tzu-ping Chung e2fb3e12ab Use the project name to look up constraints
User-specified constraints only contain the project name without extras,
but a constraint a project A would also apply to A's extra variants.
This introduces a new project_name property on Requirement and Candidate
classes for this lookup.
2020-12-08 16:32:24 +08:00
Pradyun Gedam fd8ddb6e55
Merge pull request #9226 from uranusjr/new-resolver-skip-yanked-unless-only
Correctly implement yanking logic
2020-12-08 06:14:57 +00:00
Tzu-ping Chung ffb3d1bc76 Correctly implement yanking logic
Do not return yanked versions from an index, unless the version
range can only be satisfied by yanked candidates.
2020-12-04 23:46:25 +08:00
Noah Gorny 5cfd8a7c3e Handle case of list default values in UpdatingDefaultsHelpFormatter
Happens because we pass a list from --extra-index-url
2020-12-04 15:29:50 +02:00
Pradyun Gedam ab7ff0a1b5
Merge pull request #9211 from uranusjr/new-resolver-pinned-first 2020-12-03 13:36:25 +00:00
Tzu-ping Chung 82fe333c09 Also prefer requirements with non-empty specifiers 2020-12-03 20:06:28 +08:00
Tzu-ping Chung 4ad924a66f Resolve direct and pinned requirements first 2020-12-03 17:44:23 +08:00
Pradyun Gedam e6da461a1d
Merge pull request #9212 from toxinu/toxinu/use-nickname
Use my nickname instead of real name
2020-12-03 09:23:43 +00:00
Pradyun Gedam 5dde00ab68
Merge pull request #9213 from pradyunsg/release/20.3.1 2020-12-03 09:16:05 +00:00
Pradyun Gedam 3d8d3b3044
Bump for development 2020-12-03 09:10:46 +00:00
Pradyun Gedam f94a429e17
Bump for release 2020-12-03 09:10:45 +00:00
toxinu fbba5be5ca
Use nickname instead of real name 2020-12-03 17:44:29 +09:00
Noah Gorny 8bc9c33b36 tests: Add extra_index_url test case to help redact url 2020-12-02 22:53:43 +02:00
Pradyun Gedam 30eeb9ceb1
Merge pull request #9198 from sbidoul/restore-build-dir-sbi
Restore --build-dir, as a no-op option
2020-12-02 00:49:29 +00:00
Stéphane Bidoul 31a2e1a586
Restore --build-dir 2020-12-01 23:22:07 +01:00
Pradyun Gedam dce6b34abb
Merge pull request #9177 from pradyunsg/release/20.3 2020-11-30 12:46:19 +00:00
Pradyun Gedam 4ba207020e
Bump for development 2020-11-30 11:58:32 +00:00
Pradyun Gedam c31c148a5b
Bump for release 2020-11-30 11:58:32 +00:00
Pradyun Gedam d87cc2d216
Update AUTHORS.txt 2020-11-30 11:58:31 +00:00
Pradyun Gedam a498c13158
Merge pull request #9174 from pradyunsg/tweaks-to-migration-guide
Expand on troubleshooting steps in resolver migration guide
2020-11-29 21:17:35 +00:00
Pradyun Gedam 502b4b1b84
Merge pull request #9173 from pradyunsg/add-attention-admonition-to-news-in-docs 2020-11-29 21:12:48 +00:00
Pradyun Gedam 9c8dfdd313
Expand on troubleshooting steps in resolver migration guide
Co-authored-by: Sumana Harihareswara <sh@changeset.nyc>
2020-11-29 21:10:01 +00:00
Pradyun Gedam 0579cacd42
Describe changelog quirk around beta release
This helps guide users who are reading changelogs better understand what
changes are a part of a "main" release.
2020-11-29 20:20:44 +00:00
Pradyun Gedam b5304f307f
Merge pull request #9170 from pradyunsg/vendoring/nov-2020-again 2020-11-29 19:17:28 +00:00
Pradyun Gedam d91b7d9e88
Merge pull request #9171 from webknjaz/bugfixes/docs-feedback-sphinxext-orphan 2020-11-29 19:17:18 +00:00
Pradyun Gedam 68713c0a26
Mark the failing test as xfail 2020-11-29 17:33:59 +00:00
Pradyun Gedam 8cfdb4518f
Rename 9171.doc.rst to 9171.trivial.rst 2020-11-29 11:38:41 +00:00
Sviatoslav Sydorenko 765b30699a
Add a change note about the PR #9171 2020-11-29 00:04:04 +01:00