A very simple Python skeleton app for use with Python 3.
CoolPackageName
folder to the name of your project/package.cool_file_name.py
to a meaningful filename.test_cool_file_name.py
to the filename chosen above. Be sure to let that file name start with test_
though! That way, py.test can automagically detect and run the tests within.Need some extra information? Check Jean-Paul Calderone's well explained blog post for how to structure your Python projects.
pip
)$ git clone $(this.repo)
$ cd $(this.repo)
$ pip install -r requirements.txt
$ pytest --cov=.
Alternatively, you could create a virtual machine with the accompanying Vagrantfile:
$ git clone $(this.repo)
$ vagrant plugin install vagrant-vbguest
$ vagrant up
$ vagrant ssh
$ cd /code
$ pytest --cov=.