Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make python setup.py test work #10

Merged
merged 2 commits into from Mar 13, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
@@ -0,0 +1 @@
Pyramid==1.0
3 changes: 3 additions & 0 deletions run
@@ -0,0 +1,3 @@
#!/bin/bash
bin/python setup.py develop
bin/python runapp.py
10 changes: 10 additions & 0 deletions runapp.py
@@ -0,0 +1,10 @@
import os

from paste.deploy import loadapp
from paste.script.cherrypy_server import cpwsgi_server

if __name__ == "__main__":
port = int(os.environ.get("PORT", 5000))
wsgi_app = loadapp('config:production.ini', relative_to='.')
cpwsgi_server(wsgi_app, host='0.0.0.0', port=port,
numthreads=10, request_queue_size=200)
6 changes: 4 additions & 2 deletions setup.py
Expand Up @@ -16,6 +16,8 @@
'Paste', 'Paste',
'pip'] 'pip']


test_requires = ['mock', 'nose'] + requires

setup(name='CheesePrism', setup(name='CheesePrism',
version='0.1a2', version='0.1a2',
description='CheesePrism', description='CheesePrism',
Expand All @@ -34,8 +36,8 @@
include_package_data=True, include_package_data=True,
zip_safe=False, zip_safe=False,
install_requires=requires, install_requires=requires,
tests_require=requires, tests_require=test_requires,
test_suite="cheeseprism", test_suite="nose.collector",
entry_points = """\ entry_points = """\
[paste.app_factory] [paste.app_factory]
main = cheeseprism.wsgiapp:main main = cheeseprism.wsgiapp:main
Expand Down