From 0614bfd77ef84fefaa6d04546b89a0f830ecb005 Mon Sep 17 00:00:00 2001 From: Phoenix Zerin Date: Sun, 27 Nov 2016 13:53:44 -0500 Subject: [PATCH] Stubbed out unit test integration. --- .gitignore | 14 +++++++++++++- iota/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- tox.ini | 12 ++++++++++++ 5 files changed, 28 insertions(+), 4 deletions(-) create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore index 92364c3..56ad972 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,18 @@ -*.pyc +# Python metadata +*.py[co] +# Generated distribution files. # :see: https://packaging.python.org/distributing/ build/* dist/* PyOTA.egg-info/* + +# Virtualenvs for unit tests. +# :see: https://tox.readthedocs.io/en/latest/ +.tox/* + +# +# Note: For environment- or IDE-specific metadata (e.g., .DS_Store, .idea, etc. +# you can add these to your own "global" .gitignore file. +# :see: https://help.github.com/articles/ignoring-files/#create-a-global-gitignore +# diff --git a/iota/__init__.py b/iota/__init__.py index 57de310..6fe5e43 100644 --- a/iota/__init__.py +++ b/iota/__init__.py @@ -1,4 +1,4 @@ # coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals -__version__ = '1.0.0' \ No newline at end of file +__version__ = '1.0.0' diff --git a/setup.cfg b/setup.cfg index 3480374..3c6e79c 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [bdist_wheel] -universal=1 \ No newline at end of file +universal=1 diff --git a/setup.py b/setup.py index 87b29db..14042c8 100644 --- a/setup.py +++ b/setup.py @@ -34,4 +34,4 @@ author = 'Phoenix Zerin', author_email = 'phx@phx.ph', -) \ No newline at end of file +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..9453a08 --- /dev/null +++ b/tox.ini @@ -0,0 +1,12 @@ +# Tox (http://tox.testrun.org/) is a tool for running tests +# in multiple virtualenvs. This configuration file will run the +# test suite on all supported python versions. To use it, "pip install tox" +# and then run "tox" from this directory. + +[tox] +envlist = py27, py35 + +[testenv] +commands = nosetests +deps = + nose