From fdff3a83c441737da284dbc6d488143ca5ac5222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Thu, 3 Nov 2022 04:49:20 +0100 Subject: [PATCH] Fixes --- .actions/setup_tools.py | 6 ++++-- .github/workflows/docs-checks.yml | 4 +--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.actions/setup_tools.py b/.actions/setup_tools.py index a8c00e797598d5..62d1400f612208 100644 --- a/.actions/setup_tools.py +++ b/.actions/setup_tools.py @@ -232,8 +232,10 @@ def create_mirror_package(src_folder: str, lit_pkg_mapping: dict) -> None: ... {"pytorch": "pytorch_lightning", "app": "lightning_app", "lite": "lightning_lite"} ... ) """ - for lit_name, pkg_name in lit_pkg_mapping.items(): - copy_adjusted_modules(src_folder, pkg_name, lit_name, lit_pkg_mapping) + mapping = lit_pkg_mapping.copy() + mapping.pop("lightning", None) # pop this key to avoid replacing `lightning` to `lightning.lightning` + for lit_name, pkg_name in mapping.items(): + copy_adjusted_modules(src_folder, pkg_name, lit_name, mapping) def _download_frontend(pkg_path: str): diff --git a/.github/workflows/docs-checks.yml b/.github/workflows/docs-checks.yml index 1b00fc9b750418..964ad114069d38 100644 --- a/.github/workflows/docs-checks.yml +++ b/.github/workflows/docs-checks.yml @@ -139,14 +139,12 @@ jobs: ${{ runner.os }}-docs-make-${{ matrix.pkg-name }}- - name: Install package & dependencies - env: - PACKAGE_NAME: ${{ matrix.pkg-name }} run: | sudo apt-get update sudo apt-get install -y cmake pandoc texlive-latex-extra dvipng texlive-pictures pip --version # TODO: lit should be renamed to lightning - PKG_NAME=$(python -c "print('lightning' if '${{matrix.pkg-name}}' == 'lit' else '${{matrix.pkg-name}}')") \ + PACKAGE_NAME=$(python -c "print('lightning' if '${{matrix.pkg-name}}' == 'lit' else '${{matrix.pkg-name}}')") \ pip install -e . \ -r requirements/${{ matrix.pkg-name }}/docs.txt \ --find-links https://download.pytorch.org/whl/cpu/torch_stable.html \