Skip to content

Commit 3a820d7

Browse files
committed
move > lai
1 parent 505f6b1 commit 3a820d7

13 files changed

+13
-14
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ wheels/
4848
*.egg-info/
4949
.installed.cfg
5050
*.egg
51-
src/lightning/*/
5251
src/*/version.info
5352

5453
# PyInstaller

src/lightning_app/model2cloud/authentication.py renamed to src/lightning/model2cloud/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import requests
55
from requests.models import HTTPBasicAuth
66

7+
from lightning.app.model2cloud.utils import LIGHTNING_CLOUD_URL
78
from lightning.app.utilities.network import LightningClient
8-
from lightning_app.model2cloud.utils import LIGHTNING_CLOUD_URL
99

1010

1111
def get_user_details():

src/lightning_app/model2cloud/cloud_api.py renamed to src/lightning/model2cloud/cloud_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
import requests
99
import torch
1010

11-
from lightning_app.model2cloud.authentication import authenticate
12-
from lightning_app.model2cloud.save import (
11+
from lightning.app.model2cloud.authentication import authenticate
12+
from lightning.app.model2cloud.save import (
1313
_download_and_extract_data_to,
1414
_save_checkpoint_from_path,
1515
_save_meta_data,
@@ -21,7 +21,7 @@
2121
_write_and_save_requirements,
2222
get_linked_output_dir,
2323
)
24-
from lightning_app.model2cloud.utils import (
24+
from lightning.app.model2cloud.utils import (
2525
get_model_data,
2626
LIGHTNING_CLOUD_URL,
2727
LIGHTNING_STORAGE_FILE,
@@ -32,7 +32,7 @@
3232
if os.getenv("LIGHTNING_MODEL_STORE_TESTING", 0):
3333
from tests.constants import LIGHTNING_TEST_STORAGE_DIR as LIGHTNING_STORAGE_DIR
3434
else:
35-
from lightning_app.model2cloud.utils import LIGHTNING_STORAGE_DIR
35+
from lightning.app.model2cloud.utils import LIGHTNING_STORAGE_DIR
3636

3737
import lightning as L
3838
import pytorch_lightning as PL

src/lightning_app/model2cloud/save.py renamed to src/lightning/model2cloud/save.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from tqdm import tqdm
1313
from tqdm.utils import CallbackIOWrapper
1414

15-
from lightning_app.model2cloud.utils import LIGHTNING_CLOUD_URL
15+
from lightning.app.model2cloud.utils import LIGHTNING_CLOUD_URL
1616

1717
logging.basicConfig(level=logging.INFO)
1818

tests/tests_app/model2cloud/test_model.py renamed to tests/tests_lit/model2cloud/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
if os.getenv("LIGHTNING_MODEL_STORE_TESTING"):
1010
from tests_app.model2cloud.constants import LIGHTNING_TEST_STORAGE_DIR as LIGHTNING_STORAGE_DIR
1111
else:
12-
from lightning_app.model2cloud.utils import LIGHTNING_STORAGE_DIR
12+
from lightning.app.model2cloud.utils import LIGHTNING_STORAGE_DIR
1313

1414

1515
def test_model():

tests/tests_app/model2cloud/test_requirements.py renamed to tests/tests_lit/model2cloud/test_requirements.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
from tests_app.model2cloud.utils import cleanup
44

5-
from lightning_app.model2cloud import download_from_lightning_cloud, to_lightning_cloud
5+
from lightning.app.model2cloud import download_from_lightning_cloud, to_lightning_cloud
66
from pytorch_lightning.demos.boring_classes import BoringModel
77

88
if os.getenv("LIGHTNING_MODEL_STORE_TESTING"):
99
from tests_app.model2cloud.constants import LIGHTNING_TEST_STORAGE_DIR as LIGHTNING_STORAGE_DIR
1010
else:
11-
from lightning_app.model2cloud.utils import LIGHTNING_STORAGE_DIR
11+
from lightning.app.model2cloud.utils import LIGHTNING_STORAGE_DIR
1212

1313

1414
def test_requirements_as_a_file():

tests/tests_app/model2cloud/test_source_code.py renamed to tests/tests_lit/model2cloud/test_source_code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
from tests_app.model2cloud.utils import cleanup
66

7-
from lightning_app.model2cloud import download_from_lightning_cloud, to_lightning_cloud
7+
from lightning.app.model2cloud import download_from_lightning_cloud, to_lightning_cloud
88
from pytorch_lightning.demos.boring_classes import BoringModel
99

1010
if os.getenv("LIGHTNING_MODEL_STORE_TESTING"):
1111
from tests_app.model2cloud.constants import LIGHTNING_TEST_STORAGE_DIR as LIGHTNING_STORAGE_DIR
1212
else:
13-
from lightning_app.model2cloud import LIGHTNING_STORAGE_DIR
13+
from lightning.app.model2cloud import LIGHTNING_STORAGE_DIR
1414

1515

1616
def test_source_code_implicit():

tests/tests_app/model2cloud/test_versioning.py renamed to tests/tests_lit/model2cloud/test_versioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
import pytest
55
from tests_app.model2cloud.utils import cleanup
66

7-
from lightning_app.model2cloud.cloud_api import download_from_lightning_cloud, to_lightning_cloud
7+
from lightning.app.model2cloud.cloud_api import download_from_lightning_cloud, to_lightning_cloud
88
from pytorch_lightning.demos.boring_classes import BoringModel
99

1010
if os.getenv("LIGHTNING_MODEL_STORE_TESTING"):
1111
from tests_app.model2cloud.constants import LIGHTNING_TEST_STORAGE_DIR as LIGHTNING_STORAGE_DIR
1212
else:
13-
from lightning_app.model2cloud.utils import LIGHTNING_STORAGE_DIR
13+
from lightning.app.model2cloud.utils import LIGHTNING_STORAGE_DIR
1414

1515

1616
def assert_download_successful(username, model_name, version):

0 commit comments

Comments
 (0)