Skip to content

Commit

Permalink
v0.1.408
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 643320435
  • Loading branch information
Google Earth Engine Authors authored and naschmitz committed Jun 18, 2024
1 parent 796adc2 commit dac4363
Show file tree
Hide file tree
Showing 10 changed files with 4,555 additions and 4,582 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,33 +6,7 @@ on:
workflow_dispatch:

jobs:
smoke-test:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Authenticate with Google Cloud
id: "auth"
uses: 'google-github-actions/auth@v2'
with:
service_account: ${{ secrets.SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
token_format: "access_token"
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
cd javascript/
npm install
npm run build
npm run test
env:
EE_ACCESS_TOKEN: ${{ steps.auth.outputs.access_token }}
publish-npm:
needs: smoke-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -42,8 +16,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: |
cd javascript/
npm install
npm run build
npm publish
npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_API_TOKEN}}
38 changes: 1 addition & 37 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,43 +6,7 @@ on:
workflow_dispatch:

jobs:
smoke-test:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
service_account: ${{ secrets.SERVICE_ACCOUNT }}
workload_identity_provider: ${{ secrets.WORKLOAD_IDENTITY_PROVIDER }}
- name: Install EE and dependencies
run: |
pip install ./python[tests]
- name: Smoke test
run: >
python -c 'import ee;
import json;
import os;
from google.auth import identity_pool;
scopes = [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/earthengine",
];
path = os.environ["GOOGLE_APPLICATION_CREDENTIALS"];
info = json.load(open(path));
ee.Initialize(identity_pool.Credentials.from_info(info).with_scopes(scopes));
print(ee.Image("srtm90_v4").getInfo())'
build-artifacts:
needs: smoke-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -96,4 +60,4 @@ jobs:
sleep 3 # To account for PyPi publish delay.
python -m pip install --upgrade pip
python -m pip install --upgrade earthengine-api
python -c "import ee; print(ee.__version__)"
python -c "import ee; print(ee.__version__)"
872 changes: 436 additions & 436 deletions javascript/build/ee_api_js.js

Large diffs are not rendered by default.

4,010 changes: 2,014 additions & 1,996 deletions javascript/build/ee_api_js_debug.js

Large diffs are not rendered by default.

4,050 changes: 2,034 additions & 2,016 deletions javascript/build/ee_api_js_npm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@google/earthengine",
"version": "0.1.406",
"version": "0.1.408",
"description": "JavaScript client for Google Earth Engine API.",
"author": "Google LLC",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion javascript/src/apiclient.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
/** @namespace */
const apiclient = {};

const API_CLIENT_VERSION = '0.1.406';
const API_CLIENT_VERSION = '0.1.408';

exports.VERSION = apiVersion.VERSION;
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
Expand Down
2 changes: 1 addition & 1 deletion python/ee/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""The EE Python library."""

__version__ = '0.1.406'
__version__ = '0.1.408'

# Using lowercase function naming to match the JavaScript names.
# pylint: disable=g-bad-name
Expand Down
126 changes: 63 additions & 63 deletions python/ee/tests/algorithms.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "earthengine-api"
version = "0.1.406"
version = "0.1.408"
description = "Earth Engine Python API"
readme = "README.md"
requires-python = ">=3.8"
Expand Down

0 comments on commit dac4363

Please sign in to comment.