Rafał Pitoń 11 лет назад
Родитель
Сommit
13e757669f
4 измененных файлов с 6 добавлено и 5 удалено
  1. 0 2
      misago/core/setup.py
  2. 0 1
      misago/views/tests/test_shortcuts.py
  3. 3 1
      runtests.py
  4. 3 1
      setup.py

+ 0 - 2
misago/core/setup.py

@@ -1,5 +1,4 @@
 import os
-import sys
 from optparse import OptionParser
 from django.core import management
 
@@ -19,7 +18,6 @@ def start_misago_project():
     if project_name.startswith("-"):
         parser.error("project_name cannot start with '-'")
 
-
     # Ensure the given directory name doesn't clash with an existing
     # Python package/module.
     try:

+ 0 - 1
misago/views/tests/test_shortcuts.py

@@ -39,4 +39,3 @@ class CheckObjectSlugTests(TestCase):
             check_object_slug(model, "wrong-slug")
         except OutdatedSlug as e:
             self.assertEqual(model, e.args[0])
-

+ 3 - 1
runtests.py

@@ -1,5 +1,7 @@
 def runtests():
-    import atexit, os, shutil, sys
+    import os
+    import shutil
+    import sys
 
     test_runner_path = os.path.dirname(__file__)
     project_template_path = os.path.join(

+ 3 - 1
setup.py

@@ -5,7 +5,9 @@ from misago import __version__ as version
 
 README = open(os.path.join(os.path.dirname(__file__), 'README.rst')).read()
 
-with open(os.path.join(os.path.dirname(__file__), 'misago/project_template/requirements.txt'), "r") as f:
+requirements_path = os.path.join(os.path.dirname(__file__),
+                                 'misago/project_template/requirements.txt')
+with open(requirements_path, "r") as f:
     REQUIREMENTS = [x.strip() for x in f.readlines()]