Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement async download based on chronos #1023

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ jobs:
- name: Install Mercurial on macOS
if: matrix.os == 'macos-latest'
run: brew install mercurial
- name: setup submodules
run: |
git submodule update --init
cd nim-bearssl
git submodule update --init
- name: Run nim c -r tester
run: |
cd tests
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,6 @@ src/nimblepkg/version
# Test procedure artifacts
*.nims
/buildTests
/nimble.develop
nimble.paths
*.paths
12 changes: 12 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[submodule "nim-bearssl"]
path = nim-bearssl
url = https://github.com/status-im/nim-bearssl
[submodule "nim-chronos"]
path = nim-chronos
url = https://github.com/status-im/nim-chronos
[submodule "nim-stew"]
path = nim-stew
url = https://github.com/status-im/nim-stew
[submodule "nim-http-utils"]
path = nim-http-utils
url = https://github.com/status-im/nim-http-utils
1 change: 1 addition & 0 deletions changelog.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ This is a major release containing four new features:
- Download tarballs when downloading packages from GitHub.
- A setup command.
- Added a `--package, -p` command line option.
- Parallel downloads of the locked dependencies.

## 0.13.0

Expand Down
1 change: 1 addition & 0 deletions nim-bearssl
Submodule nim-bearssl added at f4c423
1 change: 1 addition & 0 deletions nim-chronos
Submodule nim-chronos added at 7bbc59
1 change: 1 addition & 0 deletions nim-http-utils
Submodule nim-http-utils added at e88e23
1 change: 1 addition & 0 deletions nim-stew
Submodule nim-stew added at 018760
5 changes: 3 additions & 2 deletions nimble.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ installExt = @["nim"]

# Dependencies

requires "nim >= 0.13.0"
requires "nim >= 0.13.0", "chronos", "bearssl", "stew"


when defined(nimdistros):
import distros
Expand All @@ -22,4 +23,4 @@ when defined(nimdistros):

task test, "Run the Nimble tester!":
withDir "tests":
exec "nim c -r tester"
exec "nim c -r -d:release tester"
5 changes: 5 additions & 0 deletions src/nimble.nim.cfg → src/nim.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
--path:"$lib/packages/docutils"
#--noNimblePath
--threads:off
--path:"$nim/"
--path:"./vendor/nim"
--path:"../nim-stew"
--path:"../nim-chronos"
--path:"../nim-bearssl"
--path:"../nim-http-utils"
-d:ssl
-d:nimcore # Enable 'gorge' in Nim's VM. See https://github.com/nim-lang/Nim/issues/8096
Loading