Skip to content

Commit

Permalink
Fix requirements containing extras (Lightning-AI#111)
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris authored Nov 29, 2021
1 parent 4d6e2a3 commit fe6698e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .actions/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def update_env_details(dir_path: str):
req += meta.get("requirements", [])
req = [r.strip() for r in req]

def _parse(pkg: str, keys: str = " <=>") -> str:
def _parse(pkg: str, keys: str = " <=>[]") -> str:
"""Parsing just the package name."""
if any(c in pkg for c in keys):
ix = min(pkg.index(c) for c in keys if c in pkg)
Expand Down
3 changes: 2 additions & 1 deletion .actions/ipynb-render.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ else
then
printf "Processing: $ipynb_file\n"
python -m papermill.cli $ipynb_file $pub_file --kernel python
python .actions/helpers.py update-env-details $1
else
printf "WARNING: not valid accelerator so no outputs will be generated.\n"
cp $ipynb_file $pub_file
fi
fi

python .actions/helpers.py update-env-details $1

cp $meta_file $pub_meta_file
git add $pub_meta_file

Expand Down
1 change: 1 addition & 0 deletions flash_tutorials/electricity_forecasting/.meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ author: Ethan Harris (ethan@pytorchlightning.ai)
created: 2021-11-23
updated: 2021-11-23
license: CC BY-SA
build: 1
tags:
- Tabular
- Forecasting
Expand Down

0 comments on commit fe6698e

Please sign in to comment.