Commit d1f8f26e6f2f90f008a38bba64db2ce6e45aa670
1 parent
3701ce92
setup: updated comments and version
Showing
1 changed file
with
8 additions
and
4 deletions
setup.py
| @@ -17,10 +17,10 @@ to install this package. | @@ -17,10 +17,10 @@ to install this package. | ||
| 17 | # 2015-03-23 v0.09: - updated description and classifiers, added shebang line | 17 | # 2015-03-23 v0.09: - updated description and classifiers, added shebang line |
| 18 | # 2015-06-16 v0.10: - added pyparsing | 18 | # 2015-06-16 v0.10: - added pyparsing |
| 19 | # 2016-02-08 v0.42: - added colorclass, tablestream | 19 | # 2016-02-08 v0.42: - added colorclass, tablestream |
| 20 | +# 2016-07-19 v0.48: - create CLI scripts using entry points (by 2*yo) | ||
| 20 | 21 | ||
| 21 | #--- TODO --------------------------------------------------------------------- | 22 | #--- TODO --------------------------------------------------------------------- |
| 22 | 23 | ||
| 23 | -# - deploy scripts? | ||
| 24 | # - version for python 3 using 2to3 | 24 | # - version for python 3 using 2to3 |
| 25 | 25 | ||
| 26 | #--- IMPORTS ------------------------------------------------------------------ | 26 | #--- IMPORTS ------------------------------------------------------------------ |
| @@ -38,7 +38,7 @@ import sys, os, fnmatch | @@ -38,7 +38,7 @@ import sys, os, fnmatch | ||
| 38 | #--- METADATA ----------------------------------------------------------------- | 38 | #--- METADATA ----------------------------------------------------------------- |
| 39 | 39 | ||
| 40 | name = "oletools" | 40 | name = "oletools" |
| 41 | -version = '0.47' | 41 | +version = '0.48' |
| 42 | desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR" | 42 | desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR" |
| 43 | long_desc = open('oletools/README.rst').read() | 43 | long_desc = open('oletools/README.rst').read() |
| 44 | author = "Philippe Lagadec" | 44 | author = "Philippe Lagadec" |
| @@ -257,7 +257,9 @@ package_data={ | @@ -257,7 +257,9 @@ package_data={ | ||
| 257 | ##fix_data_files(data_files) | 257 | ##fix_data_files(data_files) |
| 258 | 258 | ||
| 259 | 259 | ||
| 260 | -#--- SCRIPTS ------------------------------------------------------------------ | 260 | +# --- SCRIPTS ------------------------------------------------------------------ |
| 261 | + | ||
| 262 | +# Entry points to create convenient scripts automatically | ||
| 261 | 263 | ||
| 262 | entry_points = { | 264 | entry_points = { |
| 263 | 'console_scripts': [ | 265 | 'console_scripts': [ |
| @@ -270,9 +272,11 @@ entry_points = { | @@ -270,9 +272,11 @@ entry_points = { | ||
| 270 | } | 272 | } |
| 271 | 273 | ||
| 272 | 274 | ||
| 273 | -#=== MAIN ===================================================================== | 275 | +# === MAIN ===================================================================== |
| 274 | 276 | ||
| 275 | def main(): | 277 | def main(): |
| 278 | + # TODO: remove this test once all tools are ported to Python 3 | ||
| 279 | + # TODO: warning about Python 2.6 | ||
| 276 | if sys.version >= '3.0': | 280 | if sys.version >= '3.0': |
| 277 | s = "Sorry, %s %s requires Python 2.x." | 281 | s = "Sorry, %s %s requires Python 2.x." |
| 278 | print(s % (name, version)) | 282 | print(s % (name, version)) |