Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use paver as primary entry point

  • Loading branch information...
commit a61ce741106cf60499374c05fb8383ee5e4aab5f 1 parent c7e0670
Lukas Linhart authored
Showing with 70 additions and 52 deletions.
  1. +64 −0 pavement.py
  2. BIN  paver-minilib.zip
  3. +6 −52 setup.py
View
64 pavement.py
@@ -0,0 +1,64 @@
+#!/usr/bin/env python2
+
+from paver.easy import *
+from paver.setuputils import setup
+
+project_dir = 'djangosanetesting'
+name = 'djangosanetesting'
+
+version = '0.5.7'
+
+setup(
+ name = name,
+ version = version,
+ url = 'http://devel.almad.net/trac/django-sane-testing/',
+ author = 'Lukas Linhart',
+ author_email = 'bugs@almad.net',
+ description = u'''
+ Django: Sane testing
+ ======================
+
+ django-sane-testing integrates Django with Nose testing framework. Goal is to provide nose goodies to Django testing and to support feasible integration or functional testing of Django applications, for example by providing more control over transaction/database handling.
+ Thus, there is a way to start HTTP server for non-WSGI testing - like using Selenium or Windmill.
+ Selenium has also been made super easy - just start --with-selenium, inherit from SeleniumTestCase and use self.selenium.
+ Package is documented - see docs/ or http://getthedocs.org/Almad/djangosanetesting.
+ ''',
+ packages = ['djangosanetesting', 'djangosanetesting.selenium'],
+ scripts = [],
+ requires = ['Django (>=1.1)', 'nose (>=0.10)'],
+ classifiers=[
+ "Development Status :: 4 - Beta",
+ "Intended Audience :: Developers",
+ "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
+ "Operating System :: OS Independent",
+ "Programming Language :: Python :: 2.5",
+ "Programming Language :: Python :: 2.6",
+ "Topic :: Software Development :: Testing",
+ "Topic :: Software Development :: Libraries :: Python Modules",
+ ],
+ entry_points = {
+ 'nose.plugins.0.10': [
+ 'djangoliveserver = %s.noseplugins:DjangoLiveServerPlugin' % name,
+ 'cherrypyliveserver = %s.noseplugins:CherryPyLiveServerPlugin' % name,
+ 'django = %s.noseplugins:DjangoPlugin' % name,
+ 'selenium = %s.noseplugins:SeleniumPlugin' % name,
+ 'sanetestselection = %s.noseplugins:SaneTestSelectionPlugin' % name,
+ 'djangotranslations = %s.noseplugins:DjangoTranslationPlugin' % name,
+ ]
+ }
+)
+
+options(
+ sphinx=Bunch(
+ builddir="build",
+ sourcedir="source"
+ ),
+ virtualenv=Bunch(
+ packages_to_install=["nose", "Django>=1.1"],
+ install_paver=False,
+ script_name='bootstrap.py',
+ paver_command_line=None,
+ dest_dir="virtualenv"
+ ),
+)
+
View
BIN  paver-minilib.zip
Binary file not shown
View
58 setup.py
@@ -1,53 +1,7 @@
-#!/usr/bin/env python
+import os
+if os.path.exists("paver-minilib.zip"):
+ import sys
+ sys.path.insert(0, "paver-minilib.zip")
-try:
- import ez_setup
- ez_setup.use_setuptools()
-except ImportError:
- pass
-
-from setuptools import setup
-
-project_dir = 'djangosanetesting'
-name = 'djangosanetesting'
-
-version = '0.5.7'
-setup(
- name = name,
- version = version,
- url = 'http://devel.almad.net/trac/django-sane-testing/',
- author = 'Lukas Linhart',
- author_email = 'bugs@almad.net',
- description = u'''
- Django: Sane testing
- ======================
-
- django-sane-testing integrates Django with Nose testing framework. Goal is to provide nose goodies to Django testing and to support feasible integration or functional testing of Django applications, for example by providing more control over transaction/database handling.
- Thus, there is a way to start HTTP server for non-WSGI testing - like using Selenium or Windmill.
- Selenium has also been made super easy - just start --with-selenium, inherit from SeleniumTestCase and use self.selenium.
- Package is documented - see docs/ or http://getthedocs.org/Almad/djangosanetesting.
- ''',
- packages = ['djangosanetesting', 'djangosanetesting.selenium'],
- scripts = [],
- requires = ['Django (>=1.1)', 'nose (>=0.10)'],
- classifiers=[
- "Development Status :: 4 - Beta",
- "Intended Audience :: Developers",
- "License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)",
- "Operating System :: OS Independent",
- "Programming Language :: Python :: 2.5",
- "Programming Language :: Python :: 2.6",
- "Topic :: Software Development :: Testing",
- "Topic :: Software Development :: Libraries :: Python Modules",
- ],
- entry_points = {
- 'nose.plugins.0.10': [
- 'djangoliveserver = %s.noseplugins:DjangoLiveServerPlugin' % name,
- 'cherrypyliveserver = %s.noseplugins:CherryPyLiveServerPlugin' % name,
- 'django = %s.noseplugins:DjangoPlugin' % name,
- 'selenium = %s.noseplugins:SeleniumPlugin' % name,
- 'sanetestselection = %s.noseplugins:SaneTestSelectionPlugin' % name,
- 'djangotranslations = %s.noseplugins:DjangoTranslationPlugin' % name,
- ]
- }
-)
+import paver.tasks
+paver.tasks.main()

0 comments on commit a61ce74

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