From eda2fa4acd3462cc82b02144f06e0a687cf47872 Mon Sep 17 00:00:00 2001 From: Pieter De Gendt Date: Fri, 21 Mar 2025 10:36:54 +0100 Subject: [PATCH] [refactor] Use compatible versions instead of pinned It is not recommended by the Python Packaging User Guide to pin dependencies. Signed-off-by: Pieter De Gendt --- analyzer/requirements.txt | 16 ++++++------ analyzer/requirements_py/dev/requirements.txt | 10 +++---- analyzer/requirements_py/osx/requirements.txt | 2 +- .../requirements_py/dev/requirements.txt | 6 ++--- .../requirements_py/dev/requirements.txt | 8 +++--- .../requirements_py/dev/requirements.txt | 8 +++--- .../requirements_py/dev/requirements.txt | 12 ++++----- requirements_py/docs/requirements.txt | 2 +- .../crash_clustering/requirements.txt | 10 +++---- scripts/labels/requirements.txt | 14 +++++----- .../requirements_py/dev/requirements.txt | 10 +++---- .../requirements_py/dev/requirements.txt | 18 ++++++------- .../requirements_py/dev/requirements.txt | 10 +++---- web/requirements.txt | 26 +++++++++---------- web/requirements_py/auth/requirements.txt | 6 ++--- .../db_pg8000/requirements.txt | 12 ++++----- .../db_psycopg2/requirements.txt | 12 ++++----- web/requirements_py/dev/requirements.txt | 16 ++++++------ 18 files changed, 99 insertions(+), 99 deletions(-) diff --git a/analyzer/requirements.txt b/analyzer/requirements.txt index bca6e25864..2f0fa48f88 100644 --- a/analyzer/requirements.txt +++ b/analyzer/requirements.txt @@ -1,8 +1,8 @@ -lxml==5.3.0 -portalocker==3.1.1 -psutil==5.8.0 -PyYAML==6.0.1 -types-PyYAML==6.0.12.12 -sarif-tools==3.0.4 -multiprocess==0.70.15 -setuptools==70.2.0 +lxml~=5.3 +portalocker~=3.1 +psutil~=5.8 +PyYAML~=6.0 +types-PyYAML~=6.0 +sarif-tools~=3.0 +multiprocess~=0.70 +setuptools~=70.2 diff --git a/analyzer/requirements_py/dev/requirements.txt b/analyzer/requirements_py/dev/requirements.txt index c9f40124f1..5de81b98ee 100644 --- a/analyzer/requirements_py/dev/requirements.txt +++ b/analyzer/requirements_py/dev/requirements.txt @@ -1,7 +1,7 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 -mkdocs==1.5.3 -coverage==5.5.0 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 +mkdocs~=1.5 +coverage~=5.5 -r ../../requirements.txt diff --git a/analyzer/requirements_py/osx/requirements.txt b/analyzer/requirements_py/osx/requirements.txt index 2189184c4d..b983e2e0e1 100644 --- a/analyzer/requirements_py/osx/requirements.txt +++ b/analyzer/requirements_py/osx/requirements.txt @@ -1,3 +1,3 @@ -scan-build==2.0.19 +scan-build~=2.0 -r ../../requirements.txt diff --git a/analyzer/tools/build-logger/requirements_py/dev/requirements.txt b/analyzer/tools/build-logger/requirements_py/dev/requirements.txt index 9685d12ba7..a024ce1c91 100644 --- a/analyzer/tools/build-logger/requirements_py/dev/requirements.txt +++ b/analyzer/tools/build-logger/requirements_py/dev/requirements.txt @@ -1,3 +1,3 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 diff --git a/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt b/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt index 6d3f90e864..a5dde81aa2 100644 --- a/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt +++ b/analyzer/tools/merge_clang_extdef_mappings/requirements_py/dev/requirements.txt @@ -1,4 +1,4 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 -setuptools==70.2.0 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 +setuptools~=70.2 diff --git a/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt b/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt index 6d3f90e864..a5dde81aa2 100644 --- a/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt +++ b/analyzer/tools/statistics_collector/requirements_py/dev/requirements.txt @@ -1,4 +1,4 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 -setuptools==70.2.0 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 +setuptools~=70.2 diff --git a/codechecker_common/requirements_py/dev/requirements.txt b/codechecker_common/requirements_py/dev/requirements.txt index f7b29e9444..4caea3d5c1 100644 --- a/codechecker_common/requirements_py/dev/requirements.txt +++ b/codechecker_common/requirements_py/dev/requirements.txt @@ -1,6 +1,6 @@ -portalocker==3.1.1 -coverage==5.5.0 -mypy==1.7.1 -PyYAML==6.0.1 -types-PyYAML==6.0.12.12 -setuptools==70.2.0 +portalocker~=3.1 +coverage~=5.5 +mypy~=1.7 +PyYAML~=6.0 +types-PyYAML~=6.0 +setuptools~=70.2 diff --git a/requirements_py/docs/requirements.txt b/requirements_py/docs/requirements.txt index 8bc44de365..0a8c55994b 100644 --- a/requirements_py/docs/requirements.txt +++ b/requirements_py/docs/requirements.txt @@ -1 +1 @@ -mkdocs==1.5.3 +mkdocs~=1.5 diff --git a/scripts/debug_tools/crash_clustering/requirements.txt b/scripts/debug_tools/crash_clustering/requirements.txt index c2721b5d80..c6f065a0a6 100644 --- a/scripts/debug_tools/crash_clustering/requirements.txt +++ b/scripts/debug_tools/crash_clustering/requirements.txt @@ -1,5 +1,5 @@ -matplotlib==3.8.2 -numpy==1.25.2 -scikit-learn==1.5.0 -scipy==1.11.1 -tqdm==4.66.3 +matplotlib~=3.8 +numpy~=1.25 +scikit-learn~=1.5 +scipy~=1.11 +tqdm~=4.66 diff --git a/scripts/labels/requirements.txt b/scripts/labels/requirements.txt index ab17cdcf0f..e5af0852e7 100644 --- a/scripts/labels/requirements.txt +++ b/scripts/labels/requirements.txt @@ -1,8 +1,8 @@ # codechecker==local -emoji==2.11.0 -lxml==5.3.0 -packaging==24.0 -selenium==4.19.0 -tabulate==0.9.0 -termcolor==2.4.0 -urllib3==2.2.2 +emoji~=2.11 +lxml~=5.3 +packaging~=24.0 +selenium~=4.19 +tabulate~=0.9 +termcolor~=2.4 +urllib3~=2.2 diff --git a/tools/bazel/requirements_py/dev/requirements.txt b/tools/bazel/requirements_py/dev/requirements.txt index c56a9ccd0e..0d726f678f 100644 --- a/tools/bazel/requirements_py/dev/requirements.txt +++ b/tools/bazel/requirements_py/dev/requirements.txt @@ -1,5 +1,5 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 -mypy==1.7.1 -setuptools==70.2.0 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 +mypy~=1.7 +setuptools~=70.2 diff --git a/tools/report-converter/requirements_py/dev/requirements.txt b/tools/report-converter/requirements_py/dev/requirements.txt index 18a9ec7698..549ff5b597 100644 --- a/tools/report-converter/requirements_py/dev/requirements.txt +++ b/tools/report-converter/requirements_py/dev/requirements.txt @@ -1,9 +1,9 @@ -pytest==7.3.1 -sarif-tools==3.0.4 -pycodestyle==2.12.0 -pylint==3.2.4 -portalocker==3.1.1 -mypy==1.7.1 -setuptools==70.2.0 -PyYAML==6.0.1 -types-PyYAML==6.0.12 +pytest~=7.3 +sarif-tools~=3.0 +pycodestyle~=2.12 +pylint~=3.2.4 +portalocker~=3.1 +mypy~=1.7 +setuptools~=70.2 +PyYAML~=6.0 +types-PyYAML~=6.0 diff --git a/tools/tu_collector/requirements_py/dev/requirements.txt b/tools/tu_collector/requirements_py/dev/requirements.txt index c56a9ccd0e..0d726f678f 100644 --- a/tools/tu_collector/requirements_py/dev/requirements.txt +++ b/tools/tu_collector/requirements_py/dev/requirements.txt @@ -1,5 +1,5 @@ -pytest==7.3.1 -pycodestyle==2.12.0 -pylint==3.2.4 -mypy==1.7.1 -setuptools==70.2.0 +pytest~=7.3 +pycodestyle~=2.12 +pylint~=3.2.4 +mypy~=1.7 +setuptools~=70.2 diff --git a/web/requirements.txt b/web/requirements.txt index 45631281b3..0833fe9f6a 100644 --- a/web/requirements.txt +++ b/web/requirements.txt @@ -1,16 +1,16 @@ -Authlib==1.3.1 -requests==2.32.4 # Required by Authlib. Not installed automatically for some reason. -lxml==5.3.0 -sqlalchemy==1.3.23 -alembic==1.5.5 -portalocker==3.1.1 -psutil==5.8.0 -multiprocess==0.70.15 -thrift==0.22.0 -gitpython==3.1.41 -PyYAML==6.0.1 -types-PyYAML==6.0.12.12 -sarif-tools==3.0.4 +Authlib~=1.3 +requests~=2.32 # Required by Authlib. Not installed automatically for some reason. +lxml~=5.3 +sqlalchemy~=1.3 +alembic~=1.5 +portalocker~=3.1 +psutil~=5.8 +multiprocess~=0.70 +thrift~=0.22 +gitpython~=3.1 +PyYAML~=6.0 +types-PyYAML~=6.0 +sarif-tools~=3.0 ./api/py/codechecker_api/dist/codechecker_api.tar.gz ./api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz diff --git a/web/requirements_py/auth/requirements.txt b/web/requirements_py/auth/requirements.txt index 8c28e2e080..57665d6852 100644 --- a/web/requirements_py/auth/requirements.txt +++ b/web/requirements_py/auth/requirements.txt @@ -1,3 +1,3 @@ -python-ldap==3.4.0 -python-pam==1.8.4 -requests==2.32.3 +python-ldap~=3.4 +python-pam~=1.8 +requests~=2.32 diff --git a/web/requirements_py/db_pg8000/requirements.txt b/web/requirements_py/db_pg8000/requirements.txt index 6b7680a03a..d170e7d698 100644 --- a/web/requirements_py/db_pg8000/requirements.txt +++ b/web/requirements_py/db_pg8000/requirements.txt @@ -1,9 +1,9 @@ -lxml==5.3.0 -sqlalchemy==1.3.23 -alembic==1.5.5 -pg8000==1.15.2 -psutil==5.8.0 -portalocker==3.1.1 +lxml~=5.3 +sqlalchemy~=1.3 +alembic~=1.5 +pg8000~=1.15 +psutil~=5.8 +portalocker~=3.1 ./api/py/codechecker_api/dist/codechecker_api.tar.gz ./api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz diff --git a/web/requirements_py/db_psycopg2/requirements.txt b/web/requirements_py/db_psycopg2/requirements.txt index d89410ede9..4764774e40 100644 --- a/web/requirements_py/db_psycopg2/requirements.txt +++ b/web/requirements_py/db_psycopg2/requirements.txt @@ -1,9 +1,9 @@ -lxml==5.3.0 -sqlalchemy==1.3.23 -alembic==1.5.5 -psycopg2-binary==2.8.6 -psutil==5.8.0 -portalocker==3.1.1 +lxml~=5.3 +sqlalchemy~=1.3 +alembic~=1.5 +psycopg2-binary~=2.8 +psutil~=5.8 +portalocker~=3.1 ./api/py/codechecker_api/dist/codechecker_api.tar.gz ./api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz diff --git a/web/requirements_py/dev/requirements.txt b/web/requirements_py/dev/requirements.txt index a85164e057..4aea2ce0e1 100644 --- a/web/requirements_py/dev/requirements.txt +++ b/web/requirements_py/dev/requirements.txt @@ -1,13 +1,13 @@ -pycodestyle==2.12.0 -psycopg2-binary==2.8.6 -pg8000==1.15.2 -pylint==3.2.4 -pytest==7.3.1 -mkdocs==1.5.3 -coverage==5.5.0 +pycodestyle~=2.12 +psycopg2-binary~=2.8 +pg8000~=1.15 +pylint~=3.2.4 +pytest~=7.3 +mkdocs~=1.5 +coverage~=5.5 -r ../../requirements.txt # publish packages to pypi twine -cryptography==41.0.4 +cryptography~=41.0