From 903238a95623cb914a5a662548e79fd53ba55f5f Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Mon, 30 Jun 2025 16:24:03 -0700 Subject: [PATCH] Fix license and source-code URLs in PyPI metadata "Apache-2.0" is the standard SPDX string which PyPI prefers. "source-code" is the right way to indicate a GitHub link. PiperOrigin-RevId: 777762363 --- .github/workflows/tests.yml | 10 +++++----- setup.py | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 57dc552..d7b667e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,25 +16,25 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12", "3.13"] steps: - name: Cancel previous uses: styfle/cancel-workflow-action@0.7.0 with: access_token: ${{ github.token }} if: ${{github.ref != 'refs/head/main'}} - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Get pip cache dir id: pip-cache run: | python -m pip install --upgrade pip wheel - echo "dir=$(pip cache dir)" >> "$GITHUB_OUTPUT" + echo "::set-output name=dir::$(pip cache dir)" - name: pip cache - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ${{ steps.pip-cache.outputs.dir }} key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} diff --git a/setup.py b/setup.py index 6a1bb03..a6a5aeb 100644 --- a/setup.py +++ b/setup.py @@ -19,14 +19,14 @@ setuptools.setup( name='xarray-tensorstore', version='0.1.5', # keep in sync with xarray_tensorstore.py - license='Apache 2.0', + license='Apache-2.0', author='Google LLC', author_email='noreply@google.com', install_requires=['numpy', 'xarray', 'zarr', 'tensorstore'], extras_require={ 'tests': ['absl-py', 'dask', 'pandas', 'pytest'], }, - url='https://github.com/google/xarray-tensorstore', + url={'source-code': 'https://github.com/google/xarray-tensorstore'}, py_modules=['xarray_tensorstore'], python_requires='>=3.10', )