Skip to content

Commit 014dc9f

Browse files
committed
Added internal version
[ci skip]
1 parent bea11ad commit 014dc9f

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Or copy "minpy.py" to your project:
2323
## Examples
2424
```
2525
% ./minpy.py
26+
Minpy 0.1
2627
Usage: ./minpy.py [options] <python source files and folders..>
2728
2829
Options:

minpy.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
from os.path import abspath, isfile, isdir, join
77
from 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.
1016
MOD_REQS = {
1117
"ConfigParser": (2.0, None),
@@ -207,11 +213,6 @@
207213
("pprint", "compact"): (None, 3.4), # pprint
208214
}
209215

210-
QUIET = False
211-
VERBOSE = 0
212-
PRINT_VISITS = False
213-
IGNORE_INCOMP = False
214-
215216
def 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

575576
def print_usage():
577+
print("Minpy {}".format(VERSION))
576578
print("Usage: {} [options] <python source files and folders..>".format(sys.argv[0]))
577579
print("\nOptions:")
578580
print(" -q Quite mode. It only prints the final versions verdict.")

0 commit comments

Comments
 (0)