lamin_cli 1.0.2__py2.py3-none-any.whl → 1.0.3__py2.py3-none-any.whl

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.
lamin_cli/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Lamin CLI."""
2
2
 
3
- __version__ = "1.0.2"
3
+ __version__ = "1.0.3"
lamin_cli/_load.py CHANGED
@@ -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,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
@@ -1,12 +1,12 @@
1
- lamin_cli/__init__.py,sha256=A1tCA0wOIoKSfAqcb5ilflTcM1tvJfZuRCn8bLg4qMM,40
1
+ lamin_cli/__init__.py,sha256=2lIvR7NvpzJHzY3TPBaXCoDNgR8Dm5wU4Yi0KF9FDZs,40
2
2
  lamin_cli/__main__.py,sha256=nmGl8kj9iC1ohjy6JTJc00ZAAkzAWAHVLk5AMFrJDXU,10523
3
3
  lamin_cli/_cache.py,sha256=kW8rqlMwQeOngm9uq2gjzPVl3EBrwh6W2F2AvyBFABY,799
4
- lamin_cli/_load.py,sha256=I2UGifZdIbbLm0JBOsuoR2CZeq5_uQR1BwIujDq8WfA,6694
4
+ lamin_cli/_load.py,sha256=fOA2lxEWp2l4oOwr_Y7XXDLqbIs9ivF6kBXU7I1eNww,6792
5
5
  lamin_cli/_migration.py,sha256=KH0aVRs72ej6ieyM49JaQw1SbT8z24H2heTFnWFcgy4,1071
6
6
  lamin_cli/_save.py,sha256=PrvZSL02jU1BWLUEVTTQsn2MLi942RKOyN3Qd3qfl6s,5677
7
7
  lamin_cli/_settings.py,sha256=iS37mcQUHKRWxi2sHnAojEI6sWk3w232qwG-GeY2_Qc,1141
8
- lamin_cli-1.0.2.dist-info/entry_points.txt,sha256=Qms85i9cZPlu-U7RnVZhFsF7vJ9gaLZUFkCjcGcXTpg,49
9
- lamin_cli-1.0.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
- lamin_cli-1.0.2.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
11
- lamin_cli-1.0.2.dist-info/METADATA,sha256=vylx6klOshqCwmUYaxwymWilD6R78NR1kCooEEN5Vy0,337
12
- lamin_cli-1.0.2.dist-info/RECORD,,
8
+ lamin_cli-1.0.3.dist-info/entry_points.txt,sha256=Qms85i9cZPlu-U7RnVZhFsF7vJ9gaLZUFkCjcGcXTpg,49
9
+ lamin_cli-1.0.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
10
+ lamin_cli-1.0.3.dist-info/WHEEL,sha256=ssQ84EZ5gH1pCOujd3iW7HClo_O_aDaClUbX4B8bjKY,100
11
+ lamin_cli-1.0.3.dist-info/METADATA,sha256=yBERNNN3tOu5Dg1CJM9lyMzMzwABALmJnNRDiXfB490,337
12
+ lamin_cli-1.0.3.dist-info/RECORD,,