marimo-dev 0.1.2__tar.gz → 0.1.4__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.
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/PKG-INFO +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/pyproject.toml +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/__init__.py +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/cli.py +5 -5
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/README.md +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/build.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/core.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/docs.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/pkg.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/publish.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.4}/src/marimo_dev/read.py +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""Build and publish python packages from marimo notebooks"""
|
|
2
|
-
__version__ = '0.1.
|
|
2
|
+
__version__ = '0.1.4'
|
|
3
3
|
__author__ = 'Deufel'
|
|
4
4
|
from .core import Kind, Param, Node
|
|
5
5
|
from .read import inline_doc, parse_params, parse_class_params, parse_ret, src_with_decs, is_export, parse_import, parse_const, parse_export, parse_node, parse_file, read_meta, nb_name, scan
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
from marimo_dev.build import build,
|
|
1
|
+
from marimo_dev.build import build, tidy, nuke
|
|
2
2
|
from marimo_dev.publish import publish
|
|
3
3
|
import sys, subprocess
|
|
4
4
|
from pathlib import Path
|
|
5
5
|
|
|
6
6
|
def main():
|
|
7
|
-
if len(sys.argv) < 2: print("Usage: md [build|publish|
|
|
7
|
+
if len(sys.argv) < 2: print("Usage: md [build|publish|tidy|nuke]"); sys.exit(1)
|
|
8
8
|
cmd = sys.argv[1]
|
|
9
9
|
if cmd == 'build':
|
|
10
|
-
from m_dev.build import build
|
|
11
10
|
print(f"Built package at: {build()}")
|
|
12
11
|
elif cmd == 'publish':
|
|
13
12
|
test = '--test' in sys.argv or '-t' in sys.argv
|
|
14
|
-
|
|
13
|
+
target = "TestPyPI" if test else "PyPI"
|
|
14
|
+
if input(f"Publish to {target}? [y/N] ").lower() != 'y': print("Aborted"); sys.exit(0)
|
|
15
15
|
publish(test=test)
|
|
16
|
-
elif cmd == '
|
|
16
|
+
elif cmd == 'tidy': tidy()
|
|
17
17
|
elif cmd == 'nuke': nuke()
|
|
18
18
|
else: print(f"Unknown command: {cmd}"); sys.exit(1)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|