Skip to content

Commit c1bda0a

Browse files
committed
Merge pull request #1 from dyve/develop
与原作者保持一致
2 parents c20f620 + d846fb4 commit c1bda0a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1309
-379
lines changed

.travis.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,47 @@
1-
language: python
2-
31
# Python versions for matrix
2+
language: python
43
python:
54
- "2.7"
65
- "2.6"
76
- "3.2"
87
- "3.3"
8+
- "3.4"
99

1010
# Django versions for matrix
1111
env:
12-
- DJANGO_VERSION=1.4.10
13-
- DJANGO_VERSION=1.5.5
14-
- DJANGO_VERSION=1.6.2
12+
- DJANGO_VERSION=1.4.16
13+
- DJANGO_VERSION=1.5.11
14+
- DJANGO_VERSION=1.6.8
15+
- DJANGO_VERSION=1.7.1
1516

1617
# Command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
1718
install:
1819
- pip install -q Django==$DJANGO_VERSION --use-mirrors --quiet
20+
- pip install coveralls
1921

2022
# Command to run tests, e.g. python setup.py test
2123
script:
22-
- python manage.py test
24+
- coverage run --source=bootstrap3 manage.py test
2325

24-
# Support Python3 only with Django 1.6
26+
# Support Python3 only with Django 1.6+
27+
# Support Django 1.7+ only with Python 2.7+
2528
matrix:
2629
exclude:
2730
- python: "3.2"
28-
env: DJANGO_VERSION=1.4.10
31+
env: DJANGO_VERSION=1.4.16
2932
- python: "3.3"
30-
env: DJANGO_VERSION=1.4.10
33+
env: DJANGO_VERSION=1.4.16
34+
- python: "3.4"
35+
env: DJANGO_VERSION=1.4.16
3136
- python: "3.2"
32-
env: DJANGO_VERSION=1.5.5
37+
env: DJANGO_VERSION=1.5.11
3338
- python: "3.3"
34-
env: DJANGO_VERSION=1.5.5
39+
env: DJANGO_VERSION=1.5.11
40+
- python: "3.4"
41+
env: DJANGO_VERSION=1.5.11
42+
- python: "2.6"
43+
env: DJANGO_VERSION=1.7.1
44+
45+
# Report to coveralls
46+
after_success:
47+
- coveralls

AUTHORS.rst

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
=======
2-
Credits
2+
Authors
33
=======
44

55
Development Lead
66
----------------
77

8-
* Dylan Verheul <dylan[email protected]>
8+
* Dylan Verheul <dylan@dyve.net>
99

1010
Contributors
1111
------------
1212

13-
Allard Stijnman <[email protected]>
14-
Austin Whittier <[email protected]>
15-
Caio Ariede <[email protected]>
16-
Fabio C. Barrionuevo da Luz <[email protected]>
17-
Jay Pipes <[email protected]>
18-
Jonas Hagstedt <[email protected]>
19-
Jordan Starcher <[email protected]>
20-
Juan Carlos <[email protected]>
21-
Markus Holtermann <[email protected]>
22-
23-
Owais Lone <[email protected]>
24-
Richard Hajdu <[email protected]>
25-
13+
* Allard Stijnman <[email protected]>
14+
* Austin Whittier <[email protected]>
15+
* Caio Ariede <[email protected]>
16+
* Fabio C. Barrionuevo da Luz <[email protected]>
17+
* Fabio Perfetti <[email protected]>
18+
* Jay Pipes <[email protected]>
19+
* Jonas Hagstedt <[email protected]>
20+
* Jordan Starcher <[email protected]>
21+
* Juan Carlos <[email protected]>
22+
* Markus Holtermann <[email protected]>
23+
24+
* Owais Lone <[email protected]>
25+
26+
* Richard Hajdu <[email protected]>

HISTORY.rst

Lines changed: 127 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,132 @@
33
History
44
-------
55

6+
7+
5.0.3 (2014-12-02)
8+
++++++++++++++++++
9+
10+
* Fixing tests for older Django and Python versions
11+
12+
13+
5.0.2 (2014-11-24)
14+
++++++++++++++++++
15+
16+
* Cleaning up some mess in 5.0.1 created by PyPI malfunction
17+
18+
19+
5.0.1 (2014-11-21)
20+
++++++++++++++++++
21+
22+
* Bug fixes and update to Bootstrap 3.3.1
23+
24+
25+
4.11.0 (2014-08-19)
26+
+++++++++++++++++++
27+
28+
* Improved handling and control of form classes for error and success
29+
30+
31+
4.10.1 (2014-08-18)
32+
+++++++++++++++++++
33+
34+
* Bug fixes, test fixes, documentation fixes
35+
36+
37+
4.10.0 (2014-08-12)
38+
+++++++++++++++++++
39+
40+
* Template tag `bootstrap_icon` now supports a `title` parameter
41+
42+
43+
4.9.2 (2014-08-11)
44+
++++++++++++++++++
45+
46+
* Fixed bug causing problems with setting classes for horizontal forms
47+
48+
49+
4.9.1 (2014-08-10)
50+
++++++++++++++++++
51+
52+
* Fixed test for Django 1.4
53+
54+
55+
4.9.0 (2014-08-09)
56+
++++++++++++++++++
57+
58+
* New parameter `href` for `bootstrap_button`, if provided will render `a` tag instead of `button` tag
59+
60+
61+
4.8.2 (2014-07-10)
62+
++++++++++++++++++
63+
64+
* Internal fixes to master branch
65+
66+
67+
4.8.1 (2014-07-10)
68+
++++++++++++++++++
69+
70+
* Make extra classes override bootstrap defaults
71+
72+
73+
4.8.0 (2014-07-10)
74+
++++++++++++++++++
75+
76+
* Introduced new setting `set_placeholder`, default True
77+
78+
79+
4.7.1 (2014-07-07)
80+
++++++++++++++++++
81+
82+
* Fixed rendering of various sizes (as introduced in 4.7.0)
83+
* Upgrade to Bootstrap 3.2.0 as default version
84+
85+
86+
4.7.0 (2014-06-04)
87+
++++++++++++++++++
88+
89+
* `size` option added to formsets, forms, fields and buttons
90+
91+
92+
4.6.0 (2014-05-22)
93+
++++++++++++++++++
94+
95+
* new `bootstrap_formset_errors` tag
96+
97+
98+
4.5.0 (2014-05-21)
99+
++++++++++++++++++
100+
101+
* bug fixes in formsets
102+
* new formset renderer
103+
* new `bootstrap_form_errors` tag
104+
105+
106+
4.4.2 (2014-05-20)
107+
++++++++++++++++++
108+
109+
* documentation now mentions templates
110+
111+
112+
4.4.1 (2014-05-08)
113+
++++++++++++++++++
114+
115+
* bug fixes
116+
* documentation fixes
117+
* test coverage on coveralls.io
118+
119+
120+
4.4.0 (2014-05-01)
121+
++++++++++++++++++
122+
123+
* added `bootstrap_alert` template tag
124+
125+
126+
4.3.0 (2014-04-25)
127+
++++++++++++++++++
128+
129+
* added `required_css_class` and `error_css_class` as optional settings (global) and parameters (form and field rendering)
130+
131+
6132
4.2.0 (2014-04-06)
7133
++++++++++++++++++
8134

@@ -91,7 +217,7 @@ History
91217

92218
* project refactored
93219
* added skeleton for creating documentation (fix issue #30)
94-
* fixed FileField issues
220+
* fixed `FileField` issues
95221

96222

97223

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2013 Dylan Verheul
1+
Copyright 2013-2014 Dylan Verheul
22

33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -10,4 +10,4 @@ Unless required by applicable law or agreed to in writing, software
1010
distributed under the License is distributed on an "AS IS" BASIS,
1111
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
See the License for the specific language governing permissions and
13-
limitations under the License.
13+
limitations under the License.

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ include LICENSE
55
include README.rst
66
recursive-include bootstrap3 *.html *.png *.gif *js *jpg *jpeg *svg *py
77
recursive-include demo *.html *.png *.gif *js *jpg *jpeg *svg *py
8-

README.rst

Lines changed: 20 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
=================
2-
django-bootstrap3
3-
=================
1+
============================
2+
Welcome to django-bootstrap3
3+
============================
44

55
.. image:: https://travis-ci.org/dyve/django-bootstrap3.png?branch=master
66
:target: https://travis-ci.org/dyve/django-bootstrap3
77

8+
.. image:: https://coveralls.io/repos/dyve/django-bootstrap3/badge.png?branch=develop
9+
:target: https://coveralls.io/r/dyve/django-bootstrap3?branch=develop
10+
811
.. image:: https://badge.fury.io/py/django-bootstrap3.png
912
:target: http://badge.fury.io/py/django-bootstrap3
1013

1114
.. image:: https://pypip.in/d/django-bootstrap3/badge.png
1215
:target: https://crate.io/packages/django-bootstrap3?version=latest
1316

14-
Bootstrap support for Django projects
1517

16-
**You can support this project on GitTip, https://www.gittip.com/dyve/.**
17-
18-
Documentation
19-
-------------
18+
Use Bootstrap in your Django templates, the Django way.
2019

21-
The full documentation is at http://django-bootstrap3.readthedocs.org/.
2220

23-
Quickstart
24-
----------
21+
Installation
22+
------------
2523

2624
1. Install using pip:
2725

@@ -35,17 +33,13 @@ Quickstart
3533

3634
3. In your templates, load the ``bootstrap3`` library and use the ``bootstrap_*`` tags:
3735

38-
.. code:: Django
39-
40-
{% load bootstrap3 %}
4136

42-
{# Load CSS and JavaScript #}
37+
Example template
38+
----------------
4339

44-
{% bootstrap_css %}
45-
{% bootstrap_javascript %}
40+
.. code:: Django
4641
47-
{# Display django.contrib.messages as Bootstrap alerts #}
48-
{% bootstrap_messages %}
42+
{% load bootstrap3 %}
4943
5044
{# Display a form #}
5145
@@ -60,17 +54,16 @@ Quickstart
6054
</form>
6155
6256
57+
Documentation
58+
-------------
6359

64-
Features
65-
--------
66-
67-
Define your forms in Django, use ``django-bootstrap3`` to render them in Bootstrap. That's the dream.
60+
The full documentation is at http://django-bootstrap3.readthedocs.org/.
6861

6962

7063
Requirements
7164
------------
7265

73-
- Python 2.6, 2.7 and 3.3
66+
- Python 2.6, 2.7, 3.2 or 3.3
7467
- Django >= 1.4
7568

7669
Contributions and pull requests for other Django and Python versions are welcome.
@@ -87,7 +80,9 @@ https://github.com/dyve/django-bootstrap3/issues
8780
License
8881
-------
8982

90-
You can use this under Apache 2.0. See LICENSE file for details.
83+
You can use this under Apache 2.0. See `LICENSE
84+
<LICENSE>`_ file for details.
85+
9186

9287
Author
9388
------

bootstrap3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# -*- coding: utf-8 -*-
22

3-
__version__ = '4.2.0'
3+
__version__ = '5.0.3'

0 commit comments

Comments
 (0)