A very simple Python skeleton app for use with Python 3.
- Change the
CoolPackageName
folder to the name of your project/package. - Change
cool_file_name.py
to a meaningful filename. - Change
test_cool_file_name.py
to the filename chosen above. Be sure to let that file name start withtest_
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.
- Python 3
- PyPI for Python 3 (
pip
) - Possibly Virtualenv to avoid dependency collisions between projects
$ 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=.