Skip to content

Commit

Permalink
trim imports, exports
Browse files Browse the repository at this point in the history
  • Loading branch information
disruptek committed Dec 9, 2020
1 parent 27d1580 commit 7666d4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 23 deletions.
24 changes: 3 additions & 21 deletions testes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,26 @@ import std/times
import std/os
import std/sequtils
import std/terminal
import std/sugar
import std/strutils
import std/macros
import std/colors

when (NimMajor, NimMinor) >= (1, 3):
import std/exitprocs
else:
# the is the best solution to --useVersion:1.0 i guess...
# this is the best solution to --useVersion:1.0 i guess...
when not compiles(AssertionDefect):
type AssertionDefect = AssertionError
proc setProgramResult(q: int) =
programResult = q

import cutelog
import grok/mem
import grok/time

import bytes2human

export sugar, strutils, macros, cutelog, execShellCmd
when defined(windows):
export execShellCmd

const
statements = {
Expand Down Expand Up @@ -555,23 +554,6 @@ macro testes*(tests: untyped) =
finally:
result.add reportResults()

when isMainModule:
import std/options

import bump
import cligen

let
logger = newCuteConsoleLogger()
addHandler(logger)

const
release = projectVersion()
if release.isSome:
clCfg.version = $release.get
else:
clCfg.version = "(unknown version)"

when false:
proc massageLabel(n: NimNode): NimNode =
assert not n.isNil
Expand Down
4 changes: 2 additions & 2 deletions testes.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ description = "a cure for salty testes"
license = "MIT"
requires "nim >= 1.0.4"
#requires "cligen >= 0.9.41 & <= 0.9.45"
requires "bump >= 1.8.18 & < 2.0.0"
#requires "bump >= 1.8.18 & < 2.0.0"
#requires "https://github.com/disruptek/badresults < 2.0.0"
requires "https://github.com/disruptek/cutelog >= 1.1.0 & < 2.0.0"
#requires "https://github.com/disruptek/cutelog >= 1.1.0 & < 2.0.0"
requires "https://github.com/disruptek/grok >= 0.0.4 & < 1.0.0"
requires "https://github.com/juancarlospaco/nim-bytes2human"

Expand Down

0 comments on commit 7666d4b

Please sign in to comment.