summaryrefslogtreecommitdiff
path: root/subplotlib
AgeCommit message (Collapse)AuthorFilesLines
2022-09-13chore: prepare release 0.5.0Lars Wirzenius1-3/+3
The os_str_bytes crate dependency is kept at the 6.1.0 version so that we don't have to bump the MSRV version. Likewise, the time crate is kept at 0.3.9, and serde_yaml at 0.8.26. Sponsored-by: author
2022-09-06feat! read document metadata from a YAML fileLars Wirzenius2-7/+17
This is a huge change all in one commit, sorry. However, as it changes a fundamental part of the command line interface (namely, what constitutes as the input file), there doesn't seem a way to break this into a tidy series of small commits. Most of the diff is in subplot.md, where every scenario that invokes Subplot needs multiple changes, thus touching much of the file. The overall change is that where we previously had document metadata in embedded YAML in the Markdown file, we now have it in a separate YAML file. The Markdown file is named in the YAML file. We still parse the Markdown with Pandoc for everything, except codegen. Switching from Pandoc to pulldown_cmark for parsing will be another big change that I didn't want to include in this huge change set. Sponsored-by: author
2022-09-05(Cargo.toml): Fix homepage URL everywhereDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-07-29fix: prepare new release to bump dependency on roadmapLars Wirzenius1-2/+2
roadmap version 0.4.4 is needed to not drag in structopt. The old version of 0.4 wasn't enough. Sponsored-by: author
2022-07-28chore: prepare release 0.4.2 of all cratesLars Wirzenius1-3/+3
Sponsored-by: author
2022-06-14fix(subplotlib): enable the "macros" feature for the time crateLars Wirzenius1-1/+1
Sponsored-by: author
2022-04-17(subplotlib): Update release versionDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-17(subplotlib): Do not generate tests for subplotlib if not in-treeDaniel Silverstone1-2/+10
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-15(chore): Update everything to 0.4.0Daniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-15(subplotlib): Remove dependency on chronoDaniel Silverstone2-4/+9
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-10feat! treat warnings as errors by defaultLars Wirzenius1-0/+1
Add a --merciful option to subcommands for which this matters. Adjust tests to invoke subplot with that option as necessary. Sponsored-by: author
2022-04-02Merge branch 'fix-262' into 'main'Lars Wirzenius8-8/+108
(subplotlib): Ensure that all ContextElement objects implement Debug Closes #262 See merge request subplot/subplot!266
2022-04-01(subplotlib): Make ScenarioContext implement DebugDaniel Silverstone1-0/+72
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-01(subplotlib): Ensure that all ContextElement objects implement DebugDaniel Silverstone8-8/+36
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-01(subplotlib): Make ScenarioStep hold a full step text rather than just a ↵Daniel Silverstone2-12/+14
function name Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-04-01(subplotlib): Make scenario run output a little closer to Python runnerDaniel Silverstone1-27/+13
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-25feat: add "file doesn't contain" step to lib/files, Python and RustLars Wirzenius1-0/+15
Sponsored-by: author
2022-03-19(subplotlib): Make runcmd report about executed processesDaniel Silverstone1-4/+24
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-06(tests): Clear warnings about unused context variablesDaniel Silverstone2-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-03-06(subplotlib): Fix places where we weren't processing ResultsDaniel Silverstone3-5/+5
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-02-26(subplotlib): Add a test for PATH prepending in RuncmdDaniel Silverstone1-23/+75
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-02-26(subplotlib): Add some doctestsDaniel Silverstone4-0/+58
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-02-26(subplotlib): Improve step library documentationDaniel Silverstone3-0/+296
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-01-01tests: Make runcmd.md a common test set nowDaniel Silverstone1-187/+0
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-01-01tests: Move files.md to be common between Python and subplotlibDaniel Silverstone2-102/+2
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-01-01subplotlib: Run subplot.md in Rust tooDaniel Silverstone4-3/+227
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-12-27subplotlib: Add some scenario running output to make it easier to work out ↵Daniel Silverstone1-1/+27
what broke Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-12-27runcmd: Add stdout/stderr accessorsDaniel Silverstone1-0/+15
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-12-27datadir: Add open_read() method to Datadir contextDaniel Silverstone1-0/+11
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-12-11chore: tidy up minor issues found by clippyLars Wirzenius2-16/+2
Sponsored-by: author
2021-11-27refactor: use build.rs for testing subplotlib subplotsLars Wirzenius5-1248/+38
A bit of dog-fooding: use subplot-build to test subplotlib. Add a subplotlib/build.rs script to generate test code in Rust for the subplotlib/*.md subplots. The generated code is included in tests/*.rs, and run with "cargo test". Drop the same functionality from the ./check script.. Sponsored-by: author
2021-11-19subplots: Upgrade metadata for polyglot docsDaniel Silverstone3-6/+8
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-17chore: bump subplotlib version numberLars Wirzenius1-1/+1
This was missed in yesterday's release. My fault. Sponsored-by: author
2021-11-16subplotlib: Ensure that PATH changes are indeed prepended not appended.Daniel Silverstone1-2/+8
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-11-10chore: change licence to MIT-0Lars Wirzenius1-1/+1
We've decided to simplify the Subplot licensing situation by changing the licence to MIT-0 from the GPL. See https://gitlab.com/subplot/subplot/-/issues/229 for agreements from everyone involved. Sponsored-by: author
2021-10-13tests: Fix up use of absolute paths for false/true/echo etc.Daniel Silverstone2-32/+32
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-10-13subplotlib: Do not override environment entirelyDaniel Silverstone1-3/+7
As per the Python template, do not override the full environment Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-18subplotlib: Upgrade to state 0.5Daniel Silverstone2-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-09-16fix: YAML end-markerLars Wirzenius2-2/+2
Sponsored-by: pep.foundation
2021-09-07bindings: Parse polyglot bindingsDaniel Silverstone1-7/+19
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-06-12chore: update Cargo.tomls for releaseDaniel Silverstone1-2/+11
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: Add some basic docs to a bit of the files steplibraryDaniel Silverstone1-0/+20
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: ScenarioStep::register_contexts should be pub(crate)Daniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28chore: Fix --- to ... in subplotlib.mdDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-28subplotlib: Document more of the preludeDaniel Silverstone1-4/+122
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Fix broken link in ContextElement::step_stopsDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Do not document lazy_static in preludeDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-22subplotlib: Fix doctests in file moduleDaniel Silverstone1-0/+4
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-19subplotlib: chore: Regenerate runcmd.rs test fileDaniel Silverstone1-0/+96
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2021-05-19subplotlib: Update runcmd.md test to use new bindingsDaniel Silverstone1-0/+20
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>