File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ Or copy "minpy.py" to your project:
2323## Examples
2424```
2525% ./minpy.py
26+ Minpy 0.1
2627Usage: ./minpy.py [options] <python source files and folders..>
2728
2829Options:
Original file line number Diff line number Diff line change 66from os .path import abspath , isfile , isdir , join
77from multiprocessing import Pool , cpu_count
88
9+ VERSION = "0.1"
10+ QUIET = False
11+ VERBOSE = 0
12+ PRINT_VISITS = False
13+ IGNORE_INCOMP = False
14+
915# Module requirements: name -> min version per major or None if N.A.
1016MOD_REQS = {
1117 "ConfigParser" : (2.0 , None ),
207213 ("pprint" , "compact" ): (None , 3.4 ), # pprint
208214}
209215
210- QUIET = False
211- VERBOSE = 0
212- PRINT_VISITS = False
213- IGNORE_INCOMP = False
214-
215216def parse_source (source ):
216217 """Parse python source into an AST."""
217218 return ast .parse (source )
@@ -573,6 +574,7 @@ def unknown_versions(vers):
573574 return len (vers ) == vers .count (0 ) + vers .count (None )
574575
575576def print_usage ():
577+ print ("Minpy {}" .format (VERSION ))
576578 print ("Usage: {} [options] <python source files and folders..>" .format (sys .argv [0 ]))
577579 print ("\n Options:" )
578580 print (" -q Quite mode. It only prints the final versions verdict." )
You can’t perform that action at this time.
0 commit comments