Skip to content

Commit

Permalink
Set up package.
Browse files Browse the repository at this point in the history
  • Loading branch information
mihneadb committed May 22, 2016
1 parent 2ae0e54 commit 05897f9
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 17 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,7 @@ docs/_build/

# PyBuilder
target/

# Dev/Testing artifacts.
record.json

5 changes: 5 additions & 0 deletions bin/view_trace
Original file line number Diff line number Diff line change
@@ -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()
4 changes: 3 additions & 1 deletion execution_trace/record.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <path_to_file>` to view it.",
f.__name__, path)

# Wrap in our own function such that we can dump the recorded state at the end.
@wraps(f)
Expand Down
16 changes: 0 additions & 16 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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='[email protected]',
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
)

0 comments on commit 05897f9

Please sign in to comment.