Skip to content

Commit 6133958

Browse files
Copilotb-rodrigues
andcommitted
Expose missing exports and bump version
Co-authored-by: b-rodrigues <2998834+b-rodrigues@users.noreply.github.com>
1 parent be27f55 commit 6133958

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ryxpress"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Reproducible Analytical Pipelines with Nix"
55
readme = "README.md"
66
keywords = ["nix", "rap", "pipelines", "reproducibility"]

src/ryxpress/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
- garbage.py -> ryxpress.rxp_gc
1212
- init_proj.py -> ryxpress.rxp_init
1313
- inspect_logs.py -> ryxpress.rxp_inspect, ryxpress.rxp_list_logs
14-
- read_load.py -> ryxpress.rxp_read_load
15-
- plotting.py -> ryxpress.plot_dag
14+
- read_load.py -> ryxpress.rxp_read, ryxpress.rxp_load
15+
- plotting.py -> ryxpress.rxp_dag_for_ci, ryxpress.get_nodes_edges, ryxpress.rxp_phart
1616
- tracing.py -> ryxpress.rxp_trace
1717
"""
1818
from __future__ import annotations
1919

20-
__version__ = "0.1.1"
20+
__version__ = "0.1.3"
2121

2222

2323
def hello() -> str:
@@ -28,19 +28,19 @@ def hello() -> str:
2828
# Lazy mapping: public name -> (module_path, attribute_name_or_None)
2929
# If attribute_name_or_None is None, the module object is returned.
3030
_lazy_imports = {
31+
"RRunResult": ("ryxpress.r_runner", "RRunResult"),
3132
"rxp_make": ("ryxpress.r_runner", "rxp_make"),
3233
"rxp_copy": ("ryxpress.copy_artifacts", "rxp_copy"),
3334
"rxp_gc": ("ryxpress.garbage", "rxp_gc"),
3435
"rxp_init": ("ryxpress.init_proj", "rxp_init"),
3536
"rxp_list_logs": ("ryxpress.inspect_logs", "rxp_list_logs"),
3637
"rxp_inspect": ("ryxpress.inspect_logs", "rxp_inspect"),
37-
# The read/load helpers are in rxp_read_load.py per your tree.
38-
"rxp_read_load": ("ryxpress.read_load", "rxp_read_load"),
3938
"rxp_read": ("ryxpress.read_load", "rxp_read"),
4039
"rxp_load": ("ryxpress.read_load", "rxp_load"),
4140
# DAG/plotting helpers (plot_dag.py)
4241
"rxp_dag_for_ci": ("ryxpress.plotting", "rxp_dag_for_ci"),
4342
"get_nodes_edges": ("ryxpress.plotting", "get_nodes_edges"),
43+
"rxp_phart": ("ryxpress.plotting", "rxp_phart"),
4444
# tracing / other helpers
4545
"rxp_trace": ("ryxpress.tracing", "rxp_trace"),
4646
}

tests/test_hello.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
from ryxpress import hello, __version__
1+
from ryxpress import hello, __version__, rxp_phart, RRunResult
22

33
def test_hello():
44
assert hello() == "Hello from ryxpress!"
55

66
def test_version():
77
assert isinstance(__version__, str)
8+
9+
10+
def test_exports_available():
11+
assert callable(rxp_phart)
12+
assert RRunResult is not None

0 commit comments

Comments
 (0)