Skip to content
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

[BUG] Prospector 1.1.* not compatible with flake8 #358

Closed
mattseymour opened this issue Nov 26, 2019 · 4 comments
Closed

[BUG] Prospector 1.1.* not compatible with flake8 #358

mattseymour opened this issue Nov 26, 2019 · 4 comments

Comments

@mattseymour
Copy link
Contributor

mattseymour commented Nov 26, 2019

Describe the bug
Prospector is not compatible with flake8 due to dependencies mismatch. Flake8 (version >3.7) has a requirement for pycodestyle (>=2.5.0,<2.6.0). Prospector has a requirement for pycodestyle (>=2.0.0,<=2.4.0) which causes a dependency mismatch. Ideally, prospector should be supporting 2.5.0.

Expected behavior
Prospector requirements to be closer in line to flake8.

Screenshots

[SolverProblemError]                                                                                                                                                                                                                                                 
Because no versions of flake8 match >3.7,<3.7.1 || >3.7.1,<3.7.2 || >3.7.2,<3.7.3 || >3.7.3,<3.7.4 || >3.7.4,<3.7.5 || >3.7.5,<3.7.6 || >3.7.6,<3.7.7 || >3.7.7,<3.7.8 || >3.7.8,<3.7.9 || >3.7.9,<4.0                                                                            
 and flake8 (3.7.0) depends on pycodestyle (>=2.5.0,<2.6.0), flake8 (>=3.7,<3.7.1 || >3.7.1,<3.7.2 || >3.7.2,<3.7.3 || >3.7.3,<3.7.4 || >3.7.4,<3.7.5 || >3.7.5,<3.7.6 || >3.7.6,<3.7.7 || >3.7.7,<3.7.8 || >3.7.8,<3.7.9 || >3.7.9,<4.0) requires pycodestyle (>=2.5.0,<2.6.0).  
And because flake8 (3.7.1) depends on pycodestyle (>=2.5.0,<2.6.0)                                                                                                                                                                                                                
 and flake8 (3.7.2) depends on pycodestyle (>=2.5.0,<2.6.0), flake8 (>=3.7,<3.7.3 || >3.7.3,<3.7.4 || >3.7.4,<3.7.5 || >3.7.5,<3.7.6 || >3.7.6,<3.7.7 || >3.7.7,<3.7.8 || >3.7.8,<3.7.9 || >3.7.9,<4.0) requires pycodestyle (>=2.5.0,<2.6.0).                                    
And because flake8 (3.7.3) depends on pycodestyle (>=2.5.0,<2.6.0)                                                                                                                                                                                                                
 and flake8 (3.7.4) depends on pycodestyle (>=2.5.0,<2.6.0), flake8 (>=3.7,<3.7.5 || >3.7.5,<3.7.6 || >3.7.6,<3.7.7 || >3.7.7,<3.7.8 || >3.7.8,<3.7.9 || >3.7.9,<4.0) requires pycodestyle (>=2.5.0,<2.6.0).                                                                      
And because flake8 (3.7.5) depends on pycodestyle (>=2.5.0,<2.6.0)                                                                                                                                                                                                                
 and flake8 (3.7.6) depends on pycodestyle (>=2.5.0,<2.6.0), flake8 (>=3.7,<3.7.7 || >3.7.7,<3.7.8 || >3.7.8,<3.7.9 || >3.7.9,<4.0) requires pycodestyle (>=2.5.0,<2.6.0).                                                                                                        
And because flake8 (3.7.7) depends on pycodestyle (>=2.5.0,<2.6.0)                                                                                                                                                                                                                
 and flake8 (3.7.8) depends on pycodestyle (>=2.5.0,<2.6.0), flake8 (>=3.7,<3.7.9 || >3.7.9,<4.0) requires pycodestyle (>=2.5.0,<2.6.0).                                                                                                                                          
And because flake8 (3.7.9) depends on pycodestyle (>=2.5.0,<2.6.0)                                                                                                                                                                                                                
 and prospector (1.1.7) depends on pycodestyle (>=2.0.0,<=2.4.0), prospector (1.1.7) is incompatible with flake8 (>=3.7,<4.0).                                                                                                                                                    
So, because <project> depends on both flake8 (^3.7) and prospector (=1.1.7), version solving failed.```

Environment (please complete the following information):

  • OS: OSX, Ubuntu
  • Tool: poetry, prospector, flake8
  • Prospector version: 1.1.7
  • Python version: 3.7

Additional context
Add any other context about the problem here. Putting the list of dependencies installed, e.g. the output of pip freeze also helps.

@ksze
Copy link

ksze commented Nov 30, 2019

Seems similar to #332 and tangentially #307.

chocoelho added a commit that referenced this issue Mar 14, 2020
@chocoelho
Copy link
Contributor

Closing this as it's fixed in the upcoming version 1.3.0 (available as pre-release)

@mattseymour
Copy link
Contributor Author

Awesome, keep up the good work.

@combinatorist
Copy link

Seems to be happening again in prospector 1.3.1:

ERROR: Could not find a version that matches pycodestyle<2.7.0,<2.8.0,>=2.6.0,>=2.7.0 (from prospector==1.3.1->-r /var/folders/jj/x145vsm14b1g0z5fxf3szf300000gq/T/pipenvwoix3w7prequirements/pipenv-47u56rkx-constraints.txt (line 2))
Tried: 2.0.0, 2.0.0, 2.1.0, 2.1.0, 2.2.0, 2.2.0, 2.3.0, 2.3.0, 2.3.1, 2.3.1, 2.4.0, 2.4.0, 2.5.0, 2.5.0, 2.6.0, 2.6.0, 2.7.0, 2.7.0
Skipped pre-versions: 1.8.0.dev0, 1.8.0.dev0, 2.0.0a1, 2.0.0a1, 2.6.0a1, 2.6.0a1
There are incompatible versions in the resolved dependencies:
  pycodestyle<2.7.0,>=2.6.0 (from prospector==1.3.1->-r /var/folders/jj/x145vsm14b1g0z5fxf3szf300000gq/T/pipenvwoix3w7prequirements/pipenv-47u56rkx-constraints.txt (line 2))
  pycodestyle<2.8.0,>=2.7.0 (from flake8==3.9.2->flake8-polyfill==1.0.2->pep8-naming==0.10.0->prospector==1.3.1->-r /var/folders/jj/x145vsm14b1g0z5fxf3szf300000gq/T/pipenvwoix3w7prequirements/pipenv-47u56rkx-constraints.txt (line 2))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants