Permalink
Browse files

Moving from buildout to virtualenv

  • Loading branch information...
1 parent f034ae9 commit 34eaf26c824843a48ae0923359089b9a14c41bbd @gregmuellegger committed Oct 6, 2010
View
File renamed without changes.
View
File renamed without changes.
View
@@ -1,5 +1,5 @@
-include CHANGES
-include LICENSE
+include CHANGES.rst
+include LICENSE.txt
include MANIFEST.in
-include README
+include README,rst
recursive-include sortedm2m/media *
View
File renamed without changes.
View
@@ -1,14 +0,0 @@
-#!/usr/bin/env python
-import sys,os
-sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), 'src')))
-
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)
View
@@ -0,0 +1,9 @@
+#!/usr/bin/env python
+import os
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+
+
+if __name__ == '__main__':
+ from django.core.management import execute_from_command_line
+ execute_from_command_line()
View
@@ -0,0 +1,5 @@
+django
+django-extensions
+django-staticfiles
+ipython
+south
View
@@ -0,0 +1,20 @@
+#!/usr/bin/env python
+import os, sys
+
+os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
+parent = os.path.dirname(os.path.dirname(os.path.dirname(
+ os.path.abspath(__file__))))
+
+sys.path.insert(0, parent)
+
+from django.test.simple import run_tests
+
+
+def runtests():
+ failures = run_tests(
+ ['after_model_loaded', 'sortedm2m_field', 'sortedm2m_form'],
+ verbosity=1, interactive=True)
+ sys.exit(failures)
+
+if __name__ == '__main__':
+ runtests()
File renamed without changes.

0 comments on commit 34eaf26

Please sign in to comment.