An example package used by my blog.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
toy_package
.gitignore
LICENSE
MANIFEST.in
README.md
requirements.txt
setup.py
tox.ini

README.md

Toy Package

Just an example project for setting up your python environment.

This goes along with the blog post at https://www.loganasherjones.com/2018/03/setting-up-your-python-environment/

The Basics

Clone this repository

git clone https://github.com/loganasherjones/toy_package.git
cd toy_package

Make sure you have your python environment set using pyenv and pyenv-virtualenv

pyenv virtualenv 3.6.4 toy_package
pyenv local toy_package 3.6.4 2.7.14

Install the dependencies:

pip install -r requirements.txt

Run the tests on your python version:

pytest

Run the tests on all the python verisons:

tox

Uh oh! It looks like one of the tests are broken! I wonder what could be wrong...