From ef882a30404e39a571a3e0efc2dff335c923160d Mon Sep 17 00:00:00 2001 From: James Turk Date: Thu, 28 May 2015 14:17:15 -0400 Subject: [PATCH] tox --- .gitignore | 4 ++++ setup.py | 23 +++++++++++++++++++++++ tox.ini | 34 ++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 setup.py create mode 100644 tox.ini diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2ce09f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.tox +*.pyc +__pycache__ +*.egg-info diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..1a8fcbf --- /dev/null +++ b/setup.py @@ -0,0 +1,23 @@ +from setuptools import setup + +setup( + name='fkreplace', + version="0.1.0", + package_dir={'fkreplace': 'fkreplace'}, + packages=['fkreplace'], + description='', + long_description='', + author='James Turk', + author_email='james.p.turk@gmail.com', + license='BSD', + url='https://github.com/jamesturk/fkreplace/', + platforms=["any"], + classifiers=[ + 'License :: OSI Approved :: BSD License', + 'Programming Language :: Python', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + ], +) diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..74849f0 --- /dev/null +++ b/tox.ini @@ -0,0 +1,34 @@ +[tox] +envlist = py27-django17, py34-django17, py27-django18, py34-django18, flake8 + +[testenv:flake8] +deps = flake8 +commands = flake8 --ignore=E402,E731 fkreplace + +[django17] +deps = Django==1.7.8 + +[django18] +deps = Django==1.8.2 + +[testenv] +commands = python runtests.py + +[testenv:py27-django17] +basepython = python2.7 +deps = {[django17]deps} + +[testenv:py34-django17] +basepython = python3.4 +deps = {[django17]deps} + +[testenv:py27-django18] +basepython = python2.7 +deps = {[django18]deps} + +[testenv:py34-django18] +basepython = python3.4 +deps = {[django18]deps} + +[flake8] +max-line-length=99