浏览代码

Refs #30183 -- Doc'd dropping support for sqlparse < 0.2.2.

Support for sqlparse < 0.2.2 was broken in
782d85b6dfa191e67c0f1d572641d8236c79174c because is_whitespace property
was added in sqlparse 0.2.2.
Stephen Rauch 5 年之前
父节点
当前提交
4b6db766ba
共有 4 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      docs/internals/contributing/writing-code/unit-tests.txt
  2. 2 0
      docs/releases/3.0.txt
  3. 1 1
      setup.py
  4. 1 1
      tests/requirements/py3.txt

+ 1 - 1
docs/internals/contributing/writing-code/unit-tests.txt

@@ -285,7 +285,7 @@ dependencies:
 *  memcached_, plus a :ref:`supported Python binding <memcached>`
 *  gettext_ (:ref:`gettext_on_windows`)
 *  selenium_
-*  sqlparse_ (required)
+*  sqlparse_ 0.2.2+ (required)
 *  tblib_ 1.5.0+
 
 You can find these dependencies in `pip requirements files`_ inside the

+ 2 - 0
docs/releases/3.0.txt

@@ -550,6 +550,8 @@ Miscellaneous
 * ``alias=None`` is added to the signature of
   :meth:`.Expression.get_group_by_cols`.
 
+* Support for ``sqlparse`` < 0.2.2 is removed.
+
 .. _deprecated-features-3.0:
 
 Features deprecated in 3.0

+ 1 - 1
setup.py

@@ -78,7 +78,7 @@ setup(
     entry_points={'console_scripts': [
         'django-admin = django.core.management:execute_from_command_line',
     ]},
-    install_requires=['pytz', 'sqlparse', 'asgiref'],
+    install_requires=['pytz', 'sqlparse >= 0.2.2', 'asgiref'],
     extras_require={
         "bcrypt": ["bcrypt"],
         "argon2": ["argon2-cffi >= 16.1.0"],

+ 1 - 1
tests/requirements/py3.txt

@@ -13,5 +13,5 @@ pytz
 pywatchman; sys.platform != 'win32'
 PyYAML
 selenium
-sqlparse
+sqlparse >= 0.2.2
 tblib >= 1.5.0