Merge pull request #23 from logos-storage/no-upraises

chore: drop upraises
This commit is contained in:
Jacek Sieka 2025-12-11 09:44:36 +01:00 committed by GitHub
commit 0478b12df9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 31 additions and 47 deletions

View File

@ -22,7 +22,8 @@ jobs:
label: Windows, label: Windows,
runner: windows-latest runner: windows-latest
} }
nim: [1.6.18] # Earliest supported and latest nim
nim: [1.6.18, "stable"]
name: ${{ matrix.platform.icon }} ${{ matrix.platform.label }} - Nim v${{ matrix.nim }} name: ${{ matrix.platform.icon }} ${{ matrix.platform.label }} - Nim v${{ matrix.nim }}
runs-on: ${{ matrix.platform.runner }} runs-on: ${{ matrix.platform.runner }}
defaults: defaults:
@ -32,9 +33,10 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
submodules: recursive submodules: recursive
- uses: iffy/install-nim@v5 - uses: jiro4989/setup-nim-action@v2
with: with:
version: ${{ matrix.nim }} nim-version: ${{matrix.nim}}
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install - name: Install
run: nimble install -y run: nimble install -y
- name: Build and run tests - name: Build and run tests

1
.gitignore vendored
View File

@ -14,3 +14,4 @@ TODO
nimble.develop nimble.develop
nimble.paths nimble.paths
nimbledeps

View File

@ -2,7 +2,8 @@
--styleCheck:error --styleCheck:error
--threads:on --threads:on
--tlsEmulation:off --tlsEmulation:off
# begin Nimble config (version 1) # begin Nimble config (version 2)
when fileExists("nimble.paths"): --noNimblePath
when withDir(thisDir(), system.fileExists("nimble.paths")):
include "nimble.paths" include "nimble.paths"
# end Nimble config # end Nimble config

View File

@ -1,13 +1,12 @@
mode = ScriptMode.Verbose mode = ScriptMode.Verbose
packageName = "leopard" packageName = "leopard"
version = "0.1.0" version = "0.1.1"
author = "Status Research & Development GmbH" author = "Status Research & Development GmbH"
description = "A wrapper for Leopard-RS" description = "A wrapper for Leopard-RS"
license = "Apache License 2.0 or MIT" license = "Apache License 2.0 or MIT"
installDirs = @["vendor"] installDirs = @["vendor"]
requires "nim >= 1.6.0", requires "nim >= 1.6.0",
"stew",
"unittest2", "unittest2",
"upraises >= 0.1.0 & < 0.2.0" "results"

View File

@ -7,12 +7,9 @@
## This file may not be copied, modified, or distributed except according to ## This file may not be copied, modified, or distributed except according to
## those terms. ## those terms.
import pkg/upraises {.push raises: [].}
push: {.upraises: [].}
{.deadCodeElim: on.} import pkg/results
import pkg/stew/results
import ./wrapper import ./wrapper
import ./utils import ./utils

View File

@ -7,10 +7,7 @@
## This file may not be copied, modified, or distributed except according to ## This file may not be copied, modified, or distributed except according to
## those terms. ## those terms.
import pkg/upraises {.push raises: [].}
push: {.upraises: [].}
{.deadCodeElim: on.}
import system/ansi_c import system/ansi_c

View File

@ -7,10 +7,7 @@
## This file may not be copied, modified, or distributed except according to ## This file may not be copied, modified, or distributed except according to
## those terms. ## those terms.
import pkg/upraises {.push raises: [].}
push: {.upraises: [].}
{.deadCodeElim: on.}
# From awr1: https://github.com/nim-lang/Nim/pull/11816/files # From awr1: https://github.com/nim-lang/Nim/pull/11816/files

View File

@ -57,8 +57,7 @@
## Conference on File and Storage Technologies, San Jose, 2013 ## Conference on File and Storage Technologies, San Jose, 2013
import pkg/upraises {.push raises: [].}
push: {.upraises: [].}
## ----------------------------------------------------------------------------- ## -----------------------------------------------------------------------------
## Build configuration ## Build configuration

View File

@ -1,35 +1,26 @@
{ {
"version": 1, "version": 2,
"packages": { "packages": {
"unittest2": { "unittest2": {
"version": "0.0.4", "version": "0.2.5",
"vcsRevision": "f180f596c88dfd266f746ed6f8dbebce39c824db", "vcsRevision": "26f2ef3ae0ec72a2a75bfe557e02e88f6a31c189",
"url": "https://github.com/status-im/nim-unittest2.git", "url": "https://github.com/status-im/nim-unittest2",
"downloadMethod": "git", "downloadMethod": "git",
"dependencies": [], "dependencies": [],
"checksums": { "checksums": {
"sha1": "fa309c41eaf6ef57895b9e603f2620a2f6e11780" "sha1": "02bb3751ba9ddc3c17bfd89f2e41cb6bfb8fc0c9"
} }
}, },
"upraises": { "results": {
"version": "0.1.0", "version": "0.5.1",
"vcsRevision": "ff4f8108e44fba9b35cac535ab63d3927e8fd3c2", "vcsRevision": "df8113dda4c2d74d460a8fa98252b0b771bf1f27",
"url": "https://github.com/markspanbroek/upraises.git", "url": "https://github.com/arnetheduck/nim-results",
"downloadMethod": "git", "downloadMethod": "git",
"dependencies": [], "dependencies": [],
"checksums": { "checksums": {
"sha1": "a0243c8039e12d547dbb2e9c73789c16bb8bc956" "sha1": "a9c011f74bc9ed5c91103917b9f382b12e82a9e7"
}
} }
}, },
"stew": { "tasks": {}
"version": "0.1.0",
"vcsRevision": "6ad35b876fb6ebe0dfee0f697af173acc47906ee",
"url": "https://github.com/status-im/nim-stew.git",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "46d58c4feb457f3241e3347778334e325dce5268"
}
}
}
} }

View File

@ -1,6 +1,6 @@
import std/random import std/random
import pkg/stew/results import pkg/results
import ../leopard import ../leopard
proc randomCRCPacket*(data: var openArray[byte]) = proc randomCRCPacket*(data: var openArray[byte]) =

View File

@ -2,7 +2,7 @@ import std/random
import std/sets import std/sets
import pkg/unittest2 import pkg/unittest2
import pkg/stew/results import pkg/results
import ../leopard import ../leopard
import ./helpers import ./helpers