From 0037b8144cee132576d19bb3c17f11c67e3060f7 Mon Sep 17 00:00:00 2001 From: Marcin Czenko Date: Thu, 18 Dec 2025 18:38:03 +0100 Subject: [PATCH] updates build config and README --- README.md | 2 +- asynciterators.nimble | 8 +++++--- tests/config.nims | 1 - tests/test.nimble | 6 ++---- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fd61c96..98a211b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,6 @@ Quick start: ```bash -nimble install +nimble setup -l nimble test ``` diff --git a/asynciterators.nimble b/asynciterators.nimble index 7808d83..cdc4f5f 100644 --- a/asynciterators.nimble +++ b/asynciterators.nimble @@ -9,6 +9,8 @@ requires "chronos" task test, "Runs the test suite": withDir "tests/": - delEnv "NIMBLE_DIR" # use nimbledeps dir - exec "nimble install -d -y" - exec "nimble test -y" + # use nimbledeps dir in the tests + # witout this, NIMBLE_DIR will point to the parent dir + delEnv "NIMBLE_DIR" + exec "nimble setup -l" + exec "nimble test" diff --git a/tests/config.nims b/tests/config.nims index a76986a..3562930 100644 --- a/tests/config.nims +++ b/tests/config.nims @@ -1,6 +1,5 @@ --path: "../" -import "../config.nims" # begin Nimble config (version 2) when withDir(thisDir(), system.fileExists("nimble.paths")): include "nimble.paths" diff --git a/tests/test.nimble b/tests/test.nimble index 6d987fc..5201168 100644 --- a/tests/test.nimble +++ b/tests/test.nimble @@ -3,16 +3,14 @@ author = "Async Iterators Authors" description = "Tests for Nim Async iterator helpers for Chronos" license = "MIT" -requires "questionable >= 0.10.15 & < 0.11.0" -requires "results" -requires "chronos" requires "asynctest >= 0.5.4 & < 0.6.0" task test, "Runs the test suite": - var options = "-f -r --skipParentCfg" + var options = "-f -r" when (NimMajor, NimMinor) >= (1, 4): options &= " --warningAsError[UnsafeDefault]:on" options &= " --warningAsError[ProveInit]:on" exec "nim c " & options & " testiter.nim" exec "nim c " & options & " testasynciter.nim" exec "nim c " & options & " testasyncresultiter.nim" + echo "" # Force output flush