Skip to content

loganasherjones/toy_package

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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...

About

An example package used by my blog.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages