summaryrefslogtreecommitdiff
path: root/subplotlib
AgeCommit message (Collapse)AuthorFilesLines
10 dayschore: truncate files when opening for writingLars Wirzenius1-0/+2
Found by clippy. Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
2023-11-11chore: Update from fehler to culpaDaniel Silverstone3-8/+8
2023-10-29chore: Update MSRV everywhere to 1.70Daniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-08-27(release): Prepare 0.9.0 releaseDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-08-12subplotlib: Add storage of location into scenario/scenariostepDaniel Silverstone2-14/+26
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-08-12chore: Clippy fixupDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-06-14version: Update versions to 0.8.0Daniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-06-01chore: drop now-unused step for sleeping for a secondLars Wirzenius1-5/+0
This was always a kludge, and we no longer use it anywhere, so offski with it. May it never return! Nac Mac Feegle! The Wee Free Men! Nae sleep! Nae wait! We willna' be slowed again! Sponsored-by: author
2023-05-18fix: if subplotlib's build.rs fails, print the error messageLars Wirzenius1-2/+6
Sponsored-by: author
2023-04-30chore: prepare release 0.7.1Lars Wirzenius1-3/+3
Sponsored-by: author
2023-04-10(release) Prepare 0.7.0 releaseDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-04-10(chore): Update for newer base64 APIDaniel Silverstone2-4/+12
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-04-10(chore): Update base64, env_logger, and serde_yamlDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-04-10(chore): Update rust-version to 1.63 in all cratesDaniel Silverstone1-0/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-04-10(chore): Update edition to 2021 across cratesDaniel Silverstone1-1/+1
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2023-03-08(chore): Update remove_dir_all dep to 0.8Daniel Silverstone1-1/+1
Adding aligned v0.4.1 Adding as-slice v0.2.1 Adding cfg-if v0.1.10 Removing crossbeam-channel v0.5.7 Removing crossbeam-deque v0.8.3 Removing crossbeam-epoch v0.9.14 Removing crossbeam-utils v0.8.15 Adding cvt v0.1.1 Adding fs_at v0.1.1 Removing hermit-abi v0.2.6 Removing memoffset v0.8.0 Adding nix v0.26.2 Adding normpath v1.1.0 Removing num_cpus v1.15.0 Removing rayon v1.7.0 Removing rayon-core v1.11.0 Updating remove_dir_all v0.7.0 -> v0.8.1 Removing scopeguard v1.1.0 Adding smart-default v0.6.0 Adding stable_deref_trait v1.2.0 Adding static_assertions v1.1.0 Signed-off-by: Daniel Silverstone <daniel.silverstone@codethink.co.uk>
2023-02-11chore: avoid unnecessary borrowing of borrowsLars Wirzenius1-3/+3
clippy noted that we were borrowing borrows, and that this is unnecessary and pointless, and I think clippy is correct here. Thus, don't do that. Sponsored-by: author
2023-02-11chore: use variables in Rust format stringsLars Wirzenius7-45/+33
Change this: format!("{}", foo) into this: format!("{foo}") Support for this feature was added in Rust 1.58 (see https://github.com/rust-lang/rust/releases/tag/1.58.0) and in 1.67 clippy suggests about this. Because the new style seems to be where the Rust ecosystem is going, I think Subplot should follow to avoid being needlessly different from most other projects. Sponsored-by: author
2022-11-13(release): Prepare 0.6.0 releaseDaniel Silverstone1-3/+3
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-11-12chore: disable a clippy lint in generated codeLars Wirzenius1-0/+1
Sponsored-by: author
2022-11-12chore: use type alias to make code slightly more easier to followLars Wirzenius1-1/+3
Found by clippy. Sponsored-by: author
2022-11-12chore: fix unnecessary borrows found by clippyLars Wirzenius1-1/+1
Sponsored-by: author
2022-10-22(steplibrary): Update files and runcmd to use new path typeDaniel Silverstone2-42/+53
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
2022-10-18feat: have Rust lib/files steps for verifying file contents dump itLars Wirzenius1-0/+13
When a step check that a file contents fulfills a requirement, write it to stdout if it doesn't. This helps debug failing scenarios. Sponsored-by: author
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>