Skip to content

Commit 56afb26

Browse files
authored
Merge pull request #45 from sw360/fix-CVEs
drop Python 3.8 support and vcrpy and update deps to fix CVEs
2 parents 9f6d088 + eec64c7 commit 56afb26

File tree

7 files changed

+448
-607
lines changed

7 files changed

+448
-607
lines changed

.github/workflows/deploy-documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.8]
11+
python-version: [3.9]
1212

1313
steps:
1414
- name: Checkout 🛎️

.github/workflows/unit-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10", "3.11"]
18+
python-version: ["3.9", "3.10", "3.11"]
1919

2020
steps:
2121
- uses: actions/checkout@v4

ChangeLog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55

66
# SW360 Base Library for Python
77

8+
## NEXT
9+
10+
* Drop support for Python 3.8 (to update urllib3 to 2.5 fixing CVE-2025-50181 and -50182)
11+
* Update Poetry dependencies including requests 2.32.4 to fix CVE-2024-47081
12+
813
## V1.9.1
914

1015
* We have now a more comprehensive query param encoding.

Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# SW360 Base Library for Python
77

88
[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/sw360/sw360python/blob/master/License.md)
9-
[![Python Version](https://img.shields.io/badge/python-3.8%2C3.9%2C3.10%2C3.11-yellow?logo=python)](https://www.python.org/doc/versions/)
9+
[![Python Version](https://img.shields.io/badge/python-3.9%2C3.10%2C3.11-yellow?logo=python)](https://www.python.org/doc/versions/)
1010
[![PyPI](https://shields.io/pypi/v/sw360)](https://pypi.org/project/sw360/)
1111
[![Static checks](https://github.com/sw360/sw360python/actions/workflows/static-checks.yml/badge.svg)](https://github.com/sw360/sw360python/actions/workflows/static-checks.yml)
1212
[![Unit tests](https://github.com/sw360/sw360python/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sw360/sw360python/actions/workflows/unit-test.yml)

poetry.lock

Lines changed: 438 additions & 600 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ classifiers = [
2222
]
2323

2424
[tool.poetry.dependencies]
25-
python = "^3.8" # because 3.8 is the minimum requirement for isort, mypy
26-
requests = "^2.32.2" # fix CVE-2024-35195
25+
python = "^3.9" # 3.9 is needed for urllib 2.5 to fix CVE-2025-50181
26+
requests = "^2.32.4" # fix CVE-2024-47081
2727

2828
[tool.poetry.group.dev.dependencies]
2929
colorama = "^0.4.6"
3030
sphinx = "^7.1.2"
31-
vcrpy = "4.0.2"
3231
yarl = "1.9.7" # force this version because 1.8.2 will not install
3332
flake8 = ">=3.7.8"
3433
responses = "^0.17"

sw360/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ def api_delete(self, url: str = "") -> Optional[requests.Response]:
193193

194194
raise SW360Error(response, url)
195195

196-
# type checking: not for Python 3.8: tuple[Optional[Any], Dict[str, Dict[str, str]], bool]
197196
def _update_external_ids(self, current_data: Dict[str, Any], ext_id_name: str, ext_id_value: str,
198197
update_mode: str) -> Tuple[Optional[Any], Dict[str, Dict[str, str]], bool]:
199198
"""Internal helper function to prepare an update/addition of external

0 commit comments

Comments
 (0)