Skip to content

Commit 94a183e

Browse files
committed
Merge pull request #14 from cp2boston/develop
Added tox.ini to examples and updated README with instructions
2 parents 02339cf + 7206189 commit 94a183e

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

examples/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ These examples are scripts that can be run independently to demonstrate the Rose
55

66
Prerequisite: Either run `pip install rosette_api` or run `python setup.py install` in the python top level folder.
77

8+
Alternatively, you can run all the examples with the command line:
9+
`find -maxdepth 1 -name "*.py" -exec tox -- {} --key api-key --url alternate_url \;`
10+
811
You can now run your desired _endpoint_.py file to see it in action.
912
For example, run `python/examples/categories.py` if you want to see the categories
1013
functionality demonstrated.

examples/tox.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Tox (http://tox.testrun.org/) is a tool for running tests
2+
# in multiple virtualenvs. This configuration file will run the
3+
# test suite on all supported python versions. To use it, "pip install tox"
4+
# and then run "tox" from this directory.
5+
6+
[tox]
7+
skipsdist = True
8+
envlist = py27
9+
10+
[testenv]
11+
commands =
12+
{envpython} {posargs}
13+
deps =
14+
rosette-api

0 commit comments

Comments
 (0)