diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..1f25df8 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,2 @@ +include README +graft bootstrapform/templates diff --git a/README b/README index dc06637..b8a624e 100644 --- a/README +++ b/README @@ -6,4 +6,4 @@ usage: {% load bootstrap %} -{{ form|bootstrape }} +{{ form|bootstrap }} diff --git a/bootstrapform/__init__.py b/bootstrapform/__init__.py new file mode 100644 index 0000000..4a793f7 --- /dev/null +++ b/bootstrapform/__init__.py @@ -0,0 +1,5 @@ +from bootstrapform.meta import VERSION + + +__version__ = str(VERSION) + diff --git a/bootstrapform/meta.py b/bootstrapform/meta.py new file mode 100644 index 0000000..ed62168 --- /dev/null +++ b/bootstrapform/meta.py @@ -0,0 +1,5 @@ +from distutils.version import StrictVersion + + +VERSION = StrictVersion('0.1.0') + diff --git a/__init__.py b/bootstrapform/models.py similarity index 100% rename from __init__.py rename to bootstrapform/models.py diff --git a/templates/bootstrap_form/form.html b/bootstrapform/templates/bootstrapform/form.html similarity index 100% rename from templates/bootstrap_form/form.html rename to bootstrapform/templates/bootstrapform/form.html diff --git a/templatetags/__init__.py b/bootstrapform/templatetags/__init__.py similarity index 100% rename from templatetags/__init__.py rename to bootstrapform/templatetags/__init__.py diff --git a/templatetags/bootstrap.py b/bootstrapform/templatetags/bootstrap.py similarity index 86% rename from templatetags/bootstrap.py rename to bootstrapform/templatetags/bootstrap.py index f49af35..d7af1be 100644 --- a/templatetags/bootstrap.py +++ b/bootstrapform/templatetags/bootstrap.py @@ -6,7 +6,7 @@ register = template.Library() @register.filter def bootstrap(form): - template = get_template("bootstrap_form/form.html") + template = get_template("bootstrapform/form.html") context = Context({'form': form}) return template.render(context) diff --git a/models.py b/models.py deleted file mode 100644 index 71a8362..0000000 --- a/models.py +++ /dev/null @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..9aaa8e0 --- /dev/null +++ b/setup.py @@ -0,0 +1,13 @@ +from setuptools import setup, find_packages +from bootstrapform.meta import VERSION + + +setup(name='django-bootstrap-form', + author='Matt Austin', author_email='mail@mattaustin.me.uk', + url='https://github.com/MattAustin/django-bootstrap-form', + version=str(VERSION), + packages=find_packages(), + include_package_data=True, + install_requires=['django'], + ) + diff --git a/tests.py b/tests.py deleted file mode 100644 index 501deb7..0000000 --- a/tests.py +++ /dev/null @@ -1,16 +0,0 @@ -""" -This file demonstrates writing tests using the unittest module. These will pass -when you run "manage.py test". - -Replace this with more appropriate tests for your application. -""" - -from django.test import TestCase - - -class SimpleTest(TestCase): - def test_basic_addition(self): - """ - Tests that 1 + 1 always equals 2. - """ - self.assertEqual(1 + 1, 2) diff --git a/views.py b/views.py deleted file mode 100644 index 60f00ef..0000000 --- a/views.py +++ /dev/null @@ -1 +0,0 @@ -# Create your views here.