From c71995ff21138da0121cb887c83d0c3be859d292 Mon Sep 17 00:00:00 2001 From: Gokul A Date: Tue, 10 Jun 2025 16:16:26 -0700 Subject: [PATCH 1/9] Update airflow version --- requirements/extras/test_requirements.txt | 2 +- tox.ini | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index 04d6c0522a..f80d186b69 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -14,7 +14,7 @@ awslogs==0.14.0 black==24.3.0 stopit==1.1.2 # Update tox.ini to have correct version of airflow constraints file -apache-airflow==2.10.4 +apache-airflow==3.0.2 apache-airflow-providers-amazon==7.2.1 Flask-Limiter==3.11 attrs>=24,<26 diff --git a/tox.ini b/tox.ini index c47d206380..e4b9a61881 100644 --- a/tox.ini +++ b/tox.ini @@ -82,7 +82,7 @@ passenv = # Can be used to specify which tests to run, e.g.: tox -- -s commands = python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')" - pip install 'apache-airflow==2.10.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-2.10.4/constraints-3.9.txt" + pip install 'apache-airflow==3.0.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.2/constraints-3.9.txt" pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'dill>=0.3.9' From a82b4c908dcf1f90c8c91a86b4fe1c4959f7692e Mon Sep 17 00:00:00 2001 From: Gokul A Date: Tue, 10 Jun 2025 20:49:55 -0700 Subject: [PATCH 2/9] Update importlib-metadata versuib --- pyproject.toml | 2 +- src/sagemaker/serve/utils/conda_in_process.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 918e874b57..1c4c11a8e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ dependencies = [ "docker", "fastapi", "google-pasta", - "importlib-metadata>=1.4.0,<7.0", + "importlib-metadata>=1.4.0,<9.0", "jsonschema", "numpy==1.26.4", "omegaconf>=2.2,<3", diff --git a/src/sagemaker/serve/utils/conda_in_process.yml b/src/sagemaker/serve/utils/conda_in_process.yml index d51754ec5a..2346b405c4 100644 --- a/src/sagemaker/serve/utils/conda_in_process.yml +++ b/src/sagemaker/serve/utils/conda_in_process.yml @@ -15,7 +15,7 @@ dependencies: - numpy==1.26.4 - protobuf>=3.12,<5.0 - smdebug_rulesconfig==1.0.1 - - importlib-metadata>=1.4.0,<7.0 + - importlib-metadata>=1.4.0,<9.0 - packaging>=23.0,<25 - pandas - pathos From e69e73b9f4bdab4f253d7037f3dc55e67ae1c8c8 Mon Sep 17 00:00:00 2001 From: Gokul A Date: Tue, 10 Jun 2025 21:40:58 -0700 Subject: [PATCH 3/9] Update flask-limiter version --- requirements/extras/test_requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index f80d186b69..17481f99ff 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -16,7 +16,7 @@ stopit==1.1.2 # Update tox.ini to have correct version of airflow constraints file apache-airflow==3.0.2 apache-airflow-providers-amazon==7.2.1 -Flask-Limiter==3.11 +Flask-Limiter==3.12 attrs>=24,<26 fabric==3.2.2 requests==2.32.2 From 72fa9ba20a35051edef3aa0cb23d7c1ff9177b8f Mon Sep 17 00:00:00 2001 From: papriwal Date: Tue, 15 Jul 2025 13:09:06 -0700 Subject: [PATCH 4/9] **Description** Upgrade Apache Airflow to 3.0.4 This commit: 1. Update Apache Airflow from 3.0.1 to 3.0.4 in test_requirements.txt 2. Update Apache Airflow providers to 8.30.0 3. Add Flask-Limiter 2.9.2 to resolve dependency conflicts 4. Modify tox.ini to use development mode installation for sphinx These changes allow the documentation to build successfully while using the latest Apache Airflow version. **Testing Done** Test the command ```tox -e sphinx --parallel all``` and it succeeded. --- doc/requirements.txt | 2 +- pyproject.toml | 2 +- requirements/constraints.txt | 22 +++++++++++++++++++ requirements/extras/test_requirements.txt | 6 ++--- .../serve/utils/conda_in_process.yml | 5 +++-- .../serve/utils/in_process_requirements.txt | 2 +- tox.ini | 22 +++++++++++++++---- 7 files changed, 49 insertions(+), 12 deletions(-) create mode 100644 requirements/constraints.txt diff --git a/doc/requirements.txt b/doc/requirements.txt index 11098e2bc1..c83e1d905e 100644 --- a/doc/requirements.txt +++ b/doc/requirements.txt @@ -1,7 +1,7 @@ sphinx==7.2.6 sphinx-rtd-theme==3.0.0 docutils>=0.18.1,<0.21 -packaging>=23.0,<25 +packaging>=24.0,<25 jinja2==3.1.6 schema==0.7.5 accelerate>=0.24.1,<=0.27.0 diff --git a/pyproject.toml b/pyproject.toml index 85d6c4fd29..d542e1be75 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ "psutil", "PyYAML>=6.0.1", "requests", - "sagemaker-core>=1.0.17,<2.0.0", + "sagemaker-core>=1.0.42,<2.0.0", "schema", "smdebug_rulesconfig==1.0.1", "tblib>=1.7.0,<4", diff --git a/requirements/constraints.txt b/requirements/constraints.txt new file mode 100644 index 0000000000..7fd0b6d49b --- /dev/null +++ b/requirements/constraints.txt @@ -0,0 +1,22 @@ +# Constraints file to resolve dependency conflicts +# This forces specific versions to be used regardless of what other packages require + +# Core conflicts +importlib-metadata<7.0 +rich>=13.6.0,<14.0.0 +Flask-Limiter==2.9.2 + +# Additional constraints to ensure compatibility +sagemaker-core==1.0.42 +apache-airflow==3.0.4 +apache-airflow-providers-amazon==8.30.0 + +# Sphinx dependencies +sphinx==7.2.6 +sphinx-rtd-theme==3.0.0 +docutils>=0.18.1,<0.21 +packaging>=23.0,<25 +jinja2==3.1.6 +schema==0.7.5 +accelerate>=0.24.1,<=0.27.0 +graphene<4.0 \ No newline at end of file diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index c2ba60a7ad..162a23c106 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -14,9 +14,9 @@ awslogs==0.14.0 black==24.3.0 stopit==1.1.2 # Update tox.ini to have correct version of airflow constraints file -apache-airflow==3.0.2 -apache-airflow-providers-amazon==7.2.1 -Flask-Limiter==3.12 +apache-airflow==3.0.4 +apache-airflow-providers-amazon==8.30.0 +Flask-Limiter==2.9.2 attrs>=24,<26 fabric==3.2.2 requests==2.32.2 diff --git a/src/sagemaker/serve/utils/conda_in_process.yml b/src/sagemaker/serve/utils/conda_in_process.yml index 2346b405c4..9d0667bb9b 100644 --- a/src/sagemaker/serve/utils/conda_in_process.yml +++ b/src/sagemaker/serve/utils/conda_in_process.yml @@ -15,7 +15,7 @@ dependencies: - numpy==1.26.4 - protobuf>=3.12,<5.0 - smdebug_rulesconfig==1.0.1 - - importlib-metadata>=1.4.0,<9.0 + - importlib-metadata>=1.4.0,<7.0 - packaging>=23.0,<25 - pandas - pathos @@ -85,7 +85,8 @@ dependencies: - pyyaml>=6.0.1 - regex>=2023.3.23 - requests>=2.28.2 - - rich>=13.3.4 + - rich>=13.3.4,<14.0.0 + - safetensors>=0.4.0 - rsa>=4.7.2 - s3transfer>=0.6.0 - sagemaker>=2.148.0 diff --git a/src/sagemaker/serve/utils/in_process_requirements.txt b/src/sagemaker/serve/utils/in_process_requirements.txt index da1fd8e617..63cd57b990 100644 --- a/src/sagemaker/serve/utils/in_process_requirements.txt +++ b/src/sagemaker/serve/utils/in_process_requirements.txt @@ -53,7 +53,7 @@ pytz-deprecation-shim>=0.1.0.post0 pyyaml>=6.0.1 regex>=2023.3.23 requests>=2.28.2 -rich>=13.3.4 +rich>=13.3.4,<14.0.0 rsa>=4.7.2 s3transfer>=0.6.0 sagemaker>=2.148.0 diff --git a/tox.ini b/tox.ini index c6df62df37..79f48cc07a 100644 --- a/tox.ini +++ b/tox.ini @@ -82,14 +82,16 @@ passenv = # Can be used to specify which tests to run, e.g.: tox -- -s commands = python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')" - pip install 'apache-airflow==3.0.2' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.2/constraints-3.9.txt" + pip install 'apache-airflow==3.0.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.4/constraints-3.9.txt" pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'dill>=0.3.9' pip install 'altair>=5.3' # needed for amtviz pytest {posargs} -deps = .[test] +deps = + -c {toxinidir}/requirements/constraints.txt + .[test] depends = {py39,py310,py311,py312}: clean @@ -138,12 +140,22 @@ commands = [testenv:sphinx] pip_version = pip==24.3 +skip_install = true changedir = doc # pip install requirements.txt is separate as RTD does it in separate steps # having the requirements.txt installed in deps above results in Double Requirement exception # https://github.com/pypa/pip/issues/988 +deps = + sphinx==7.2.6 + sphinx-rtd-theme==3.0.0 + docutils>=0.18.1,<0.21 + packaging>=23.0,<25 + jinja2==3.1.6 + schema==0.7.5 + accelerate>=0.24.1,<=0.27.0 + graphene<4.0 commands = - pip install --exists-action=w -r requirements.txt + pip install -e {toxinidir} sphinx-build -T -b html -d _build/doctrees-readthedocs -D language=en . _build/html [testenv:doc8] @@ -198,6 +210,8 @@ commands = [testenv:collect-tests] # this needs to succeed for tests to display in some IDEs -deps = .[test] +skip_install = true +deps = + pytest==6.2.5 commands = pytest --collect-only From dd2a91b4cecfa474c371bd2dd39ab258fd86a01f Mon Sep 17 00:00:00 2001 From: "parknate@" Date: Wed, 16 Jul 2025 11:30:28 -0700 Subject: [PATCH 5/9] fix: add hard dependency on sagemaker-core pypi lib (#5241) --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index 79f48cc07a..403e9f4ad1 100644 --- a/tox.ini +++ b/tox.ini @@ -87,6 +87,7 @@ commands = pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'dill>=0.3.9' pip install 'altair>=5.3' # needed for amtviz + pip install -U "sagemaker-core" # needed to keep sagemaker-core up to date pytest {posargs} deps = From 16997de49387fe754fd53652c913619e8a9cfc10 Mon Sep 17 00:00:00 2001 From: papriwal Date: Wed, 16 Jul 2025 13:20:24 -0700 Subject: [PATCH 6/9] Update airflow version --- pyproject.toml | 4 ++-- requirements/constraints.txt | 16 ++++++++-------- requirements/extras/test_requirements.txt | 8 +++++--- src/sagemaker/serve/utils/conda_in_process.yml | 8 ++++---- .../serve/utils/in_process_requirements.txt | 6 +++--- tox.ini | 2 +- 6 files changed, 23 insertions(+), 21 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d542e1be75..8be5269f73 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ dependencies = [ "jsonschema", "numpy==1.26.4", "omegaconf>=2.2,<3", - "packaging>=23.0,<25", + "packaging>=25.0,<26", "pandas", "pathos", "platformdirs", @@ -49,7 +49,7 @@ dependencies = [ "psutil", "PyYAML>=6.0.1", "requests", - "sagemaker-core>=1.0.42,<2.0.0", + "sagemaker-core>=1.0.30,<2.0.0", "schema", "smdebug_rulesconfig==1.0.1", "tblib>=1.7.0,<4", diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 7fd0b6d49b..6c26eb9504 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -2,21 +2,21 @@ # This forces specific versions to be used regardless of what other packages require # Core conflicts -importlib-metadata<7.0 -rich>=13.6.0,<14.0.0 -Flask-Limiter==2.9.2 +importlib-metadata==6.11.0 +rich==13.7.0 +Flask-Limiter==3.5.0 # Additional constraints to ensure compatibility -sagemaker-core==1.0.42 -apache-airflow==3.0.4 -apache-airflow-providers-amazon==8.30.0 +sagemaker-core==1.0.30 +apache-airflow==3.0.3 +apache-airflow-providers-amazon==7.2.1 # Sphinx dependencies sphinx==7.2.6 sphinx-rtd-theme==3.0.0 docutils>=0.18.1,<0.21 -packaging>=23.0,<25 +packaging>=25.0,<26 jinja2==3.1.6 schema==0.7.5 accelerate>=0.24.1,<=0.27.0 -graphene<4.0 \ No newline at end of file +graphene<4.0 diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index 162a23c106..c7070f7cf0 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -14,9 +14,11 @@ awslogs==0.14.0 black==24.3.0 stopit==1.1.2 # Update tox.ini to have correct version of airflow constraints file -apache-airflow==3.0.4 -apache-airflow-providers-amazon==8.30.0 -Flask-Limiter==2.9.2 +apache-airflow==3.0.3 +apache-airflow-providers-amazon==7.2.1 +Flask-Limiter==3.5.0 +rich==13.7.0 +importlib-metadata==6.11.0 attrs>=24,<26 fabric==3.2.2 requests==2.32.2 diff --git a/src/sagemaker/serve/utils/conda_in_process.yml b/src/sagemaker/serve/utils/conda_in_process.yml index 9d0667bb9b..a658c28590 100644 --- a/src/sagemaker/serve/utils/conda_in_process.yml +++ b/src/sagemaker/serve/utils/conda_in_process.yml @@ -15,8 +15,8 @@ dependencies: - numpy==1.26.4 - protobuf>=3.12,<5.0 - smdebug_rulesconfig==1.0.1 - - importlib-metadata>=1.4.0,<7.0 - - packaging>=23.0,<25 + - importlib-metadata==6.11.0 + - packaging>=25.0,<26 - pandas - pathos - schema @@ -53,7 +53,7 @@ dependencies: - h11>=0.14.0 - huggingface-hub>=0.13.4 - idna>=3.4 - - importlib-metadata>=4.13.0 + - importlib-metadata==6.11.0 - jinja2>=3.1.2 - jmespath>=1.0.1 - jsonschema>=4.17.3 @@ -85,7 +85,7 @@ dependencies: - pyyaml>=6.0.1 - regex>=2023.3.23 - requests>=2.28.2 - - rich>=13.3.4,<14.0.0 + - rich==13.7.0 - safetensors>=0.4.0 - rsa>=4.7.2 - s3transfer>=0.6.0 diff --git a/src/sagemaker/serve/utils/in_process_requirements.txt b/src/sagemaker/serve/utils/in_process_requirements.txt index 63cd57b990..46e131b5fd 100644 --- a/src/sagemaker/serve/utils/in_process_requirements.txt +++ b/src/sagemaker/serve/utils/in_process_requirements.txt @@ -21,7 +21,7 @@ gunicorn>=20.1.0 h11>=0.14.0 huggingface-hub>=0.13.4 idna>=3.4 -importlib-metadata>=4.13.0 +importlib-metadata==6.11.0 jinja2>=3.1.2 jmespath>=1.0.1 jsonschema>=4.17.3 @@ -31,7 +31,7 @@ mdurl>=0.1.2 mpmath>=1.3.0 multiprocess>=0.70.14 networkx>=3.1 -packaging>=23.1 +packaging>=25.0,<26 pandas>=1.5.3 pathos>=0.3.0 pillow>=9.5.0 @@ -53,7 +53,7 @@ pytz-deprecation-shim>=0.1.0.post0 pyyaml>=6.0.1 regex>=2023.3.23 requests>=2.28.2 -rich>=13.3.4,<14.0.0 +rich==13.7.0 rsa>=4.7.2 s3transfer>=0.6.0 sagemaker>=2.148.0 diff --git a/tox.ini b/tox.ini index 403e9f4ad1..d19157a9b7 100644 --- a/tox.ini +++ b/tox.ini @@ -82,7 +82,7 @@ passenv = # Can be used to specify which tests to run, e.g.: tox -- -s commands = python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')" - pip install 'apache-airflow==3.0.4' --constraint "https://raw.githubusercontent.com/apache/airflow/constraints-3.0.4/constraints-3.9.txt" + pip install 'apache-airflow==3.0.3' 'Flask-Limiter==3.5.0' 'rich==13.7.0' 'importlib-metadata==6.11.0' --constraint {toxinidir}/requirements/constraints.txt pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'dill>=0.3.9' From 4d650e39a3274b5d4bc6e7f4d26c56cf833caec4 Mon Sep 17 00:00:00 2001 From: papriwal Date: Wed, 16 Jul 2025 13:51:26 -0700 Subject: [PATCH 7/9] Update packaging --- pyproject.toml | 2 +- requirements/constraints.txt | 4 ++-- requirements/extras/test_requirements.txt | 2 +- src/sagemaker/serve/utils/conda_in_process.yml | 6 +++--- src/sagemaker/serve/utils/in_process_requirements.txt | 4 ++-- tox.ini | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8be5269f73..ad27248f49 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,7 +41,7 @@ dependencies = [ "jsonschema", "numpy==1.26.4", "omegaconf>=2.2,<3", - "packaging>=25.0,<26", + "packaging>=24.0,<26", "pandas", "pathos", "platformdirs", diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 6c26eb9504..9389e8c558 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -2,7 +2,7 @@ # This forces specific versions to be used regardless of what other packages require # Core conflicts -importlib-metadata==6.11.0 +importlib-metadata>=7.0.0,<9.0 rich==13.7.0 Flask-Limiter==3.5.0 @@ -15,7 +15,7 @@ apache-airflow-providers-amazon==7.2.1 sphinx==7.2.6 sphinx-rtd-theme==3.0.0 docutils>=0.18.1,<0.21 -packaging>=25.0,<26 +packaging>=24.0,<26 jinja2==3.1.6 schema==0.7.5 accelerate>=0.24.1,<=0.27.0 diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index c7070f7cf0..7c626c8cc5 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -18,7 +18,7 @@ apache-airflow==3.0.3 apache-airflow-providers-amazon==7.2.1 Flask-Limiter==3.5.0 rich==13.7.0 -importlib-metadata==6.11.0 +importlib-metadata>=7.0.0,<9.0 attrs>=24,<26 fabric==3.2.2 requests==2.32.2 diff --git a/src/sagemaker/serve/utils/conda_in_process.yml b/src/sagemaker/serve/utils/conda_in_process.yml index a658c28590..2900960e9d 100644 --- a/src/sagemaker/serve/utils/conda_in_process.yml +++ b/src/sagemaker/serve/utils/conda_in_process.yml @@ -15,8 +15,8 @@ dependencies: - numpy==1.26.4 - protobuf>=3.12,<5.0 - smdebug_rulesconfig==1.0.1 - - importlib-metadata==6.11.0 - - packaging>=25.0,<26 + - importlib-metadata>=7.0.0,<9.0 + - packaging>=24.0,<26 - pandas - pathos - schema @@ -53,7 +53,7 @@ dependencies: - h11>=0.14.0 - huggingface-hub>=0.13.4 - idna>=3.4 - - importlib-metadata==6.11.0 + - importlib-metadata>=7.0.0,<9.0 - jinja2>=3.1.2 - jmespath>=1.0.1 - jsonschema>=4.17.3 diff --git a/src/sagemaker/serve/utils/in_process_requirements.txt b/src/sagemaker/serve/utils/in_process_requirements.txt index 46e131b5fd..df2bc18e97 100644 --- a/src/sagemaker/serve/utils/in_process_requirements.txt +++ b/src/sagemaker/serve/utils/in_process_requirements.txt @@ -21,7 +21,7 @@ gunicorn>=20.1.0 h11>=0.14.0 huggingface-hub>=0.13.4 idna>=3.4 -importlib-metadata==6.11.0 +importlib-metadata>=7.0.0,<9.0 jinja2>=3.1.2 jmespath>=1.0.1 jsonschema>=4.17.3 @@ -31,7 +31,7 @@ mdurl>=0.1.2 mpmath>=1.3.0 multiprocess>=0.70.14 networkx>=3.1 -packaging>=25.0,<26 +packaging>=24.0,<26 pandas>=1.5.3 pathos>=0.3.0 pillow>=9.5.0 diff --git a/tox.ini b/tox.ini index d19157a9b7..809d98ee29 100644 --- a/tox.ini +++ b/tox.ini @@ -82,7 +82,7 @@ passenv = # Can be used to specify which tests to run, e.g.: tox -- -s commands = python -c "import os; os.system('install-custom-pkgs --install-boto-wheels')" - pip install 'apache-airflow==3.0.3' 'Flask-Limiter==3.5.0' 'rich==13.7.0' 'importlib-metadata==6.11.0' --constraint {toxinidir}/requirements/constraints.txt + pip install 'apache-airflow==3.0.3' 'Flask-Limiter==3.5.0' 'rich==13.7.0' --constraint {toxinidir}/requirements/constraints.txt pip install 'torch==2.3.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'torchvision==0.18.1+cpu' -f 'https://download.pytorch.org/whl/torch_stable.html' pip install 'dill>=0.3.9' @@ -150,7 +150,7 @@ deps = sphinx==7.2.6 sphinx-rtd-theme==3.0.0 docutils>=0.18.1,<0.21 - packaging>=23.0,<25 + packaging>=23.0,<26 jinja2==3.1.6 schema==0.7.5 accelerate>=0.24.1,<=0.27.0 From a3b195b549b0fdbbd44592038655ec6f19b9e169 Mon Sep 17 00:00:00 2001 From: papriwal Date: Wed, 16 Jul 2025 13:57:50 -0700 Subject: [PATCH 8/9] Update importlib-metadata --- requirements/constraints.txt | 2 +- requirements/extras/test_requirements.txt | 4 ++-- src/sagemaker/serve/utils/conda_in_process.yml | 4 ++-- src/sagemaker/serve/utils/in_process_requirements.txt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 9389e8c558..52527daf5d 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -2,7 +2,7 @@ # This forces specific versions to be used regardless of what other packages require # Core conflicts -importlib-metadata>=7.0.0,<9.0 +importlib-metadata>=1.4.0,<9.0 rich==13.7.0 Flask-Limiter==3.5.0 diff --git a/requirements/extras/test_requirements.txt b/requirements/extras/test_requirements.txt index 7c626c8cc5..3622785ed0 100644 --- a/requirements/extras/test_requirements.txt +++ b/requirements/extras/test_requirements.txt @@ -17,8 +17,8 @@ stopit==1.1.2 apache-airflow==3.0.3 apache-airflow-providers-amazon==7.2.1 Flask-Limiter==3.5.0 -rich==13.7.0 -importlib-metadata>=7.0.0,<9.0 +rich>=13.7.0 +importlib-metadata>=1.4.0,<9.0 attrs>=24,<26 fabric==3.2.2 requests==2.32.2 diff --git a/src/sagemaker/serve/utils/conda_in_process.yml b/src/sagemaker/serve/utils/conda_in_process.yml index 2900960e9d..5e6632ae7f 100644 --- a/src/sagemaker/serve/utils/conda_in_process.yml +++ b/src/sagemaker/serve/utils/conda_in_process.yml @@ -15,7 +15,7 @@ dependencies: - numpy==1.26.4 - protobuf>=3.12,<5.0 - smdebug_rulesconfig==1.0.1 - - importlib-metadata>=7.0.0,<9.0 + - importlib-metadata>=1.4.0,<9.0 - packaging>=24.0,<26 - pandas - pathos @@ -53,7 +53,7 @@ dependencies: - h11>=0.14.0 - huggingface-hub>=0.13.4 - idna>=3.4 - - importlib-metadata>=7.0.0,<9.0 + - importlib-metadata>=1.4.0,<9.0 - jinja2>=3.1.2 - jmespath>=1.0.1 - jsonschema>=4.17.3 diff --git a/src/sagemaker/serve/utils/in_process_requirements.txt b/src/sagemaker/serve/utils/in_process_requirements.txt index df2bc18e97..e5f56c08ab 100644 --- a/src/sagemaker/serve/utils/in_process_requirements.txt +++ b/src/sagemaker/serve/utils/in_process_requirements.txt @@ -21,7 +21,7 @@ gunicorn>=20.1.0 h11>=0.14.0 huggingface-hub>=0.13.4 idna>=3.4 -importlib-metadata>=7.0.0,<9.0 +importlib-metadata>=1.4.0,<9.0 jinja2>=3.1.2 jmespath>=1.0.1 jsonschema>=4.17.3 From 3df71426e86388abc0b528fe1e43ab0047cd86c7 Mon Sep 17 00:00:00 2001 From: papriwal Date: Wed, 16 Jul 2025 14:26:46 -0700 Subject: [PATCH 9/9] Update sagemaker-core version --- pyproject.toml | 2 +- requirements/constraints.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index ad27248f49..6df7c36ac1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,7 @@ dependencies = [ "psutil", "PyYAML>=6.0.1", "requests", - "sagemaker-core>=1.0.30,<2.0.0", + "sagemaker-core>=1.0.17,<2.0.0", "schema", "smdebug_rulesconfig==1.0.1", "tblib>=1.7.0,<4", diff --git a/requirements/constraints.txt b/requirements/constraints.txt index 52527daf5d..655ffe7721 100644 --- a/requirements/constraints.txt +++ b/requirements/constraints.txt @@ -3,11 +3,11 @@ # Core conflicts importlib-metadata>=1.4.0,<9.0 -rich==13.7.0 +rich>=13.7.0 Flask-Limiter==3.5.0 # Additional constraints to ensure compatibility -sagemaker-core==1.0.30 +sagemaker-core>=1.0.17 apache-airflow==3.0.3 apache-airflow-providers-amazon==7.2.1