Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
prologic committed Jul 28, 2015
0 parents commit 6fa270e
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
*~
.env
*.bak
*.py[c]
*.egg-info
5 changes: 5 additions & 0 deletions Dockerfile
@@ -0,0 +1,5 @@
FROM python:2.7-onbuild

CMD ["router.py"]

RUN python setup.py install
4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
router
======

Just a prototype Router.
4 changes: 4 additions & 0 deletions README.rst
@@ -0,0 +1,4 @@
router
======

Just a prototype Router.
2 changes: 2 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,2 @@
router:
build: .
3 changes: 3 additions & 0 deletions requirements.txt
@@ -0,0 +1,3 @@
# circuits==3.1.0
# Development version of circuits
-e git+https://github.com/circuits/circuits.git#egg=circuits
32 changes: 32 additions & 0 deletions router.py
@@ -0,0 +1,32 @@
#! /usr/bin/env python


"""Router"""


from __future__ import print_function

import os
import sys


from circuits import Component


class Router(Component):

name = "router"
version = "0.0.1"


def main():
sys.stdout = os.fdopen(sys.stdout.fileno(), "w", 0)

args = iter(sys.argv)
next(args)

Router().run()


if __name__ == "__main__":
main()
34 changes: 34 additions & 0 deletions setup.py
@@ -0,0 +1,34 @@
#!/usr/bin/env python


from setuptools import setup, find_packages


def parse_requirements(filename):
with open(filename, "r") as f:
for line in f:
if line and line[:2] not in ("#", "-e"):
yield line.strip()


setup(
name="router",
version="0.0.1",
description="Message Router",
long_description=open("README.rst", "r").read(),
author="James Mills",
author_email="James Mills, prologic at shortcircuit dot net dot au",
url="https://github.com/openknot/router",
download_url="https://github.com/openknot/router/archive/master.zip",
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 2.7",
],
license="TBA",
keywords="message router",
platforms="POSIX",
packages=find_packages("."),
install_requires=list(parse_requirements("requirements.txt")),
scripts=["router.py"],
zip_safe=False
)

0 comments on commit 6fa270e

Please sign in to comment.