diff --git a/.gitignore b/.gitignore index ba74660..4d3856d 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,7 @@ docs/_build/ # PyBuilder target/ + +# Dev/Testing artifacts. +record.json + diff --git a/bin/view_trace b/bin/view_trace new file mode 100644 index 0000000..789bb2d --- /dev/null +++ b/bin/view_trace @@ -0,0 +1,5 @@ +#!/usr/bin/env python + +from execution_trace.viewer.viewer import main +print "Starting UI web server, please open the URL listed below." +main() diff --git a/execution_trace/record.py b/execution_trace/record.py index c255fc1..8132470 100644 --- a/execution_trace/record.py +++ b/execution_trace/record.py @@ -90,7 +90,9 @@ def _record(f): init_recorded_state() file, path = _get_dump_file() - logger.info("Will record execution of %s in %s", f.__name__, path) + logger.info("Will record execution of %s in %s. " + "Use `view_trace ` to view it.", + f.__name__, path) # Wrap in our own function such that we can dump the recorded state at the end. @wraps(f) diff --git a/requirements.txt b/requirements.txt index e5c4159..894a22c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,20 +1,4 @@ -argparse==1.2.1 -decorator==4.0.4 -funcsigs==0.4 -ipdb==0.8.1 -ipython==4.0.0 -ipython-genutils==0.1.0 mock==1.3.0 nose==1.3.7 -path.py==8.1.2 -pbr==1.8.1 -pexpect==4.0.1 -pickleshare==0.5 -ptyprocess==0.5 -readline==6.2.4.1 -simplegeneric==0.8.1 -six==1.10.0 -traitlets==4.0.0 voluptuous==0.8.10 -wsgiref==0.1.2 Flask==0.10.1 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..60a872f --- /dev/null +++ b/setup.py @@ -0,0 +1,26 @@ +from setuptools import setup + + + +setup(name='execution-trace', + version='1.0', + description='Record the state of Python functions as they execute.', + url='http://github.com/mihneadb/python-execution-trace', + author='Mihnea Dobrescu-Balaur', + author_email='mihnea@linux.com', + license='MIT', + packages=['execution_trace'], + install_requires=[ + 'voluptuous==0.8.10', + 'Flask==0.10.1', + ], + test_suite='nose.collector', + tests_require=[ + 'nose==1.3.7', + 'mock==1.3.0' + ], + scripts=[ + 'bin/view_trace', + ], + zip_safe=False +)