- 
                Notifications
    You must be signed in to change notification settings 
- Fork 3.2k
Improve handling of constraints on requirements with extras #12095
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
            uranusjr
  merged 47 commits into
  pypa:main
from
sanderr:issue/11924-requirements-on-extras
  
      
      
   
  Oct 5, 2023 
      
    
  
     Merged
                    Changes from all commits
      Commits
    
    
            Show all changes
          
          
            47 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      5bebe85
              
                take non-extra requirements into account for extra installs
              
              
                sanderr 937d8f0
              
                partial improvement
              
              
                sanderr 5f8f40e
              
                refinements
              
              
                sanderr d09431f
              
                fixes
              
              
                sanderr 49027d7
              
                cleanup
              
              
                sanderr cb0f97f
              
                reverted troublesome changes
              
              
                sanderr 3160293
              
                improvement
              
              
                sanderr 1038f15
              
                stray todo
              
              
                sanderr 8aa1758
              
                dropped unused attribute
              
              
                sanderr faa3289
              
                use regex for requirement update
              
              
                sanderr 7e8da61
              
                clarification
              
              
                sanderr ff9aeae
              
                added resolver test case
              
              
                sanderr 3fa373c
              
                added test for comes-from reporting
              
              
                sanderr e569017
              
                added test case for report bugfix
              
              
                sanderr cc6a2bd
              
                added second report test case
              
              
                sanderr fc86308
              
                Merge branch 'main' into issue/11924-requirements-on-extras
              
              
                sanderr 4ae829c
              
                news entries
              
              
                sanderr dc01a40
              
                py38 compatibility
              
              
                sanderr 292387f
              
                py37 compatibility
              
              
                sanderr 39e1102
              
                fixed minor type errors
              
              
                sanderr e6333bb
              
                linting
              
              
                sanderr 1207389
              
                made primary news fragment of type feature
              
              
                sanderr 6663b89
              
                added final bugfix news entry
              
              
                sanderr 314d7c1
              
                simplified regex
              
              
                sanderr cc909e8
              
                reverted unnecessary changes
              
              
                sanderr 6ed231a
              
                added unit tests for install req manipulation
              
              
                sanderr 55e9762
              
                windows compatibility
              
              
                sanderr 504485c
              
                lint
              
              
                sanderr f4a7c0c
              
                cleaned up windows fix
              
              
                sanderr 32e95be
              
                exclude brackets
              
              
                sanderr ba761cd
              
                Merge branch 'main' into issue/11924-requirements-on-extras
              
              
                sanderr 3f3ae6f
              
                Merge branch 'main' into issue/11924-requirements-on-extras
              
              
                sanderr 21bfe40
              
                use more stable sort key
              
              
                sanderr 0de374e
              
                review comment: return iterator instead of list
              
              
                sanderr 5a01679
              
                Update src/pip/_internal/req/constructors.py
              
              
                sanderr 9041602
              
                Merge branch 'issue/11924-requirements-on-extras' of github.com:sande…
              
              
                sanderr 4e73e3e
              
                review comment: subclass instead of constructor flag
              
              
                sanderr 50cd318
              
                review comment: renamed and moved up ExtrasCandidate._ireq
              
              
                sanderr ff9e15d
              
                Merge branch 'main' into issue/11924-requirements-on-extras
              
              
                sanderr f5602fa
              
                added message to invariant assertions
              
              
                sanderr 449522a
              
                minor fixes and linting
              
              
                sanderr 952ab6d
              
                Update src/pip/_internal/resolution/resolvelib/factory.py
              
              
                sanderr fbda0a2
              
                Update tests/unit/resolution_resolvelib/test_requirement.py
              
              
                sanderr ce94946
              
                fixed argument name in docstring
              
              
                sanderr 46707a4
              
                Merge branch 'issue/11924-requirements-on-extras' of github.com:sande…
              
              
                sanderr 89b68c6
              
                Merge branch 'main' into issue/11924-requirements-on-extras
              
              
                sanderr 0f543e3
              
                made assertions more robust
              
              
                sanderr File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Include all requested extras in the install report (``--report``). | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Improve extras resolution for multiple constraints on same base package. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Consistently report whether a dependency comes from an extra. | ||
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Uh oh!
There was an error while loading. Please reload this page.