File tree Expand file tree Collapse file tree 10 files changed +28
-24
lines changed
vulnerabilities/management/commands Expand file tree Collapse file tree 10 files changed +28
-24
lines changed Original file line number Diff line number Diff line change 99 strategy :
1010 max-parallel : 4
1111 matrix :
12- python-version : [3.9 ]
12+ python-version : [3.12 ]
1313
1414 steps :
1515 - name : Checkout code
Original file line number Diff line number Diff line change 2929 strategy :
3030 max-parallel : 4
3131 matrix :
32- python-version : ["3.9 ", "3.10", "3.11 "]
32+ python-version : ["3.12 ", "3.13 "]
3333
3434 steps :
3535 - name : Checkout code
@@ -39,10 +39,10 @@ jobs:
3939 uses : actions/setup-python@v2
4040 with :
4141 python-version : ${{ matrix.python-version }}
42+
4243
4344 - name : Install dependencies
4445 run : make dev envfile
45-
4646# Disable codestyle checks until we have cleaned up the code
4747# - name: Validate code format
4848# run: make check
Original file line number Diff line number Diff line change 2828 - name : Set up Python
2929 uses : actions/setup-python@v1
3030 with :
31- python-version : 3.9
31+ python-version : 3.12
3232
3333 - name : Install pypa/build
3434 run : python -m pip install build --user
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ version: 2
99build :
1010 os : ubuntu-22.04
1111 tools :
12- python : " 3.11 "
12+ python : " 3.12 "
1313
1414# Build PDF & ePub
1515formats :
Original file line number Diff line number Diff line change 66# See https://github.com/nexB/vulnerablecode for support or download.
77# See https://aboutcode.org for more information about nexB OSS projects
88
9- FROM python:3.9
9+ FROM python:3.12
1010
1111WORKDIR /app
1212
Original file line number Diff line number Diff line change 4949
5050virtualenv :
5151 @echo " -> Bootstrap the virtualenv with PYTHON_EXE=${PYTHON_EXE} "
52- @${PYTHON_EXE} ${VIRTUALENV_PYZ} --never-download --no-periodic-update ${VENV}
52+ @${PYTHON_EXE} -m venv ${VENV}
53+ @$(MAKE ) upgrade-tools
54+
55+ upgrade-tools :
56+ @echo " -> Upgrade pip / setuptools / wheel (Python 3.12 safe)"
57+ @${VENV} /bin/python -m pip install --upgrade --force-reinstall \
58+ " pip>=24" " setuptools>=69" " wheel>=0.42" packaging
5359
5460conf : virtualenv
5561 @echo " -> Install dependencies"
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: "3"
22
33services :
44 db :
5- image : postgres:13
5+ image : postgres:15
66 command : -c config_file=/etc/postgresql/postgresql.conf
77 env_file :
88 - docker.env
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ alabaster==0.7.12
44asgiref == 3.8.1
55asttokens == 2.0.5
66async-timeout == 4.0.2
7- attrs == 21.4 .0
7+ attrs == 23.2 .0
88Babel == 2.9.1
99backcall == 0.2.0
1010bcrypt == 3.2.0
@@ -23,11 +23,11 @@ coreschema==0.0.4
2323cryptography == 44.0.1
2424crispy-bootstrap4 == 2024.1
2525cwe2 == 3.0.0
26- dateparser == 1.1.1
26+ dateparser == 1.3.0
2727decorator == 5.1.1
2828defusedxml == 0.7.1
2929distro == 1.7.0
30- Django == 4 .2.25
30+ Django == 5 .2.11
3131django-altcha == 0.2.0
3232django-crispy-forms == 2.3
3333django-environ == 0.11.2
@@ -48,24 +48,22 @@ GitPython==3.1.41
4848gunicorn == 23.0.0
4949idna == 3.3
5050imagesize == 1.3.0
51- importlib-metadata == 4.11.3
5251iniconfig == 1.1.1
5352ipython == 8.10.0
5453isort == 5.10.1
5554itypes == 1.2.0
5655jedi == 0.18.1
5756Jinja2 == 3.1.6
58- jsonschema == 3.2 .0
57+ jsonschema == 4.21 .0
5958license-expression == 30.3.1
60- lxml == 4.9.1
61- Markdown == 3.3.4
62- markdown-it-py == 3.0.0
59+ lxml == 6.0.2
60+ Markdown == 3.5.0
6361MarkupSafe == 2.1.1
6462matplotlib-inline == 0.1.3
6563multidict == 6.0.2
6664mypy-extensions == 0.4.3
6765packageurl-python == 0.17.6
68- packaging == 21.3
66+ packaging == 23.2
6967paramiko == 3.4.0
7068parso == 0.8.3
7169pathspec == 0.9.0
@@ -76,7 +74,7 @@ platformdirs==2.5.1
7674pluggy == 1.0.0
7775pprintpp == 0.4.0
7876prompt-toolkit == 3.0.30
79- psycopg2-binary == 2.9.3
77+ psycopg2-binary == 2.9.11
8078ptyprocess == 0.7.0
8179pure-eval == 0.2.2
8280py == 1.11.0
@@ -90,7 +88,7 @@ pytest==7.1.1
9088pytest-django == 4.5.2
9189python-dateutil == 2.8.2
9290python-dotenv == 0.20.0
93- pytz == 2022.1
91+ pytz == 2024.2
9492PyYAML == 6.0.1
9593redis == 5.0.1
9694requests == 2.32.0
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ license_files =
4848 README.rst
4949
5050[options]
51- python_requires = >=3.9
51+ python_requires = >=3.12
5252
5353packages =find:
5454include_package_data = true
5555zip_safe = false
5656
5757install_requires =
58- Django>=4 .2.0 ,<=5 .0
58+ Django>=5 .2.11 ,<=6 .0
5959 psycopg2-binary>=2.8.6
6060 djangorestframework>=3.15.0
6161 django-extensions>=3.2.3
@@ -83,8 +83,8 @@ install_requires =
8383 toml>=0.10.2
8484 lxml>=4.6.4
8585 defusedxml>=0.7.1
86- Markdown>=3.3 .0
87- dateparser>=1.1.1
86+ Markdown>=3.5 .0
87+ dateparser>=1.3.0
8888 cvss>=2.4
8989 cwe2>=3.0.0
9090
Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def packages_by_type_ns_name():
188188 "fixing_vulnerabilities__weaknesses" ,
189189 "fixing_vulnerabilities__severities" ,
190190 )
191- .iterator ()
191+ .iterator (chunk_size = 1000 )
192192 )
193193
194194 for tp_ns_name , packages in groupby (qs , key = by_purl_type_ns_name ):
You can’t perform that action at this time.
0 commit comments