Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lightning #22249

Merged
merged 12 commits into from
Apr 6, 2023
80 changes: 80 additions & 0 deletions recipes/lightning/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{% set name = "lightning" %}
{% set version = "1.9.4" %}
weiji14 marked this conversation as resolved.
Show resolved Hide resolved

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/lightning-{{ version }}.tar.gz
sha256: 842d81c48ed0684d2e33b4d815794f9c3b2adb3916446ed12556dfeb3952e721
weiji14 marked this conversation as resolved.
Show resolved Hide resolved

build:
entry_points:
- lightning = lightning.app.cli.lightning_cli:main
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- setuptools
- pip
- python >=3.7, <3.11 # TODO: this upper bound is because of PyTorch issue with dataclass
- wheel
run:
- arrow <3.0,>=1.2.0
- beautifulsoup4 <6.0,>=4.8.0
- click <10.0
- croniter <1.4.0,>=1.3.0
- dateutils <2.0
- deepdiff <8.0,>=5.7.0
- fastapi <0.89.0
- fsspec <2024.0,>=2022.5.0
- inquirer <5.0,>=2.10.0
- jinja2 <5.0
- lightning-cloud >=0.5.27
weiji14 marked this conversation as resolved.
Show resolved Hide resolved
- lightning-utilities <2.0,>=0.6.0.post0
- numpy <3.0,>=1.17.2
- packaging
- psutil <7.0
- pydantic <3.0
- python >=3.7
- python-multipart
- pytorch <3.0,>=1.10.0
- pyyaml <8.0
- requests <4.0
- rich <15.0
- starlette <2.0
- starsessions <2.0,>=1.2.1
- torchmetrics <2.0,>=0.7.0
- tqdm <6.0,>=4.57.0
- traitlets <7.0,>=5.3.0
- typing-extensions <6.0,>=4.0.0
- urllib3 <3.0
- uvicorn <2.0
- websocket-client <3.0
- websockets <12.0

test:
imports:
- lightning
commands:
- pip check
- lightning --help
Copy link
Member Author

@weiji14 weiji14 Apr 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is timing out on the build, was this a problem previously?

Ok, after building and installing lightning==2.0.0 locally and running lightning --help, there is a prompt that requires user input:

A newer version of lightning is available (2.0.1). Would you like to upgrade? [Y/n]:

This is caused by https://github.com/Lightning-AI/lightning/blob/2.0.0/src/lightning/app/cli/lightning_cli.py#L84. Need to find a way to disable this prompt on the CLI, otherwise it'll block the build from completing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using LIGHTING_TESTING=1 lightning --help in 4661300 worked. @dopplershift, should be ok to merge now!

requires:
- pip
- python >=3.7, <3.11 # TODO: this upper bound is because of PyTorch issue with dataclass

about:
home: https://github.com/Lightning-AI/lightning
summary: Use Lightning Apps to build everything from production-ready, multi-cloud ML systems to simple research demos.
license: Apache-2.0
license_file:
- LICENSE
- src/lightning/app/cli/component-template/LICENSE
- src/lightning/app/cli/app-template/LICENSE

extra:
recipe-maintainers:
- weiji14
weiji14 marked this conversation as resolved.
Show resolved Hide resolved