Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6fa270e
Showing
8 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*~ | ||
.env | ||
*.bak | ||
*.py[c] | ||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM python:2.7-onbuild | ||
|
||
CMD ["router.py"] | ||
|
||
RUN python setup.py install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
router | ||
====== | ||
|
||
Just a prototype Router. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
router | ||
====== | ||
|
||
Just a prototype Router. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
router: | ||
build: . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# circuits==3.1.0 | ||
# Development version of circuits | ||
-e git+https://github.com/circuits/circuits.git#egg=circuits |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) |