From 01989ed4978e80d1147f7a7530a3fc8316de16a6 Mon Sep 17 00:00:00 2001 From: TensorStore team Date: Thu, 31 Oct 2024 23:53:07 +0000 Subject: [PATCH] Exported changes --- .github/workflows/docs.yml | 94 ++++++++++++----------- tensorstore/index_space/index_domain.h | 4 +- tensorstore/index_space/index_transform.h | 6 +- tools/ci/cibuildwheel.py | 3 +- 4 files changed, 54 insertions(+), 53 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7d80d4937..3bf511018 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,45 +7,46 @@ jobs: strategy: matrix: python-version: - - '3.9' + - "3.12" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - # Need full history to determine version number. - fetch-depth: 0 - - name: 'Set up Python ${{ matrix.python-version }}' - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: 'Configure bazel remote cache write credentials' - env: - BAZEL_CACHE_SERVICE_ACCOUNT_KEY: ${{ secrets.BAZEL_CACHE_SERVICE_ACCOUNT_KEY }} - run: python ./tools/ci/configure_bazel_remote_cache.py --bazelrc ~/ci_bazelrc docs - shell: bash - - name: Get pip cache dir - id: pip-cache - shell: bash - run: | - echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 - with: - path: ${{ steps.pip-cache.outputs.dir }} - key: pip-${{ runner.os }}-docs-${{ matrix.python-version }}-${{ hashFiles('third_party/pypa/workspace.bzl') }} - - uses: actions/cache@v2 - with: - path: | - ~/.cache/bazel/_bazel_*/cache/repos - ~/.cache/bazelisk - key: bazel-docs-${{ hashFiles('.bazelversion', 'WORKSPACE', 'external.bzl', 'third_party/**') }} - - name: Build documentation - run: CC=gcc-10 python -u bazelisk.py --bazelrc ~/ci_bazelrc run --announce_rc --show_timestamps --keep_going --color=yes --verbose_failures //docs:build_docs -- --output docs_output - shell: bash - - name: Upload docs as artifact - uses: actions/upload-artifact@v4 - with: - name: docs - path: docs_output + - uses: actions/checkout@v2 + with: + # Need full history to determine version number. + fetch-depth: 0 + - name: "Set up Python ${{ matrix.python-version }}" + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + - name: "Configure bazel remote cache write credentials" + env: + BAZEL_CACHE_SERVICE_ACCOUNT_KEY: ${{ secrets.BAZEL_CACHE_SERVICE_ACCOUNT_KEY }} + run: python ./tools/ci/configure_bazel_remote_cache.py --bazelrc ~/ci_bazelrc docs + shell: bash + - name: Get pip cache dir + id: pip-cache + shell: bash + run: | + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT + - uses: actions/cache@v2 + with: + path: ${{ steps.pip-cache.outputs.dir }} + key: pip-${{ runner.os }}-docs-${{ matrix.python-version }}-${{ hashFiles('third_party/pypa/workspace.bzl') }} + - uses: actions/cache@v2 + with: + path: | + ~/.cache/bazel/_bazel_*/cache/repos + ~/.cache/bazelisk + key: bazel-docs-${{ hashFiles('.bazelversion', 'WORKSPACE', 'external.bzl', 'third_party/**') }} + - name: Build documentation + run: CC=gcc-10 python -u bazelisk.py --bazelrc ~/ci_bazelrc run --announce_rc --show_timestamps --keep_going --color=yes --verbose_failures //docs:build_docs -- --output docs_output + shell: bash + - run: zip -r docs_output.zip docs_output + - name: Upload docs as artifact + uses: actions/upload-artifact@v4 + with: + name: docs + path: docs_output.zip publish-docs: # Only publish package on push to tag or default branch. @@ -54,12 +55,13 @@ jobs: needs: - build-docs steps: - - uses: actions/download-artifact@v4 - with: - name: docs - path: docs_output - - name: Publish to gh-pages - uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3 (2020-10-20) - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs_output + - uses: actions/download-artifact@v4 + with: + name: docs + path: docs_output.zip + - run: unzip docs_output.zip + - name: Publish to gh-pages + uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501 # v3.7.3 (2020-10-20) + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs_output diff --git a/tensorstore/index_space/index_domain.h b/tensorstore/index_space/index_domain.h index a6e7d6840..4d1b096ae 100644 --- a/tensorstore/index_space/index_domain.h +++ b/tensorstore/index_space/index_domain.h @@ -525,9 +525,7 @@ explicit IndexDomain(const BoxType& box) explicit IndexDomain() -> IndexDomain<>; -/// Specializes the HasBoxDomain metafunction for IndexTransform. -/// -/// \relates IndexDomain +// Specializes the HasBoxDomain metafunction for IndexTransform. template constexpr inline bool HasBoxDomain> = true; diff --git a/tensorstore/index_space/index_transform.h b/tensorstore/index_space/index_transform.h index 46d16521e..cc6fb39a8 100644 --- a/tensorstore/index_space/index_transform.h +++ b/tensorstore/index_space/index_transform.h @@ -572,9 +572,9 @@ class IndexTransform { Ptr rep_{}; }; -/// Specializes the HasBoxDomain metafunction for `IndexTransform`. -/// -/// \relates IndexTransform +// Specializes the HasBoxDomain metafunction for `IndexTransform`. +// +// \relates IndexTransform template constexpr inline bool diff --git a/tools/ci/cibuildwheel.py b/tools/ci/cibuildwheel.py index 855e83659..6e4562946 100755 --- a/tools/ci/cibuildwheel.py +++ b/tools/ci/cibuildwheel.py @@ -96,7 +96,8 @@ def run(args, extra_args): env["CIBW_ARCHS_MACOS"] = "x86_64 arm64" env["CIBW_SKIP"] = ( - "cp27-* cp35-* cp36-* cp37-* cp38-* pp* *_i686 *-win32 *-musllinux*" + "cp27-* cp35-* cp36-* cp37-* cp38-* cp313-* pp* *_i686 *-win32" + " *-musllinux*" ) env["CIBW_TEST_COMMAND"] = ( "python -m pytest {project}/python/tensorstore/tests -vv -s"