lamin_cli 1.0.2__tar.gz → 1.0.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/PKG-INFO +1 -1
  2. lamin_cli-1.0.3/lamin_cli/__init__.py +3 -0
  3. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/_load.py +6 -4
  4. lamin_cli-1.0.2/lamin_cli/__init__.py +0 -3
  5. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/.github/workflows/doc-changes.yml +0 -0
  6. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/.gitignore +0 -0
  7. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/.pre-commit-config.yaml +0 -0
  8. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/LICENSE +0 -0
  9. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/README.md +0 -0
  10. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/__main__.py +0 -0
  11. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/_cache.py +0 -0
  12. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/_migration.py +0 -0
  13. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/_save.py +0 -0
  14. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/lamin_cli/_settings.py +0 -0
  15. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/pyproject.toml +0 -0
  16. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/conftest.py +0 -0
  17. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/notebooks/not-initialized.ipynb +0 -0
  18. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/notebooks/with-title-and-initialized-consecutive.ipynb +0 -0
  19. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/notebooks/with-title-and-initialized-non-consecutive.ipynb +0 -0
  20. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/merely-import-lamindb.py +0 -0
  21. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/run-track-and-finish-sync-git.py +0 -0
  22. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/run-track-and-finish.py +0 -0
  23. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/run-track-with-params.py +0 -0
  24. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/run-track.R +0 -0
  25. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/scripts/run-track.qmd +0 -0
  26. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_cli.py +0 -0
  27. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_load.py +0 -0
  28. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_migrate.py +0 -0
  29. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_multi_process.py +0 -0
  30. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_parse_uid_from_code.py +0 -0
  31. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_save_files.py +0 -0
  32. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_save_notebooks.py +0 -0
  33. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_save_r_code.py +0 -0
  34. {lamin_cli-1.0.2 → lamin_cli-1.0.3}/tests/test_save_scripts.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lamin_cli
3
- Version: 1.0.2
3
+ Version: 1.0.3
4
4
  Summary: Lamin CLI.
5
5
  Author-email: Lamin Labs <open-source@lamin.ai>
6
6
  Description-Content-Type: text/markdown
@@ -0,0 +1,3 @@
1
+ """Lamin CLI."""
2
+
3
+ __version__ = "1.0.3"
@@ -66,13 +66,15 @@ def load(entity: str, uid: str = None, key: str = None, with_env: bool = False):
66
66
  flags=re.DOTALL | re.MULTILINE,
67
67
  )
68
68
  logger.important(
69
- f"fixed title: {current_title} → {transform.description}"
69
+ f"updated title to match description: {current_title} →"
70
+ f" {transform.description}"
70
71
  )
71
72
  if bump_revision:
72
73
  uid = transform.uid
73
- new_uid = f"{uid[:-4]}{increment_base62(uid[-4:])}"
74
- new_content = new_content.replace(uid, new_uid)
75
- logger.important(f"updated uid: {uid} → {new_uid}")
74
+ if uid in new_content:
75
+ new_uid = f"{uid[:-4]}{increment_base62(uid[-4:])}"
76
+ new_content = new_content.replace(uid, new_uid)
77
+ logger.important(f"updated uid: {uid} → {new_uid}")
76
78
  if notebook_path.suffix == ".ipynb":
77
79
  notebook = jupytext.reads(new_content, fmt="py:percent")
78
80
  jupytext.write(notebook, notebook_path)
@@ -1,3 +0,0 @@
1
- """Lamin CLI."""
2
-
3
- __version__ = "1.0.2"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes