Setting up the project.

This commit is contained in:
Rafael Carício 2011-05-06 00:48:39 -03:00
parent 9a96949a25
commit 04bf8ec537
5 changed files with 98 additions and 0 deletions

View file

@ -9,3 +9,14 @@
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from pyvows import Vows
from django.test.utils import setup_test_environment, teardown_test_environment
class DjangoContext(Vows.Context):
def _set_up_enviroment(self):
setup_test_environment()
def __call__(self):
self._setup_enviroment()

View file

@ -0,0 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com

View file

@ -0,0 +1,11 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com

View file

@ -0,0 +1,19 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from django.core.management.base import BaseCommand
class RunVowsCommand(BaseCommand):
help = u'Run all vows for this project.'
def handle(self, *args, **kwargs):
pass

46
setup.py Normal file
View file

@ -0,0 +1,46 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
# django-pyvows extensions
# https://github.com/rafaelcaricio/django-pyvows
# Licensed under the MIT license:
# http://www.opensource.org/licenses/mit-license
# Copyright (c) 2011 Rafael Caricio rafael@caricio.com
from setuptools import setup
from tornado_pyvows.version import __version__
setup(
name = 'django-pyvows',
version = '.'.join([str(item) for item in __version__]),
description = "django-pyvows are pyvows extensions to django web framework.",
long_description = """
django-pyvows are pyvows extensions to django web framework.
""",
keywords = 'testing vows test tdd django web',
author = u'Rafael Caricio',
author_email = 'rafael@caricio.com',
#Contributors
#contributor = 'Bernardo Heynemann',
#contributor_email = 'heynemann@gmail.com',
url = 'https://github.com/rafaelcaricio/django-pyvows',
license = 'MIT',
classifiers = ['Development Status :: 3 - Alpha',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Operating System :: MacOS',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python :: 2.6',
'Topic :: Software Development :: Testing'
],
packages = ['django_pyvows'],
package_dir = {"django_pyvows": "django_pyvows"},
install_requires=[
"pyvows",
"django"
],
)