Skip to content

Commit ffab58f

Browse files
committed
Merge branch 'release/1.3'
* release/1.3: bump v1.3 update CHANGES tox.ini: do not install postgis if not required update docs - Document new setting - Fix loaddata test to pass without disabling concurrency - Remove loaddata test that disable concurrency (now redundant) - fixes #36 add default value to ConcurrencyOptions.initial add explicit mention to MIT license open 1.3 alpha
2 parents f203ad7 + df5b743 commit ffab58f

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

+236
-133
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ coverage.xml
99
.cache
1010
notes.txt
1111
docs/build/
12+
__pycache__
1213
/dist
1314
/build
1415
/MANIFEST

CHANGES

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
Release 1.3 (15 Jul 2016)
2+
-------------------------
3+
* drop support for Python < 3.3
4+
* add support Django>=1.10
5+
* change license
6+
* fixes :issue:`36`. (thanks claytondaley)
7+
* new :setting:`IGNORE_DEFAULT` to ignore default version number
8+
9+
110
Release 1.2 (05 Apr 2016)
211
-------------------------
312
* better support for django 1.9 ( ``TemplateDoesNotExist`` is now in ``django.template.exceptions``

LICENSE

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
1-
* Copyright (c) 2010, Stefano Apostolico ([email protected])
2-
* Dual licensed under the MIT or GPL Version 2 licenses.
1+
MIT License
32

4-
Redistribution and use in source and binary forms, with or without modification,
5-
are permitted provided that the following conditions are met:
3+
Copyright (c) 2010-2016, Stefano Apostolico ([email protected])
64

7-
1. Redistributions of source code must retain the above copyright notice,
8-
this list of conditions and the following disclaimer.
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
911

10-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
11-
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
12-
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
13-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
14-
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
15-
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
16-
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
17-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
19-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
2014

15+
Any use in a commercial product must be notified to the author by email
16+
indicating company name and product name
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.

MANIFEST.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,11 @@ include *.py
1010
exclude Makefile
1111
exclude .editorconfig
1212
exclude .tx
13+
exclude .pyc
1314

1415
recursive-exclude .tx *
16+
recursive-exclude __pycache__ *
17+
recursive-exclude . *.pyc
1518

1619
recursive-include docs *
1720
recursive-include src *

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
version = ".".join(map(str, concurrency.VERSION[0:2]))
8888
# The full version, including alpha/beta/rc tags.
8989
release = concurrency.get_version()
90-
next_version = '1.0.1'
90+
next_version = '1.4'
9191

9292
# The language for content autogenerated by Sphinx. Refer to documentation
9393
# for a list of supported languages.

docs/settings.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,21 @@ Default: ``CONCURRENCY_LIST_EDITABLE_POLICY_SILENT``
9292

9393
.. _list_editable_policies:
9494

95+
.. setting:: CONCURRENCY_IGNORE_DEFAULT
96+
97+
IGNORE_DEFAULT
98+
--------------
99+
.. versionadded:: >1.2
100+
101+
Default: ``True``
102+
103+
Determines whether a default version number is ignored or used in a concurrency check. While this
104+
configuration defaults to True for backwards compatibility, this setting can cause omitted version
105+
numbers to pass concurrency checks. New implementations are recommended to set this to ``False``.
106+
107+
.. note:: For security reasons, starting from version 1.5, default value will be ``False``.
108+
109+
95110
``CONCURRENCY_LIST_EDITABLE_POLICY_SILENT``
96111
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97112
Used by admin's integrations to handle ``list_editable`` conflicts.

setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/usr/bin/env python
2+
import imp
23
import os
34
import sys
4-
import imp
5-
from distutils import log
6-
from distutils.command.clean import clean as CleanCommand
7-
from distutils.dir_util import remove_tree
85

96
from setuptools import find_packages, setup
107
from setuptools.command.test import test as TestCommand
@@ -58,7 +55,7 @@ def run_tests(self):
5855
long_description=open('README.rst').read(),
5956
license='MIT License',
6057
keywords='django',
61-
setup_requires=['pytest-runner',],
58+
setup_requires=['pytest-runner', ],
6259
install_requires=install_requires,
6360
tests_require='django\n' + test_requires,
6461
extras_require={'test': test_requires,

src/concurrency/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__author__ = 'sax'
66
default_app_config = 'concurrency.apps.ConcurrencyConfig'
77

8-
VERSION = __version__ = (1, 2, 0, 'final', 0)
8+
VERSION = __version__ = (1, 3, 0, 'final', 0)
99
NAME = 'django-concurrency'
1010

1111

src/concurrency/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from django.http import HttpResponse, HttpResponseRedirect
1717
from django.utils.encoding import force_text
1818
from django.utils.safestring import mark_safe
19-
from django.utils.translation import ugettext as _, ungettext
19+
from django.utils.translation import ungettext
2020

2121
from concurrency import core, forms
2222
from concurrency.api import get_revision_of_object

src/concurrency/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ class AppSettings(object):
5050
'FIELD_SIGNER': 'concurrency.forms.VersionFieldSigner',
5151
'POLICY': CONCURRENCY_LIST_EDITABLE_POLICY_SILENT,
5252
'CALLBACK': 'concurrency.views.callback',
53-
'HANDLER409': 'concurrency.views.conflict'}
53+
'HANDLER409': 'concurrency.views.conflict',
54+
'IGNORE_DEFAULT': True,
55+
}
5456

5557
def __init__(self, prefix):
5658
"""

0 commit comments

Comments
 (0)