This is an automated email from the ASF dual-hosted git repository.

anandinguva 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 a6917d410d3 Add no-cache-dir to tox install (#29024)
a6917d410d3 is described below

commit a6917d410d33ab794daba7799a3da35aa9e50664
Author: Anand Inguva <[email protected]>
AuthorDate: Mon Oct 16 21:55:47 2023 +0000

    Add no-cache-dir to tox install (#29024)
    
    * Add no-cache-dir to tox install
    
    * Temp change
---
 .../src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy | 7 +++++--
 sdks/python/apache_beam/ml/transforms/base.py                      | 2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git 
a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy 
b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
index 3cea900278a..85d4e3de65a 100644
--- a/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/beam/gradle/BeamModulePlugin.groovy
@@ -2963,9 +2963,12 @@ class BeamModulePlugin implements Plugin<Project> {
           }
           project.exec {
             executable 'sh'
+            // TODO: https://github.com/apache/beam/issues/29022
+            // pip 23.3 is failing due to Hash mismatch between expected SHA 
of the packaged and actual SHA.
+            // until it is resolved on pip's side, don't use pip's cache.
             args '-c', ". ${project.ext.envdir}/bin/activate && " +
-                "pip install --pre --retries 10 --upgrade pip && " +
-                "pip install --pre --retries 10 --upgrade tox"
+                "pip install --pre --retries 10 --upgrade pip --no-cache-dir 
&& " +
+                "pip install --pre --retries 10 --upgrade tox --no-cache-dir"
           }
         }
         // Gradle will delete outputs whenever it thinks they are stale. 
Putting a
diff --git a/sdks/python/apache_beam/ml/transforms/base.py 
b/sdks/python/apache_beam/ml/transforms/base.py
index 49ce6e9ec1e..a0bc4a90610 100644
--- a/sdks/python/apache_beam/ml/transforms/base.py
+++ b/sdks/python/apache_beam/ml/transforms/base.py
@@ -33,8 +33,8 @@ TransformedDatasetT = TypeVar('TransformedDatasetT')
 TransformedMetadataT = TypeVar('TransformedMetadataT')
 
 # Input/Output types to the MLTransform.
-ExampleT = TypeVar('ExampleT')
 MLTransformOutputT = TypeVar('MLTransformOutputT')
+ExampleT = TypeVar('ExampleT')
 
 # Input to the apply() method of BaseOperation.
 OperationInputT = TypeVar('OperationInputT')

Reply via email to