marimo-dev 0.1.2__tar.gz → 0.1.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.
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/PKG-INFO +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/pyproject.toml +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/__init__.py +1 -1
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/cli.py +4 -2
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/README.md +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/build.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/core.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/docs.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/pkg.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/src/marimo_dev/publish.py +0 -0
- {marimo_dev-0.1.2 → marimo_dev-0.1.3}/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.3'
|
|
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,4 +1,4 @@
|
|
|
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
|
|
@@ -11,8 +11,10 @@ def main():
|
|
|
11
11
|
print(f"Built package at: {build()}")
|
|
12
12
|
elif cmd == 'publish':
|
|
13
13
|
test = '--test' in sys.argv or '-t' in sys.argv
|
|
14
|
+
target = "TestPyPI" if test else "PyPI"
|
|
15
|
+
if input(f"Publish to {target}? [y/N] ").lower() != 'y': print("Aborted"); sys.exit(0)
|
|
14
16
|
from m_dev.publish import publish
|
|
15
17
|
publish(test=test)
|
|
16
|
-
elif cmd == '
|
|
18
|
+
elif cmd == 'tidy': tidy()
|
|
17
19
|
elif cmd == 'nuke': nuke()
|
|
18
20
|
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
|