Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Make python setup.py test work #10

Merged
merged 2 commits into from

2 participants

@niallo

No description provided.

@whitmo whitmo merged commit 38d0eaf into SMFOSS:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 13, 2012
  1. @niallo

    support setup.py test

    niallo authored
  2. @niallo

    add heroku stuffs

    niallo authored
This page is out of date. Refresh to see the latest.
Showing with 18 additions and 2 deletions.
  1. +1 −0  requirements.txt
  2. +3 −0  run
  3. +10 −0 runapp.py
  4. +4 −2 setup.py
View
1  requirements.txt
@@ -0,0 +1 @@
+Pyramid==1.0
View
3  run
@@ -0,0 +1,3 @@
+#!/bin/bash
+bin/python setup.py develop
+bin/python runapp.py
View
10 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)
View
6 setup.py
@@ -16,6 +16,8 @@
'Paste',
'pip']
+test_requires = ['mock', 'nose'] + requires
+
setup(name='CheesePrism',
version='0.1a2',
description='CheesePrism',
@@ -34,8 +36,8 @@
include_package_data=True,
zip_safe=False,
install_requires=requires,
- tests_require=requires,
- test_suite="cheeseprism",
+ tests_require=test_requires,
+ test_suite="nose.collector",
entry_points = """\
[paste.app_factory]
main = cheeseprism.wsgiapp:main
Something went wrong with that request. Please try again.