diff --git a/.github/workflows/li_python_publish.yml b/.github/workflows/li_python_publish.yml index 025f6c5ebb64..380961d4a824 100644 --- a/.github/workflows/li_python_publish.yml +++ b/.github/workflows/li_python_publish.yml @@ -22,7 +22,7 @@ jobs: - name: Install python uses: actions/setup-python@v2 with: - python-version: 3.7 + python-version: '3.10' - name: Get build dependencies working-directory: ./sdks/python run: python -m pip install -r build-requirements.txt -r build-requirements-linkedin.txt @@ -35,5 +35,5 @@ jobs: working-directory: ./sdks/python run: twine upload dist/* env: - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - TWINE_USERNAME: ${{ secrets.PYPI_USER }} + TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }} + TWINE_USERNAME: __token__ diff --git a/runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/metrics/sink/InMemoryMetrics.java b/runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/metrics/sink/InMemoryMetrics.java index 04e48939ba31..43068db9bbdc 100644 --- a/runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/metrics/sink/InMemoryMetrics.java +++ b/runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/metrics/sink/InMemoryMetrics.java @@ -27,12 +27,12 @@ import org.apache.spark.metrics.sink.Sink; import org.checkerframework.checker.nullness.qual.Nullable; - /** An in-memory {@link Sink} implementation for tests. */ public class InMemoryMetrics implements Sink { @SuppressWarnings("initialization.static.field.uninitialized") private static WithMetricsSupport extendedMetricsRegistry; + @SuppressWarnings("initialization.static.field.uninitialized") private static MetricRegistry internalMetricRegistry; @@ -81,4 +81,4 @@ public void stop() {} @Override public void report() {} -} \ No newline at end of file +} diff --git a/sdks/python/build-requirements-linkedin.txt b/sdks/python/build-requirements-linkedin.txt index 478166fe2091..b2a788c769c7 100644 --- a/sdks/python/build-requirements-linkedin.txt +++ b/sdks/python/build-requirements-linkedin.txt @@ -21,9 +21,7 @@ oauth2client mock pytz protobuf -grpcio pydot PyYAML -PyVCF hdfs avro-python3