This is an automated email from the ASF dual-hosted git repository.
tvalentyn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new c8f51474ee6 updated tox (#37047)
c8f51474ee6 is described below
commit c8f51474ee65a90431f0e8a3ab59b74e744b8cc3
Author: Derrick Williams <[email protected]>
AuthorDate: Wed Dec 10 18:48:32 2025 -0500
updated tox (#37047)
* first try for updated tox
* Update tox.ini
---------
Co-authored-by: tvalentyn <[email protected]>
---
sdks/python/tox.ini | 25 ++++++++++---------------
1 file changed, 10 insertions(+), 15 deletions(-)
diff --git a/sdks/python/tox.ini b/sdks/python/tox.ini
index 52fd82d4115..afb9b6520fb 100644
--- a/sdks/python/tox.ini
+++ b/sdks/python/tox.ini
@@ -517,22 +517,17 @@ commands =
[testenv:py{310,311}-transformers-{428,447,448,latest}]
deps =
- # sentence-transformers 2.2.2 is the latest version that supports
transformers 4.28.x
- 428: sentence-transformers==2.2.2
- 428: transformers>=4.28.0,<4.29.0
- 428: torch>=1.9.0,<1.14.0
- 447: transformers>=4.47.0,<4.48.0
- 447: torch>=1.9.0,<1.14.0
- 455: transformers>=4.55.0,<4.56.0
- 455: torch>=2.0.0,<2.1.0
- latest: transformers>=4.55.0
- latest: torch>=2.0.0
- latest: accelerate>=1.6.0
- tensorflow==2.12.0
- protobuf==4.25.5
- pip==25.0.1
+ # Environment dependencies are defined in the `setenv` section and installed
in the `commands` section.
extras = test,gcp,ml_test
-commands =
+setenv =
+ COMMON_DEPS = tensorflow==2.12.0 protobuf==4.25.5 pip==25.0.1
+ # sentence-transformers 2.2.2 is the latest version that supports
transformers 4.28.x
+ 428: DEPS = sentence-transformers==2.2.2 'transformers>=4.28.0,<4.29.0'
'torch>=1.9.0,<1.14.0'
+ 447: DEPS = 'transformers>=4.47.0,<4.48.0' 'torch>=1.9.0,<1.14.0'
+ 455: DEPS = 'transformers>=4.55.0,<4.56.0' 'torch>=2.0.0,<2.1.0'
+ latest: DEPS = 'transformers>=4.55.0' 'torch>=2.0.0' 'accelerate>=1.6.0'
+commands =
+ /bin/sh -c "pip install .[{extras}] {env:DEPS} {env:COMMON_DEPS}"
# Log transformers and its dependencies version for debugging
/bin/sh -c "pip freeze | grep -E transformers"
/bin/sh -c "pip freeze | grep -E torch"