question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Log version-specific features that raise requirements

See original GitHub issue

Currently running vermin on a project folder will display the minimum required Python version. However, it doesn’t go into any detail for why a project requires that version.

C:\>vermin U:\Documents\Scripts\wfc_helper
Detecting python files..
Analyzing 13 files using 4 processes..
Minimum required versions: 3.6
Incompatible versions:     2

To help users learn why a version is required, I propose listing what features a project uses to require a specific version of Python.

C:\>vermin U:\Documents\Scripts\wfc_helper
Detecting python files..
Analyzing 13 files using 4 processes..
Minimum required versions: 3.6
Incompatible versions:     2
Features:                  f-strings (3.6)
                           import typing (3.5)

Alternatively, if a folder is specified, Vermin could specify which file or line number caused the current requirements.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Stevoisiakcommented, Apr 11, 2018

@netromdk Confirmed. -vv is working as intended in v0.4.3. This feature does exactly what I was looking for. Thanks for the fix!

C:\Users\svascellar>vermin -vv U:\Documents\Scripts\wfc_helper
Detecting python files..
Analyzing 13 files using 4 processes..
             U:\Documents\Scripts\wfc_helper\wfc_helper\__main__.py
!2, 3.6      U:\Documents\Scripts\wfc_helper\wfc_helper\gui\logon_frame.py
  'logging' requires (2.3, 3.0)
  'tkinter' requires (None, 3.0)

2.3, 3.0     U:\Documents\Scripts\wfc_helper\tests\test_wfc_connection.py
  'datetime' requires (2.3, 3.0)
  'unittest' requires (2.1, 3.0)

!2, 3.6      U:\Documents\Scripts\wfc_helper\wfc_helper\gui\add_job_frame.py
  'datetime' requires (2.3, 3.0)
  'logging' requires (2.3, 3.0)
  'tkinter' requires (None, 3.0)

             U:\Documents\Scripts\wfc_helper\wfc_helper\core\tags.py
2.4, 3.0     U:\Documents\Scripts\wfc_helper\setup.py
  'subprocess' requires (2.4, 3.0)

             U:\Documents\Scripts\wfc_helper\wfc_helper\__init__.py
             U:\Documents\Scripts\wfc_helper\wfc_helper\gui\__init__.py
             U:\Documents\Scripts\wfc_helper\wfc_helper\core\__init__.py
             U:\Documents\Scripts\wfc_helper\wfc_helper\core\wfc_exception.py
!2, 3.6      U:\Documents\Scripts\wfc_helper\wfc_helper\core\wfc_connection.py
  'logging' requires (2.3, 3.0)

!2, 3.0      U:\Documents\Scripts\wfc_helper\wfc_helper\gui\wfc_helper_app.py
  'logging' requires (2.3, 3.0)
  'tkinter' requires (None, 3.0)

             U:\Documents\Scripts\wfc_helper\tests\__init__.py
Minimum required versions: 3.6
Incompatible versions:     2
0reactions
netromdkcommented, Apr 11, 2018

Filed under #6. Thanks again!

Read more comments on GitHub >

github_iconTop Results From Across the Web

is it possible to group a knowledge articles which is version specific ...
What I am interested, to get some quick advise/solution/inputs by quick search using knowledge articles. Answer.
Read more >
Add support for version specific configs by jatgarg · Pull Request ...
If version specific config is not present, then fallback to general control tower settings. So, in case you want to enable something with...
Read more >
Media Feature Pack list for Windows N editions
Lists the Media Feature Pack releases for Windows N editions.
Read more >
Customize pipeline configuration - GitLab Docs
You can customize how pipelines run for your project. For an overview of pipelines, watch the video GitLab CI Pipeline, Artifacts, and Environments....
Read more >
Java Version-Specific Features - JMRI
After January 2022, Java 11 will be required. Oracle's page on Java 1.7 requirements says "Note: As of April 8, 2014 Microsoft stopped...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found