public
Last active

  • Download Gist
MANIFEST.in
1 2 3 4 5 6 7 8 9
include README.rst
include setup.py
include LICENSE
include MANIFEST.in
recursive-include bifrost *.py
recursive-include tests *.py
recursive-include requirements *.txt
prune tests/*.pyc
prune bifrost/*.pyc
gistfile1.txt
1 2 3 4 5 6 7 8
_________________________________ [tox sdist] __________________________________
[TOX] ***creating sdist package[TOX] /Users/asenchi/Projects/bifrost$ /Users/asenchi/Developer/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] ***reusing existing matching virtualenv py27
[TOX] /Users/asenchi/Projects/bifrost/.tox/py27/log$ ../bin/pip install --download-cache=/Users/asenchi/Projects/bifrost/.tox/_download ../../dist/bifrost-0.1a1.zip >4.log[TOX] /Users/asenchi/Projects/bifrost/tests$ ../.tox/py27/bin/pip -E /Users/asenchi/Projects/bifrost/.tox/py27 install -r requirements/default.txt
Could not open requirements file: [Errno 2] No such file or directory: 'requirements/default.txt'Storing complete log in /Users/asenchi/tmp/pip-log.txt
________________________________ [tox summary] _________________________________
[TOX] ERROR: py27: commands failed
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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
import os
import sys
 
VERSION = __import__("bifrost").__version__
 
try:
from setuptools import setup, find_packages, Command
except ImportError:
from distutils.core import setup, find_packages, Command
 
install_requires = []
try:
import importlib
except ImportError:
install_requires.append("importlib")
install_requires.extend([
'tnetstring==0.2.0',
'pyzmq==2.1.7',
])
 
is_cpy = sys.version_info
is_pypy = hasattr(sys, "pypy_version_info")
 
# At some point we may support pypy using redis rather than 0mq.
if is_pypy:
raise Exception("bifrost doesn't currently work with PyPy.")
 
def main():
setup(
name="bifrost",
version=VERSION,
description="Gossip protocol layer.",
license="MIT",
url="https://github.com/asenchi/bifrost",
author="Curt Micol",
author_email="asenchi@asenchi.com",
zip_safe=False,
packages=find_packages(),
namespace_packages=['bifrost'],
package_data={
'': ['*.rst', '*.txt'],
},
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",
],
)
 
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, 'tests/runtests.py'])
raise SystemExit(errno)
 
if __name__ == '__main__':
main()
tox.ini
INI
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
[tox]
envlist = py27
 
[pytest]
addopts = -v --maxfail=2
norecursedirs = .git _build tmp*
 
[testenv]
distribute = True
sitepackages = False
changedir = tests
commands = py.test
deps = pytest
 
[testenv:py27]
basepython = python2.7
commands = pip -E {envdir} install -r requirements/default.txt
pip -E {envdir} install -r requirements/test.txt
py.test []

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.