From 3c9087586f07940dbd1897d403bedd0a216da0d1 Mon Sep 17 00:00:00 2001 From: "Gavin M. Roy" Date: Tue, 19 Aug 2014 12:47:24 -0400 Subject: [PATCH] Initial setup/testing/install config --- .travis.yml | 12 +++++++++++ MANIFEST.in | 2 ++ nose.cfg | 2 ++ requirements-2.6.txt | 3 +++ requirements.txt | 5 +++++ setup.py | 49 ++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 73 insertions(+) create mode 100644 .travis.yml create mode 100644 MANIFEST.in create mode 100644 nose.cfg create mode 100644 requirements-2.6.txt create mode 100644 requirements.txt create mode 100644 setup.py diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..98777b9 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +%YAML 1.2 +--- +language: python +python: + - 2.6 + - 2.7 +install: + - if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then pip install -r requirements-2.6.txt; fi + - pip install -r requirements.txt +script: nosetests -c nose.cfg --with-coverage --cover-package=sprockets +after_success: + - coveralls diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..f0f644e --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +LICENSE +README.md diff --git a/nose.cfg b/nose.cfg new file mode 100644 index 0000000..f8747ca --- /dev/null +++ b/nose.cfg @@ -0,0 +1,2 @@ +[nosetests] +verbosity=3 diff --git a/requirements-2.6.txt b/requirements-2.6.txt new file mode 100644 index 0000000..09dae77 --- /dev/null +++ b/requirements-2.6.txt @@ -0,0 +1,3 @@ +argparse +logutils +unittest2 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..c3a3eb9 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +tornado>=4.0 +coverage +mock +nose +python-coveralls diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d648d7d --- /dev/null +++ b/setup.py @@ -0,0 +1,49 @@ +from setuptools import setup +import os + +requirements = ['tornado'] +tests_require = ['coverage', 'coveralls', 'mock', 'nose'] + +# Requirements for Python 2.6 +(major, minor, rev) = platform.python_version_tuple() +if float('%s.%s' % (major, minor)) < 2.7: + requirements.append('argparse') + requirements.append('logutils') + tests_require.append('unittest2') + + +setup(name='sprockets', + version='0.1.0', + description=('A modular, loosely coupled micro-framework built on top ' + 'of Tornado simplifying the creation of web applications ' + 'and RabbitMQ workers'), + entry_points={'console_scripts': ['sprockets=sprockets:main']} + maintainer='Gavin M. Roy', + maintainer_email='gavinr@aweber.com', + url='https://github.com/sprockets/sprockets', + install_requires=requirements, + license=open('LICENSE').read(), + package_data={'': ['LICENSE', 'README.md']}, + packages=['sprockets'], + classifiers=['Development Status :: 3 - Alpha', + 'Environment :: No Input/Output (Daemon)', + 'Framework :: Tornado', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: BSD License', + 'Natural Language :: English', + 'Operating System :: OS Independent', + 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.6', + 'Programming Language :: Python :: 2.7', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.2', + 'Programming Language :: Python :: 3.3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: Implementation :: CPython', + 'Programming Language :: Python :: Implementation :: PyPy', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Software Development :: Libraries', + 'Topic :: Software Development :: Libraries :: Python Modules'], + test_suite='nose.collector', + tests_require=tests_require, + zip_safe=True)