Skip to content

Commit 65d0e17

Browse files
committed
Bump Django and DRF
And also license-expression, packageurl and cwe2 Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 48328f1 commit 65d0e17

File tree

5 files changed

+29
-29
lines changed

5 files changed

+29
-29
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Version (next)
88
- Add logging configuration (#1533)
99
- Drop support for python 3.8 (#1533)
1010
- Drop using docker-compose and use the built-in "docker compose" instead
11+
- Upgrade core dependencies including Django and Rest Framework
1112

1213

1314
Version v34.0.0

requirements.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
aboutcode.pipeline==0.1.0
22
aiosignal==1.2.0
33
alabaster==0.7.12
4-
asgiref==3.5.2
4+
asgiref==3.8.1
55
asttokens==2.0.5
66
async-timeout==4.0.2
77
attrs==21.4.0
@@ -12,7 +12,7 @@ beautifulsoup4==4.10.0
1212
binaryornot==0.4.4
1313
black==22.3.0
1414
bleach==6.1.0
15-
boolean.py==3.8
15+
boolean.py==4.0
1616
certifi==2024.7.4
1717
cffi==1.15.0
1818
chardet==4.0.0
@@ -21,29 +21,29 @@ click==8.1.2
2121
coreapi==2.3.3
2222
coreschema==0.0.4
2323
cryptography==42.0.4
24-
cwe2==2.0.0
24+
cwe2==3.0.0
2525
dateparser==1.1.1
2626
decorator==5.1.1
2727
defusedxml==0.7.1
2828
distro==1.7.0
29-
Django==4.1.13
30-
django-crispy-forms==1.10.0
31-
django-environ==0.8.1
32-
django-filter==21.1
33-
djangorestframework==3.13.1
34-
django-widget-tweaks==1.4.12
29+
Django==4.2.15
30+
django-crispy-forms==2.3
31+
django-environ==0.11.2
32+
django-filter==24.3
33+
djangorestframework==3.15.2
34+
django-widget-tweaks==1.5.0
3535
doc8==0.11.1
3636
docopt==0.6.2
3737
docutils==0.17.1
38-
drf-spectacular==0.24.2
39-
drf-spectacular-sidecar==2022.10.1
38+
drf-spectacular==0.27.2
39+
drf-spectacular-sidecar==2024.7.1
4040
executing==0.8.3
4141
fetchcode==0.3.0
4242
freezegun==1.2.1
4343
frozenlist==1.3.0
4444
gitdb==4.0.9
4545
GitPython==3.1.41
46-
gunicorn==22.0.0
46+
gunicorn==23.0.0
4747
idna==3.3
4848
imagesize==1.3.0
4949
importlib-metadata==4.11.3
@@ -54,15 +54,15 @@ itypes==1.2.0
5454
jedi==0.18.1
5555
Jinja2==3.1.4
5656
jsonschema==3.2.0
57-
license-expression==21.6.14
57+
license-expression==30.3.1
5858
lxml==4.9.1
5959
Markdown==3.3.4
6060
markdown-it-py==3.0.0
6161
MarkupSafe==2.1.1
6262
matplotlib-inline==0.1.3
6363
multidict==6.0.2
6464
mypy-extensions==0.4.3
65-
packageurl-python==0.10.5rc1
65+
packageurl-python==0.15.6
6666
packaging==21.3
6767
paramiko==3.4.0
6868
parso==0.8.3

setup.cfg

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,23 @@ include_package_data = true
5555
zip_safe = false
5656

5757
install_requires =
58-
Django>=4.0.0
58+
Django>=4.2.0,<=5.0
5959
psycopg2-binary>=2.8.6
60-
djangorestframework>=3.12.4
60+
djangorestframework>=3.15.0
6161
django-extensions>=3.2.3
62-
django-filter>=2.4.0
63-
django-widget-tweaks>=1.4.8
64-
django-crispy-forms>=1.10.0
65-
django-environ>=0.8.0
66-
gunicorn>=20.1.0
62+
django-filter>=24.0
63+
django-widget-tweaks>=1.5.0
64+
django-crispy-forms>=2.3
65+
django-environ>=0.11.0
66+
gunicorn>=23.0.0
6767

6868
# for the API doc
69-
drf-spectacular[sidecar]>=0.24.2
70-
coreapi>=2.3.3
69+
drf-spectacular[sidecar]>=0.27.2
7170

7271
#essentials
73-
packageurl-python>=0.10.5rc1
72+
packageurl-python>=0.15
7473
univers>=30.12.0
75-
license-expression>=21.6.14
74+
license-expression>=30.0.0
7675

7776
# file and data formats
7877
binaryornot>=0.4.4
@@ -85,7 +84,7 @@ install_requires =
8584
Markdown>=3.3.0
8685
dateparser>=1.1.1
8786
cvss>=2.4
88-
cwe2>=2.0.0
87+
cwe2>=3.0.0
8988

9089
# networking
9190
GitPython>=3.1.17

vulnerabilities/tests/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def test_api_with_single_vulnerability(self):
293293
{
294294
"cwe_id": 119,
295295
"name": "Improper Restriction of Operations within the Bounds of a Memory Buffer",
296-
"description": "The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.",
296+
"description": "The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.",
297297
},
298298
],
299299
}
@@ -338,7 +338,7 @@ def test_api_with_single_vulnerability_with_filters(self):
338338
{
339339
"cwe_id": 119,
340340
"name": "Improper Restriction of Operations within the Bounds of a Memory Buffer",
341-
"description": "The software performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.",
341+
"description": "The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.",
342342
},
343343
],
344344
}

vulnerabilities/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import toml
3131
import urllib3
3232
from packageurl import PackageURL
33-
from packageurl.contrib.django.models import without_empty_values
33+
from packageurl.contrib.django.utils import without_empty_values
3434
from univers.version_range import RANGE_CLASS_BY_SCHEMES
3535
from univers.version_range import NginxVersionRange
3636
from univers.version_range import VersionRange

0 commit comments

Comments
 (0)