-
Notifications
You must be signed in to change notification settings - Fork 544
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See release notes.
- Loading branch information
Showing
578 changed files
with
33,397 additions
and
19,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
ARG GIT_TAG | ||
FROM ghcr.io/nautechsystems/nautilus_trader:$GIT_TAG | ||
COPY --from=ghcr.io/nautechsystems/nautilus_data:main /opt/pysetup/catalog /catalog | ||
RUN pip install jupyterlab | ||
RUN pip install jupyterlab datafusion | ||
ENV NAUTILUS_PATH="/" | ||
CMD ["python", "-m", "jupyterlab", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "-NotebookApp.token=''", "--NotebookApp.password=''", "examples/notebooks"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: build-wheels | ||
|
||
# Build Linux wheels on successful completion of the `coverage` workflow on the `develop` branch | ||
# Temporarily build wheels on every push to `develop` branch | ||
|
||
on: | ||
push: | ||
branches: [develop] | ||
|
||
jobs: | ||
build-wheels: | ||
# if: ${{ github.event.workflow_run.conclusion == 'success' }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: [x64] | ||
os: [ubuntu-latest] | ||
python-version: ["3.11"] | ||
name: build - Python ${{ matrix.python-version }} (${{ matrix.arch }} ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Rust version from rust-toolchain.toml | ||
id: rust-version | ||
run: | | ||
version=$(awk -F\" '/version/ {print $2}' nautilus_core/rust-toolchain.toml) | ||
echo "Rust toolchain version $version" | ||
echo "RUST_VERSION=$version" >> $GITHUB_ENV | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Set up Rust tool-chain (stable) | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: ${{ env.RUST_VERSION }} | ||
components: rustfmt, clippy | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get Poetry version from poetry-version | ||
run: | | ||
version=$(cat poetry-version) | ||
echo "POETRY_VERSION=$version" >> $GITHUB_ENV | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade pip setuptools wheel msgspec | ||
|
||
- name: Set poetry cache-dir | ||
run: echo "POETRY_CACHE_DIR=$(poetry config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Poetry cache | ||
id: cached-poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.POETRY_CACHE_DIR }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install / Build | ||
run: | | ||
poetry install | ||
poetry build --format wheel | ||
- name: Set release output | ||
id: vars | ||
run: | | ||
echo "ASSET_PATH=$(find ./dist -mindepth 1 -print -quit)" >> $GITHUB_ENV | ||
cd dist | ||
echo "ASSET_NAME=$(printf '%s\0' * | awk 'BEGIN{RS="\0"} {print; exit}')" >> $GITHUB_ENV | ||
- name: Upload wheel artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ env.ASSET_NAME }} | ||
path: ${{ env.ASSET_PATH }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,9 @@ jobs: | |
arch: [x64] | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.9", "3.10", "3.11"] | ||
defaults: | ||
run: | ||
shell: bash | ||
name: build - Python ${{ matrix.python-version }} (${{ matrix.arch }} ${{ matrix.os }}) | ||
runs-on: ${{ matrix.os }} | ||
env: | ||
|
@@ -24,21 +27,29 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get Rust version from rust-toolchain.toml | ||
id: rust-version | ||
run: | | ||
version=$(awk -F\" '/version/ {print $2}' nautilus_core/rust-toolchain.toml) | ||
echo "Rust toolchain version $version" | ||
echo "RUST_VERSION=$version" >> $GITHUB_ENV | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Set up Rust tool-chain (Linux, Windows) stable | ||
if: (runner.os == 'Linux') || (runner.os == 'Windows') | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: stable | ||
toolchain: ${{ env.RUST_VERSION }} | ||
components: rustfmt, clippy | ||
|
||
# Work around as actions-rust-lang does not seem to work on macOS yet | ||
- name: Set up Rust tool-chain (macOS) stable | ||
if: runner.os == 'macOS' | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
toolchain: ${{ env.RUST_VERSION }} | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
|
@@ -47,8 +58,18 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get Poetry version from poetry-version | ||
run: | | ||
version=$(cat poetry-version) | ||
echo "POETRY_VERSION=$version" >> $GITHUB_ENV | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.6.1 msgspec | ||
run: python -m pip install --upgrade pip setuptools wheel pre-commit msgspec | ||
|
||
- name: Setup cached pre-commit | ||
id: cached-pre-commit | ||
|
@@ -57,19 +78,14 @@ jobs: | |
path: ~/.cache/pre-commit | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | ||
|
||
- name: Setup poetry output (Linux, macOS) | ||
if: (runner.os == 'Linux') || (runner.os == 'macOS') | ||
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Setup poetry output (Windows) | ||
if: runner.os == 'Windows' | ||
run: echo "dir=$(poetry config cache-dir)" | Out-File -FilePath $env:GITHUB_ENV -Append >> $GITHUB_ENV | ||
- name: Set poetry cache-dir | ||
run: echo "POETRY_CACHE_DIR=$(poetry config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Poetry cache | ||
id: cached-poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.dir }} | ||
path: ${{ env.POETRY_CACHE_DIR }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Run pre-commit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,21 +19,40 @@ jobs: | |
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Rust tool-chain (stable) | ||
- name: Get Rust version from rust-toolchain.toml | ||
id: rust-version | ||
run: | | ||
version=$(awk -F\" '/version/ {print $2}' nautilus_core/rust-toolchain.toml) | ||
echo "Rust toolchain version $version" | ||
echo "RUST_VERSION=$version" >> $GITHUB_ENV | ||
working-directory: ${{ github.workspace }} | ||
|
||
- name: Set up Rust tool-chain (Linux, Windows) stable | ||
if: (runner.os == 'Linux') || (runner.os == 'Windows') | ||
uses: actions-rust-lang/[email protected] | ||
with: | ||
toolchain: stable | ||
toolchain: ${{ env.RUST_VERSION }} | ||
components: rustfmt, clippy | ||
|
||
- name: Set up Python environment | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Get Poetry version from poetry-version | ||
run: | | ||
version=$(cat poetry-version) | ||
echo "POETRY_VERSION=$version" >> $GITHUB_ENV | ||
- name: Install Poetry | ||
uses: snok/install-poetry@v1 | ||
with: | ||
version: ${{ env.POETRY_VERSION }} | ||
|
||
- name: Install build dependencies | ||
run: python -m pip install --upgrade pip setuptools wheel pre-commit poetry==1.6.1 msgspec | ||
run: python -m pip install --upgrade pip setuptools wheel pre-commit msgspec | ||
|
||
- name: Setup cached pre-commit | ||
id: cached-pre-commit | ||
|
@@ -45,14 +64,14 @@ jobs: | |
- name: Run pre-commit | ||
run: pre-commit run --all-files | ||
|
||
- name: Set poetry output | ||
run: echo "dir=$(poetry config cache-dir)" >> $GITHUB_ENV | ||
- name: Set poetry cache-dir | ||
run: echo "POETRY_CACHE_DIR=$(poetry config cache-dir)" >> $GITHUB_ENV | ||
|
||
- name: Poetry cache | ||
id: cached-poetry | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ env.dir }} | ||
path: ${{ env.POETRY_CACHE_DIR }} | ||
key: ${{ runner.os }}-${{ matrix.python-version }}-poetry-${{ hashFiles('**/poetry.lock') }} | ||
|
||
- name: Install Redis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.