Skip to content
Browse files

setup.py and tox.ini

  • Loading branch information...
1 parent 02e957f commit e7fe2b6446d158570fd513423fe05c3c8f181488 @bdarnell committed
Showing with 35 additions and 1 deletion.
  1. +3 −1 .gitignore
  2. +20 −0 setup.py
  3. +12 −0 tox.ini
View
4 .gitignore
@@ -1,2 +1,4 @@
*.pyc
-/env/
+/env/
+MANIFEST
+.tox/
View
20 setup.py
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+
+from distutils.core import setup
+
+version = "0.1"
+
+setup(
+ name="codegenloader",
+ version=version,
+ packages=[
+ "codegenloader",
+ "codegenloader.test",
+ "codegenloader.test.proto",
+ ],
+ package_data={
+ "codegenloader.test.proto": ["simple.proto"],
+ "codegenloader.test": ["thrift/simple.thrift"],
+ },
+ author="Ben Darnell",
+ )
View
12 tox.ini
@@ -0,0 +1,12 @@
+[tox]
+envlist = py25, py26, py27, pypy
+
+[testenv]
+commands = python -m codegenloader.test.runtests {posargs:}
+# In addition to the python packages listed here, the code generators
+# themselves are required and must be installed separately.
+# Debian/Ubuntu: apt-get install protobuf-compiler and build thrift from source
+# Macports: port install protobuf-cpp thrift
+deps =
+ protobuf
+ thrift

0 comments on commit e7fe2b6

Please sign in to comment.
Something went wrong with that request. Please try again.