public
Created

  • Download Gist
setup.py
Python
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
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.ini
INI
1 2 3 4 5 6 7 8 9 10 11 12
[tox]
envlist = py27
 
[pytest]
addopts = -v --maxfail=2
norecursedirs = .git _build tmp*
 
[testenv]
changedir = tests
deps = pytest
commands =
python setup.py test
tox.log
1 2 3 4 5 6 7 8 9 10 11 12 13
_________________________________ [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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.