Skip to content

Instantly share code, notes, and snippets.

@asenchi
Created May 17, 2011 17:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asenchi/976954 to your computer and use it in GitHub Desktop.
Save asenchi/976954 to your computer and use it in GitHub Desktop.
from setuptools import setup, find_packages, Command
VERSION = __import__("bifrost").__version__
class PyTest(Command):
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import sys,subprocess
errno = subprocess.call([sys.executable, 'runtests.py'])
raise SystemExit(errno)
install_requires = [
"tnetstring==0.2.0",
]
setup(
name="bifrost",
author="Curt Micol",
author_email="asenchi@asenchi.com",
version=VERSION,
description="Gossip protocol layer.",
packages=find_packages(),
license="MIT",
url="https://github.com/asenchi/bifrost",
install_requires=install_requires,
cmdclass={'test': PyTest},
classifiers=[
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3",
],
)
[tox]
envlist = py27
[pytest]
addopts = -v --maxfail=2
norecursedirs = .git _build tmp*
[testenv]
changedir = tests
deps = pytest
commands =
python setup.py test
_________________________________ [tox sdist] __________________________________
[TOX] ***creating sdist package
[TOX] /Users/asenchi/Projects/bifrost$ /Users/asenchi/.virtualenvs/bifrost/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/Users/asenchi/.tox/distshare/bifrost-0.1a1.zip'
______________________________ [tox testenv:py27] ______________________________
[TOX] ***creating virtualenv py27
[TOX] /Users/asenchi/Projects/bifrost/.tox$ virtualenv --distribute --no-site-packages -p /Users/asenchi/Developer/Cellar/python/2.7.1/bin/python2.7 py27 >py27/log/0.log
[TOX] ***installing dependencies: pytest
[TOX] /Users/asenchi/Projects/bifrost/.tox/py27/log$ ../bin/pip install --download-cache=/Users/asenchi/Projects/bifrost/.tox/_download pytest >1.log
[TOX] /Users/asenchi/Projects/bifrost/.tox/py27/log$ ../bin/pip install --download-cache=/Users/asenchi/Projects/bifrost/.tox/_download ../../dist/bifrost-0.1a1.zip >2.log
[TOX] /Users/asenchi/Projects/bifrost/tests$ ../.tox/py27/bin/python setup.py test
________________________________ [tox summary] _________________________________
[TOX] ERROR: py27: commands failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment