Skip to content

Commit 5f9bbea

Browse files
committed
chore(deps): update Python dependencies
Signed-off-by: behnazh-w <[email protected]>
1 parent 66a64bb commit 5f9bbea

File tree

5 files changed

+19
-20
lines changed

5 files changed

+19
-20
lines changed

pyproject.toml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ dependencies = [
2525
"requests >=2.32.3,<3.0.0",
2626
"pydriller >=2.0,<3.0.0",
2727
"yamale >=6.0.0,<7.0.0",
28-
"packaging >=24.0,<25.0.0",
28+
"packaging >=25.0,<27.0.0",
2929
"jinja2 >=3.1.2,<4.0.0",
3030
"SQLAlchemy >=2.0.0,<3.0.0",
3131
"defusedxml >=0.7.1,<1.0.0",
3232
"packageurl-python >= 0.11.1,<1.0.0",
3333
"ruamel.yaml >= 0.18.6,<1.0.0",
3434
"jsonschema >= 4.22.0,<5.0.0",
3535
"cyclonedx-bom >=7.0.0,<8.0.0",
36-
"cyclonedx-python-lib[validation] >=8.0.0,<11.0.0",
36+
"cyclonedx-python-lib[validation] >=9.0.0,<12.0.0",
3737
"beautifulsoup4 >= 4.12.0,<5.0.0",
3838
"problog >= 2.2.6,<3.0.0",
39-
"cryptography >=44.0.0,<45.0.0",
40-
"semgrep == 1.149.0",
39+
"cryptography >=46.0.5,<47.0.0",
40+
"semgrep == 1.151.0",
4141
"email-validator >=2.2.0,<3.0.0",
4242
"rich >=13.5.3,<15.0.0",
4343
"lark >= 1.3.0,<2.0.0",
@@ -71,21 +71,21 @@ macaron = 'macaron.__main__:main'
7171
# installed. Make sure to keep the requirements in sync with the workflows!
7272
actions = [
7373
"commitizen >=4.0.0,<5.0.0",
74-
"twine >=5.0.0,<6.0.0",
74+
"twine >=6.0.0,<7.0.0",
7575
]
7676
dev = [
7777
"flit >=3.2.0,<4.0.0",
78-
"mypy >=1.0.0,<1.16",
78+
"mypy >=1.19.1,<1.20",
7979
"types-pyyaml >=6.0.4,<7.0.0",
8080
"types-requests >=2.25.6,<3.0.0",
8181
"types-jsonschema >=4.22.0,<5.0.0",
8282
"pip-audit >=2.5.6,<3.0.0",
83-
"pylint >=3.0.3,<4.0.0",
83+
"pylint >=4.0.4,<5.0.0",
8484
"cyclonedx-bom >=7.0.0,<8.0.0",
8585
"types-beautifulsoup4 >= 4.12.0,<5.0.0",
8686
]
8787
docs = [
88-
"sphinx >=8.0.0,<9.0.0",
88+
"sphinx >=9.0.0,<10.0.0",
8989
"sphinx-autodoc-typehints >=3.0.0,<4.0.0",
9090
"sphinx-rtd-theme >=3.0.0,<4.0.0",
9191
"numpydoc >=1.5.0,<2.0.0",
@@ -98,12 +98,12 @@ hooks = [
9898
# Note that the `custom_exit_code` and `env` plugins may currently be unmaintained.
9999
test = [
100100
"hypothesis >=6.100.1,<7.0.0",
101-
"pytest >=8.2.2,<9.0.0",
101+
"pytest >=9.0.2,<10.0.0",
102102
"pytest-custom_exit_code >=0.3.0,<1.0.0",
103-
"pytest-cov >=6.0.0,<7.0.0",
103+
"pytest-cov >=7.0.0,<8.0.0",
104104
"pytest-env >=1.0.0,<2.0.0",
105105
"pytest_httpserver >=1.0.10,<2.0.0",
106-
"syrupy >=4.0.0,<5.0.0",
106+
"syrupy >=5.1.0,<6.0.0",
107107
]
108108

109109
test-docker = [
@@ -217,7 +217,6 @@ ignore_missing_imports = true
217217
# https://pylint.pycqa.org/en/latest/user_guide/configuration/index.html
218218
[tool.pylint.MASTER]
219219
fail-under = 10.0
220-
suggestion-mode = true # Remove this setting when pylint v4 is released.
221220
load-plugins = [
222221
"pylint.extensions.check_elif",
223222
"pylint.extensions.for_any_all",

src/macaron/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2026, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
"""This is the main entrypoint to run Macaron."""
@@ -92,7 +92,7 @@ def analyze_slsa_levels_single(analyzer_single_args: argparse.Namespace) -> None
9292

9393
local_maven_repo = os.path.join(home_dir, ".m2")
9494
if not os.path.isdir(local_maven_repo):
95-
logger.debug("The default local Maven repo at %s does not exist. Ignore ...")
95+
logger.debug("The default local Maven repo at %s does not exist. Ignore ...", local_maven_repo)
9696
global_config.local_maven_repo = None
9797

9898
global_config.local_maven_repo = local_maven_repo

src/macaron/repo_finder/repo_finder_deps_dev.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023 - 2025, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2023 - 2026, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
"""This module contains the PythonRepoFinderDD class to be used for finding repositories using deps.dev."""
@@ -179,7 +179,7 @@ def get_attestation(purl: PackageURL) -> tuple[dict | None, str | None, bool]:
179179
and a flag for whether the attestation is verified.
180180
"""
181181
if purl.type != "pypi":
182-
logger.debug("PURL type (%s) attestation not yet supported via deps.dev.")
182+
logger.debug("PURL type (%s) attestation not yet supported via deps.dev.", purl.type)
183183
return None, None, False
184184

185185
if not purl.version:

src/macaron/slsa_analyzer/git_url.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 - 2025, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022 - 2026, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
"""This module provides methods to perform generic actions on Git URLS."""
@@ -338,7 +338,7 @@ def clone_remote_repo(clone_dir: str, url: str) -> Repo | None:
338338
)
339339
return Repo(path=clone_dir)
340340
except (subprocess.CalledProcessError, OSError):
341-
logger.debug("The clone dir %s is not empty. An attempt to update it failed.")
341+
logger.debug("The clone dir %s is not empty. An attempt to update it failed.", clone_dir)
342342
return None
343343

344344
# Ensure that the parent directory where the repo is cloned into exists.

tests/integration/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2024 - 2025, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2024 - 2026, Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33

44
"""Integration test utility."""
@@ -1220,7 +1220,7 @@ def main(argv: Sequence[str] | None = None) -> int:
12201220

12211221
path = shutil.which(args.macaron)
12221222
if path is None:
1223-
logger.error("'%s' is not a command.")
1223+
logger.error("'%s' is not a command.", args.macaron)
12241224
return 1
12251225
macaron_cmd = os.path.abspath(path)
12261226

0 commit comments

Comments
 (0)