Просмотр исходного кода

Remove pinned version dependencies

jeremystretch 2 лет назад
Родитель
Сommit
b3efb14176
3 измененных файлов с 5 добавлено и 9 удалено
  1. 2 3
      base_requirements.txt
  2. 2 2
      netbox/utilities/utils.py
  3. 1 4
      requirements.txt

+ 2 - 3
base_requirements.txt

@@ -1,6 +1,6 @@
 # HTML sanitizer
 # https://github.com/mozilla/bleach/blob/main/CHANGES
-bleach<6.0
+bleach
 
 # Python client for Amazon AWS API
 # https://github.com/boto/boto3/blob/develop/CHANGELOG.rst
@@ -137,8 +137,7 @@ social-auth-core
 
 # Django app for social-auth-core
 # https://github.com/python-social-auth/social-app-django/blob/master/CHANGELOG.md
-# See https://github.com/python-social-auth/social-app-django/issues/429
-social-auth-app-django==5.0.0
+social-auth-app-django
 
 # SVG image rendering (used for rack elevations)
 # hhttps://github.com/mozman/svgwrite/blob/master/NEWS.rst

+ 2 - 2
netbox/utilities/utils.py

@@ -491,14 +491,14 @@ def clean_html(html, schemes):
     Also takes a list of allowed URI schemes.
     """
 
-    ALLOWED_TAGS = [
+    ALLOWED_TAGS = {
         "div", "pre", "code", "blockquote", "del",
         "hr", "h1", "h2", "h3", "h4", "h5", "h6",
         "ul", "ol", "li", "p", "br",
         "strong", "em", "a", "b", "i", "img",
         "table", "thead", "tbody", "tr", "th", "td",
         "dl", "dt", "dd",
-    ]
+    }
 
     ALLOWED_ATTRIBUTES = {
         "div": ['class'],

+ 1 - 4
requirements.txt

@@ -1,4 +1,4 @@
-bleach==5.0.1
+bleach==6.0.0
 boto3==1.26.115
 Django==4.1.8
 django-cors-headers==3.14.0
@@ -35,6 +35,3 @@ social-auth-core[openidconnect]==4.4.2
 svgwrite==1.4.3
 tablib==3.4.0
 tzdata==2023.3
-
-# Workaround for #7401
-jsonschema==3.2.0